Hello,

How can we place an order on the close of the bar for real ?

I see many way of doing it in the backtester, 
SetTradeDelays(0,0,0,0);
BuyPrice =  C;

But what is the equivalent command to place a real order into IB
Controller ?

My signal is on the Open, but I want to place a market order on the
close of the bar.

Buy = O>Ref(C,-1) AND MarketON;
Sell = O<Ref(C,-1) OR MarketOFF; 
Short = Sell;
Cover = Buy;

I don't find the help, I don't know the right words to goggle.

Thank you 

regards

Reply via email to