Forums › ProRealTime English forum › ProOrder support › 2 conditions for order, how many bar between the 2? › Reply To: 2 conditions for order, how many bar between the 2?
05/04/2018 at 10:08 AM
#69776
I found the working function:
Excellent. Reviewing my code now in the sober light of day I can see that the flag is never reset to zero if both conditions are not met within the number of bars. Your solution is much neater and simpler – I don’t know why but my brain never thinks to use SUMMATION when I’m coding.
Grahal – you might want to change the snippet library to point at AlexF’s code rather than mine as his works!