Keyboard Shortcuts
ctrl + shift + ? :
Show all keyboard shortcuts
ctrl + g :
Navigate to a group
ctrl + shift + f :
Find
ctrl + / :
Quick actions
esc to dismiss
Likes
- Twsapi
- Messages
Search
Re: twsapi: Re: LINK to: TraderGuard , IB TWS scalping tool
Schindler Trading
开云体育?
Thanks, Traderguard.
?
Could someone who tries it post, please?? I'll feel
better about running an executable after someone?confirms that it is
safe.
?
Regards,
Aaron Schindler
Schindler Trading
?
?
|
LINK to: TraderGuard , IB TWS scalping tool
traderguard
From the author:
"I am not a good trader. I need all the help I can get. There were no good software to protect me... so I made one.. and it work for me. Try it" AMJ 2.00.7.exe RE: Addition to your existing IB TWS platform. I designed it for scalpers to profit from every single trend change with "adaptive Automation Engine" monitoring market tick by tick and in real time. You will love it. It will automate your profit collection at the topmost point and also auto-escape from bad point of entry. This is what i like the most. |
Re: twsapi: TWS Error Handling
Robert Carey
开云体育I've made over a hundred trades with the ActiveX
and VB. So far the api hasn't thrown any errors.
One trade had an invalid order ID and was never
executed. There was no error thrown by the API.
RCarey
|
TWS Error Handling
marinindextrader
Does anyone have a comprehensive list of all or most of the possible
error strings that are fed through Tws1_errMsg ? It sure would be nice to have a full list and a cross refrence index to handle errors... A library of err text strings if you will that can be refrenced and then acted on if necessary...very much akin to VB's own error handling.... If TwsErr = 11 Then [do stuff] Else [do other stuff] EndIf Scott |
Re: automated login
tripack44
I have a couple of programs that do this in VB. Unfortunately they
are coupled into larger programs or have ActiveX components. I may try to strip out the relevent code "sanitize it", and put it into a project or two and write up some documentation if I find the time during the coming weeks. --- In twsapi@y..., "Michel" <migurull@t...> wrote: Hi,Password) from my calling application.ActiveX) which allways runs in the background and want it to automaticallylaunch TWS few minutes before markets open and perform some automated taskswhen I'm not at home.to 'ShellExecute', passing parameters as 'username' or 'user' without success. Ialways get the login screen blank because I ignore if TWS accepts such parametersand how they must be coded (I think this must be possible because in theweb demo, the login screen appears whith such fields pre-filled with 'edemo'and 'demouser'). Perhaps in some 'ini' file? (I've not found anysection related to username and password). |
Re: Modifying an order & testing
tripack44
--- In twsapi@y..., tripack44 <no_reply@y...> wrote:
Trailing stops take a bit of proper organization to work outbuy or sell, MaxPnL for the open position and the Trail Stop amount.You use live data to figure the MaxPnL. For a long position the Trail Actually the formula if you are in a long position for setting your trailing stop would be Stop Price = Entry Price + MaxPnL - Trail Stop Amount |
Re: twsapi: Trader Guard - ES NQ futures ready app.
Manuel Knospe
开云体育I?m unable to download the prog
anywhere...
?
Can you send it to me via eMail (i have enough
space...)
Or can you give me the link to download
it?
?
?
Thanks
?
Manuel
?
|
Re: another java dev here, UNIX/Linux questions...
--- In twsapi@y..., "rasears" <rasears@y...> wrote:
I'm curious about two things as I get started on my own JavaCorrect. When you connect using the API, a dialog box pops up on the client asking whether you want to accept the connection. Second, does anyone have experience using the Linux/UNIX client orTWS is a Java app, so it is pretty much the same on Linux as elsewhere. I've had no problems that appeared to be specific to Linux. Ken |
Re: java api, maximum number of requests at a time ?
gu6526
As previous replies suggested, IB should not be misused as a
data feed. For several resons it's not suitable for that. But in your example, you can drop the disconnect/connect and assign use new Contract Objects with the same TickerIDs. This way you can retrieve an arbitrary number of quotes sequentially. Gernot --- In twsapi@y..., usernew <no_reply@y...> wrote: I am using the Java API. When I send more than 40 or so requestsfor ticker info, I get the following exception:needs to manually click on the "Yes" button on the dialog thatasks "Accept incoming connection attempt?"time, what should I do ? |
Re: WG: twsapi: java api, maximum number of requests at a time ?
Richard Foulk
I agree. Especially since IB doesn't provide all of the available quotes.
} I think this is something the API is probably not meant for. } I think that IB wants to help their clients to do lots of profitable } trades, and that?s why they developed TWS and the API. } } If you want to get a few hundred tickers at a time, my opinion is that you } should subscribe a datafeed somewhere else. eSignal and PCQuote have API?s } that might be useful to you. } They are specialised on providing real time data. } } Marcus } } -----Ursprungliche Nachricht----- } Von: usernew [mailto:no_reply@...] } Gesendet: Monday, July 01, 2002 11:37 AM } An: twsapi@... } Betreff: twsapi: java api, maximum number of requests at a time ? } } } I am using the Java API. When I send more than 40 or so requests for } ticker info, I get the following exception: } } Error: Max number of tickers has been reached. } } Then I tried to do the following: } } connect; } for(i=0, i < 40; i++) send requests; } capture info using event handlers; } disconnect; } connect; } for(i=0; i < 40; i++) send requests; } capture info using event handlers; } disconnect; } etc. } } But the problem is each time there is a connect() call, someone needs } to manually click on the "Yes" button on the dialog that asks "Accept } incoming connection attempt?" } } I want to be able to download info on few hundred tickers at a time, } what should I do ? } } Thanks in advance. |
WG: twsapi: java api, maximum number of requests at a time ?
I think this is something the API is probably not meant for.
I think that IB wants to help their clients to do lots of profitable trades, and that?s why they developed TWS and the API. If you want to get a few hundred tickers at a time, my opinion is that you should subscribe a datafeed somewhere else. eSignal and PCQuote have API?s that might be useful to you. They are specialised on providing real time data. Marcus -----Ursprungliche Nachricht----- Von: usernew [mailto:no_reply@...] Gesendet: Monday, July 01, 2002 11:37 AM An: twsapi@... Betreff: twsapi: java api, maximum number of requests at a time ? I am using the Java API. When I send more than 40 or so requests for ticker info, I get the following exception: Error: Max number of tickers has been reached. Then I tried to do the following: connect; for(i=0, i < 40; i++) send requests; capture info using event handlers; disconnect; connect; for(i=0; i < 40; i++) send requests; capture info using event handlers; disconnect; etc. But the problem is each time there is a connect() call, someone needs to manually click on the "Yes" button on the dialog that asks "Accept incoming connection attempt?" I want to be able to download info on few hundred tickers at a time, what should I do ? Thanks in advance. |
Re: Trader Guard - ES NQ - 23MB program - get it from website.
marinindextrader
What is the compacted size when zipped down?
toggle quoted message
Show quoted text
If its not to big just email it to me... Is 23mb the compacted version or fully installed ready run version Please clarify Scott --- In twsapi@y..., traderguard <no_reply@y...> wrote:
Trader Guard - ES NQ - 23MB program |
VB New Sample Code: Auto Select Expiry For Index Products
marinindextrader
VB: This code automatically assigns the correct expiry string based
on the present date. Primarily for Index Futures products that roll quarterly. Subscribes to the second Thursday rule. Now in the files section: Project requires: Form1 form Moudle1 module Label1, Label2 Label3 labels Command1 Command button 'Code Starts 'FormCode Option Explicit Private Sub Command1_Click() Label1 = fxExpiry Label3 = "This Contract Rolls On: " & fxRollOverDate _ & vbCrLf _ & fxDaysRemaining & " Days Left" End Sub Private Sub Form_Load() Label2.Caption = _ "INDEX CONTRACT EXPIRY FINDER" & vbCrLf & vbCrLf & _ "This code will properley return the expiry based " & _ "on the present date." & vbCrLf & vbCrLf & _ "It confroms to the standard that contract trading" & _ " rolls over on the second thursday of the month of expiration." & _ vbCrLf & vbCrLf & "Todays Date: " & Date Label1 = fxExpiry Label3 = "This Contract Rolls On: " & fxRollOverDate _ & vbCrLf _ & fxDaysRemaining & " Days Left" End Sub 'Module Code Option Explicit Private m_qtr As Integer Private m_ContractDate As Date Function fxExpiry() As String Dim firstVBday As Integer Dim StartDate As Date m_qtr = DatePart("q", Date) Select Case m_qtr Case 1 StartDate = "3/1/" & Year(Now) firstVBday = Weekday(StartDate) m_ContractDate = fxContractDate(StartDate, firstVBday) Case 2 StartDate = "6/1/" & Year(Now) firstVBday = Weekday(StartDate) m_ContractDate = fxContractDate(StartDate, firstVBday) Case 3 StartDate = "9/1/" & Year(Now) firstVBday = Weekday(StartDate) m_ContractDate = fxContractDate(StartDate, firstVBday) Case 4 StartDate = "12/1/" & Year(Now) firstVBday = Weekday(StartDate) m_ContractDate = fxContractDate(StartDate, firstVBday) End Select fxExpiry = fxNewString() End Function Function fxRollOverDate() As String Dim tempDate As Date 'Call fxExpiry Select Case m_qtr Case 4 If Date > m_ContractDate Then tempDate = fxContractDate("3/1/" & Year(Now) + 1, _ Weekday("3/1/" & Year(Now) + 1)) fxRollOverDate = tempDate Else fxRollOverDate = m_ContractDate End If Case Else fxRollOverDate = m_ContractDate End Select End Function Function fxDaysRemaining() Dim tempDate As Date 'Call fxExpiry Select Case m_qtr Case 4 If Date > m_ContractDate Then tempDate = fxContractDate("3/1/" & Year(Now) + 1, _ Weekday("3/1/" & Year(Now) + 1)) fxDaysRemaining = tempDate - Date Else fxDaysRemaining = m_ContractDate - Date End If Case Else fxDaysRemaining = m_ContractDate - Date End Select End Function Private Function fxContractDate(ByVal dStart As Date, ByVal iDay As Integer) As Date If iDay = 5 Then fxContractDate = dStart + 7 Else Do dStart = dStart + 1 Loop Until Weekday(dStart) = 5 fxContractDate = dStart + 7 End If End Function Private Function fxNewString() As String Dim strYear As String Dim strMonth As String Dim arrMonth(1 To 4) arrMonth(1) = "03": arrMonth(2) = "06" arrMonth(3) = "09": arrMonth(4) = "12" If Date < m_ContractDate Then strMonth = arrMonth(m_qtr) strYear = Year(Date) Else If Date = m_ContractDate Then MsgBox "Contract Rolls Today!" _ & vbCrLf _ & " Liquidity At Issue" _ & vbCrLf _ & "Next Contract Selected" End If If m_qtr < 4 Then strMonth = arrMonth(m_qtr + 1) strYear = Year(Date) Else strMonth = arrMonth(1) strYear = Year(Date) + 1 End If End If fxNewString = strYear & strMonth End Function |
Re: twsapi: Trader Guard - ES NQ - Does it need a specific IB Build ?
Eduardo J Motta
Do we need a specific IB Build ? Latest one ?
toggle quoted message
Show quoted text
usually when they update their API some functions do not work properly, could you please clarify? eduardo -----Original Message-----
From: traderguard [mailto:no_reply@...] Sent: Monday, July 01, 2002 3:19 PM To: twsapi@... Subject: twsapi: Trader Guard - ES NQ - 23MB program - get it from website. Trader Guard - ES NQ - 23MB program Is Done !!! and working really GOOD. Ready to be send to people who asked for it.. BUT.. Is to big to be POST here.. or to be send via E-mails. I am going to setup today some free web site with this useful interface for TWS. And I'll POST link HERE ..download from there, please.. Protective mode work awesome.. I tested new version of TraderGuard today on NQ. It is better than older version. If you like version 1.03.01 Try ver. 2.01.04. You want regret it. New features - risk adjustable auto sell with wrong trend - no transmit needed - quick reverse with 1 click - cover short or long with auto cancel pending one - display profit of individual trade - display risk monitoring limit enjoy I'll POST link here TOMMOROW. traderguard@... To unsubscribe from this group, send an email to: twsapi-unsubscribe@... Your use of Yahoo! Groups is subject to |
Trader Guard - ES NQ - 23MB program - get it from website.
traderguard
Trader Guard - ES NQ - 23MB program
Is Done !!! and working really GOOD. Ready to be send to people who asked for it.. BUT.. Is to big to be POST here.. or to be send via E-mails. I am going to setup today some free web site with this useful interface for TWS. And I'll POST link HERE ..download from there, please.. Protective mode work awesome.. I tested new version of TraderGuard today on NQ. It is better than older version. If you like version 1.03.01 Try ver. 2.01.04. You want regret it. New features - risk adjustable auto sell with wrong trend - no transmit needed - quick reverse with 1 click - cover short or long with auto cancel pending one - display profit of individual trade - display risk monitoring limit enjoy I'll POST link here TOMMOROW. traderguard@... |
java api, maximum number of requests at a time ?
usernew
I am using the Java API. When I send more than 40 or so requests for
ticker info, I get the following exception: Error: Max number of tickers has been reached. Then I tried to do the following: connect; for(i=0, i < 40; i++) send requests; capture info using event handlers; disconnect; connect; for(i=0; i < 40; i++) send requests; capture info using event handlers; disconnect; etc. But the problem is each time there is a connect() call, someone needs to manually click on the "Yes" button on the dialog that asks "Accept incoming connection attempt?" I want to be able to download info on few hundred tickers at a time, what should I do ? Thanks in advance. |
Re: automated login
marinindextrader
You are among a large group of users who would like to be able to do
this, me being one of them... I don't know how... It really is anoying they don't give us a security server to pass through. Seems so archaic to have to have a TWS open for each account we log on to... Scott --- In twsapi@y..., "Michel" <migurull@t...> wrote: Hi,Password) from my calling application.ActiveX) which allways runs in the background and want it to automaticallylaunch TWS few minutes before markets open and perform some automated taskswhen I'm not at home.to 'ShellExecute', passing parameters as 'username' or 'user' without success. Ialways get the login screen blank because I ignore if TWS accepts such parametersand how they must be coded (I think this must be possible because in theweb demo, the login screen appears whith such fields pre-filled with 'edemo'and 'demouser'). Perhaps in some 'ini' file? (I've not found anysection related to username and password). |
First post and odd-lot question...
cyberbri_2000
This is a great group! I looked over the sample VB programs, opened
an account at IB and now my head is swimming with ideas. :) I'm thinking of writing a utility that will monitor my open positions during the day, then implement a trailing stop by updating a stop order based on each stock's 14 day ATR X 3. I like this trailing stop alot, and have been using it on a portfolio at Marketocracy.com for 5 months now. It's up 8%... not too bad by only going long in a bear market. I program with VB6 and WebZinc (webzinc.net), a program that easily grabs data off the web. It has a ton of uses and I highly recommend it. I know IB acccepts odd-lot stock orders for NYSE and Nasdaq stocks, what about AMEX stocks? I wrote them a week ago and still no answer. Thanx, Brian |
to navigate to use esc to dismiss