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.
To help us continually offer you the best experience on ProRealCode, we use cookies. By clicking on "Continue" you are agreeing to our use of them. You can also check our "privacy policy" page for more information.Continue