flag reset not working
-
Hi, Im trying to make the following.
1: When fast MA cosses above slow MA -> set "uptrend-flag" to true.
2: When "uptrend-flag" = true -> place pending order.
3: once pending order has been closed-> set "uptrend-flag" to false.It seems to work through the first cycle, but once the trend has gone through a down trend and then to an uptrend again, it seems as if the "uptrend-flag" does not get reset to true.
Can anyone see what is wrong?
-
i might try removing the blue block above the false setting flag, and use a pink once trade. that'll get rid of the need for a counter.
-
@TipsyWisdom Thank you! That works!