For some reason SetProfitTarget() and SetStopLoss() get submitted only once on the first trade when I'm testing my script with market replay. When I have them written down in the "State == State.Configur" they should be submitted after every entry order gets filled, right?
I'm printing out in the OnOrderUpdate each time when entry order gets filled and SL with TP gets submitted. On the first trade all 3 get printed out. On the second trade only entry filled gets printed but no SL or TP submitted. I added pics as well from code and from output, the relevant part is marked with red lines.
Thank You!

Comment