I'm using the Strategy Builder for a trade based on crossover moving averages.
I want to use a bool variable to stop the strategy when I have an amount of money (either profit or loss).
I already set the bool variable at the beginning of the strategy (in the variables section) with the default value "true", then in the conditions section I am using a single "Tab" with the conditions:
"Realized PnL = MaxProfit"
"Unrealized PnL = MaxLoss"
And finally, in the same Tab, once the amount of profit or loss is reached, I reset the variable bool to "false" to stop the strategy but none of that works, the strategy continues to operate until the end of the day.
Please can you help me? Is there a procedure to set bool variables?
Regards!
Comment