The below screener code should work as expected. On the current candle, the price is breaking the exponential average 7 periods while the 5 previous candlesticks Close were above or below the average.
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