The variable bool is set to false as default.
When condition 1 occurs the variable bool is set to true
When condition 2 occurs and bool is true a trade is placed and bool is reset to false.
I need to know how to reset the bool to false after x number of bars if condition 2 does not occur.
Thanks

Comment