I'm programming a scalping strategy. I place an entry order at the first tick of the bar and live at the same bar. To avoid losses I want cancel the order if isn't entry in the market after the range bar reached 3 ticks (see line 92 - 93 in the attached file).
Unfortunately that don't work!
The order stay alive! 
Can anyone help me find the reason?

Thanks,
Michele

Comment