Here is the code, beware that conditions for resting near the 52 week lows could be too restrictive. In this example, I add a 10% max at line 6 (1.10 => change it to whatever coefficient).
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