Hey,
I need help.
I added manual code that is modifying StopLoss after Profit level activation. It's work. I'm calculating OnEachTick. When I'm back testing, The problem is that when the condition met it's exit only on the next bar(Minute). why It's not closing the position immediately?
It seems that setStoploss and exitlong()/short is working only on bar per minute and can't execute in the on each bar... why it's waitting until the next bar (in my case 1 minute) to exit?
Rami

Comment