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).
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