NexusFi: Find Your Edge


Home Menu

 





Autotrade with IB


Discussion in Brokers

Updated
      Top Posters
    1. looks_one mosheobrien with 5 posts (0 thanks)
    2. looks_two monpere with 2 posts (1 thanks)
    3. looks_3 sam028 with 1 posts (1 thanks)
    4. looks_4 redratsal with 1 posts (1 thanks)
    1. trending_up 3,458 views
    2. thumb_up 3 thanks given
    3. group 5 followers
    1. forum 9 posts
    2. attach_file 0 attachments




 
Search this Thread

Autotrade with IB

  #1 (permalink)
 
mosheobrien's Avatar
 mosheobrien 
California
 
Experience: Advanced
Platform: NinjaTrader
Broker: IB, NT, AMP, Ironbeam
Trading: NQ, CL, RB
Posts: 7 since Feb 2010
Thanks Given: 5
Thanks Received: 1

After running my autotrade strategy in simulation with NinjaTrader and Kineticks datafeed for 4 weeks, I went live with my IB account yesterday. I did not realize that any occasional data disconnection from IB could cause major issues. Now, in the back of my mind, I am expecting another datafeed disconnection from IB, and I have to sit in front of the screen like before. Any suggestions from fellow traders? Switching brokers to where?

Started this thread Reply With Quote

Can you help answer these questions
from other members on NexusFi?
The space time continuum and the dynamics of a financial …
Emini and Emicro Index
Are there any eval firms that allow you to sink to your …
Traders Hideout
Better Renko Gaps
The Elite Circle
Futures True Range Report
The Elite Circle
NexusFi Journal Challenge - April 2024
Feedback and Announcements
 
  #3 (permalink)
 
sam028's Avatar
 sam028 
Site Moderator
 
Posts: 3,765 since Jun 2009
Thanks Given: 3,825
Thanks Received: 4,629


It's always recommended to have two different brokers, two different machines, and a strategy B able to hedge the strategy A, if A has lost communication.
But you're not supposed to loose IB feed, the data quality is poor, but it's quite reliable.

Success requires no deodorant! (Sun Tzu)
Follow me on Twitter Reply With Quote
Thanked by:
  #4 (permalink)
 
mosheobrien's Avatar
 mosheobrien 
California
 
Experience: Advanced
Platform: NinjaTrader
Broker: IB, NT, AMP, Ironbeam
Trading: NQ, CL, RB
Posts: 7 since Feb 2010
Thanks Given: 5
Thanks Received: 1

No, I do not use IB datafeed to trade, I meant I am using Kineticks as datafeed but the connection to IB got lost (the green connection box turned red on the Control Center page), and the orders got out of sync. It was a shocker when it happened the first time

Started this thread Reply With Quote
  #5 (permalink)
 
redratsal's Avatar
 redratsal 
Milan (I)
 
Experience: Advanced
Platform: Ninjatrader
Broker: Kinetick
Trading: FDAX,6E,CL,YM,NQ,ES
Posts: 1,648 since Oct 2010
Thanks Given: 1,215
Thanks Received: 2,090


sam028 View Post
It's always recommended to have two different brokers, two different machines, and a strategy B able to hedge the strategy A, if A has lost communication.
But you're not supposed to loose IB feed, the data quality is poor, but it's quite reliable.

also on NT control center did you check on strategies -> NinjaScript->On connectin loss. NT is able to reconnect automatically several times. What you can do is build a routine (via autohotkey for example) that reads cyclely your NT trace file and when you get a connection lost error sends you an sms or email via skype. If you are away from your computer and received an sms you can use Teamviewer , connect to your computer and reset your strategy.

That beeing said it is not a good idea to leave your computer and let your strat alone, you should not conceive automated strategies to leave your desk but rather to let the computer do the boaring part and execute your rules w/o psychological interference (last but not least the sms could be delayed or you could be in an out of reach mobile zone)

Visit my NexusFi Trade Journal Reply With Quote
Thanked by:
  #6 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371

