I am running an automated strategy on forex, my broker is Interactive brokers. I noticed that every day between 10pm GMT and 10.05pm GMT my orders get rejected, as if the connection between NT and IB gets reset. This is the error message I get and it sounds very much as this is a broker issue rather than NT issue:
if(BarsInProgress == 1) // secondary time frame (e.i. 1 min) { if(long_condition) { if (Position.MarketPosition == MarketPosition.Flat && entryOrderLong ==null [B]&& ToTime(Times[1][0]) < (220000) && ToTime(Times[1][0]) > (220500)[/B]) { entryOrderLong = EnterLongStop(...); } } }
if(BarsInProgress == 0) // primary time frame (e.i. 30 min) { if(Position.MarketPosition == MarketPosition.Long && stopOrderLong != null) { double newStop = 0; if(stop_condition) newStop = Low[0]; if(newStop > stopOrderLong.StopPrice && newStop < Close[0]) // check if new stop loss is higher than current stop loss { stopOrderLong = ExitLongStop(...); } } }
Thanks
Comment