I am trying to figure out how to write a piece of code to detect whether the last, say, 50 bars were in a range of less than 20 pips. In this case I would not enter any trade even if conditions are met.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok