I forgot to say that Variable A is reset at a different place in my EA, not shown at my example. That point is already fixed.
On the other hand, trading model is exactly what I need according to its definition. I want the SL to move only when the price is ABOVE open price in a buy and BELOW open price in a sell. Additionally, I don't understand why a button is required for it to work. Your additional blocks are really necessary? Why should I add a button?


