I am running a simple screener and have a similar issue to others. I am running prorealtime through IG Index, am not entirely sure if that counts as the free or premium version ?
Anyway I am just screening for stocks that have the 20 day EMA cross the 200 day SMA. Even if i were on the non premium version the surely a 256 bar lookback would be sufficient ?
Have attached the basic screener and some examples of when it has given a “correct” result and also where it is not ” correct”. These were results from the screener today.
This screener code is designed to identify stocks where a 20-day Exponential Moving Average (EMA20) crosses over a 200-day Simple Moving Average (SMA200), with an additional condition that the volume must be greater than 100. It focuses on bullish crossovers only, indicating potential upward momentum in the presence of adequate trading volume.
Of the 20 results that I got 17 were “correct” showing the 20EMA crossing over the 200SMA but three still showed the 20EMA still below the 200SMA so should not have been in the results.
Am still confused as to why this should happen
As ever all guidance or suggestions are much appreciated
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