Hello. Sometimes I think that I have already gone head over heels and as a result everything is bad, but no. There is 1 Expert Advisor, goes on the signal, then goes on tp and sl. The dose rises and gradually comes out. If I run it simply, click Debug on historical data in MetaEditor, then at the beginning of the trade, such transactions are obtained
But if I put Breakpoint at the moment of conditions different in Sl and Tp and just run the EA through ctrl F11, then the deals are already obtained according to the condition.
That is, if the close exceeds sl, the EA should open the opposite trade with 1 lot. What could it possibly be?
Here is the entire action code for this period