Doesn't your strategy use stop losses? If you use a stop loss, that is actually sent to IB, not simulated stop that is held on your computer, you should not have major issues. If you lose connection, maybe that trade management will not occure as programmed, but your stop loss at IB, should protect you from catastrophe.

Reply With Quote
Thanked by:
  #7 (permalink)
 
mosheobrien's Avatar
 mosheobrien 
California
 
Experience: Advanced
Platform: NinjaTrader
Broker: IB, NT, AMP, Ironbeam
Trading: NQ, CL, RB
Posts: 7 since Feb 2010
Thanks Given: 5
Thanks Received: 1


redratsal View Post
also on NT control center did you check on strategies -> NinjaScript->On connectin loss. NT is able to reconnect automatically several times. What you can do is build a routine (via autohotkey for example) that reads cyclely your NT trace file and when you get a connection lost error sends you an sms or email via skype. If you are away from your computer and received an sms you can use Teamviewer , connect to your computer and reset your strategy.

That beeing said it is not a good idea to leave your computer and let your strat alone, you should not conceive automated strategies to leave your desk but rather to let the computer do the boaring part and execute your rules w/o psychological interference (last but not least the sms could be delayed or you could be in an out of reach mobile zone)

Thanks, I have just set it to reconnect after 1 minute for 10 times. But ultimately I have to move on to another broker.

Started this thread Reply With Quote
  #8 (permalink)
 
mosheobrien's Avatar
 mosheobrien 
California
 
Experience: Advanced
Platform: NinjaTrader
Broker: IB, NT, AMP, Ironbeam
Trading: NQ, CL, RB
Posts: 7 since Feb 2010
Thanks Given: 5
Thanks Received: 1


monpere View Post
Doesn't your strategy use stop losses? If you use a stop loss, that is actually sent to IB, not simulated stop that is held on your computer, you should not have major issues. If you lose connection, maybe that trade management will not occure as programmed, but your stop loss at IB, should protect you from catastrophe.

Thanks, you are right, the stoploss orders stay at IB, but when the connection is lost, new trades from NT cannot go to IB, obviously. Opportunity lost.

Started this thread Reply With Quote
  #9 (permalink)
 
monpere's Avatar
 monpere 
Bala, PA, USA
 
Experience: Intermediate
Platform: NinjaTrader
Broker: Mirus, IB
Trading: SPY, Oil, Euro
Posts: 1,854 since Jul 2010
Thanks Given: 300
Thanks Received: 3,371


mosheobrien View Post
Thanks, you are right, the stoploss orders stay at IB, but when the connection is lost, new trades from NT cannot go to IB, obviously. Opportunity lost.

This is not an issue that is specific to IB, it is a generic issue. I have IB and Mirus, sometimes I get occasional disconnects on both. As long as you are dealing with this kind of technology, you will have glitches. Now, if you are saying that TWS is disconnecting frequently on a daily basis, while all your other internet connected programs don't experience any disconnection, then there is something wrong with TWS.

Reply With Quote
  #10 (permalink)
 
mosheobrien's Avatar
 mosheobrien 
California
 
Experience: Advanced
Platform: NinjaTrader
Broker: IB, NT, AMP, Ironbeam
Trading: NQ, CL, RB
Posts: 7 since Feb 2010
Thanks Given: 5
Thanks Received: 1



monpere View Post
This is not an issue that is specific to IB, it is a generic issue. I have IB and Mirus, sometimes I get occasional disconnects on both. As long as you are dealing with this kind of technology, you will have glitches. Now, if you are saying that TWS is disconnecting frequently on a daily basis, while all your other internet connected programs don't experience any disconnection, then there is something wrong with TWS.

Actually this time, TWS did not give a 'pink screen'. The marketdata USA from IB got 'disconnected', and since I was trading 6E on NT, the green box of 'connected to IB' turned red on NT's control center page. Like I said, it happened on my first day going live, and it was a shocker. But I agree with you, these are glitches we have to deal with regardless of which broker you trade.

Started this thread Reply With Quote




Last Updated on April 9, 2011


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts