I am running the code :
if(TotalOpenOrders() == 0 && IsNewBar())
double C_O = Open;
double C_C = Close;
and I get Open = Close all the time!
Any idea why ? Open should differ from Close !
Oh **** ! Thanks Alain ! I didn't understand the whole thing like that. I thought OnTick function gave the last bar already formed.
Thanks for the clarification. It helps a lot !
Moderator: Please mind your language on this forum. Thankyou.