strange behavior with SMA crossing

Forums ProRealTime English forum ProScreener support strange behavior with SMA crossing

Viewing 6 posts - 1 through 6 (of 6 total)
  • #220511

    Hi,

    here is my screener :

    Basically, I want to get the stocks whose SMA50 went above SMA200 in the last 5 days.

    Most of my results are correct, but for some, i notice the SMA50 being below SMA200. Any idea why ? I’ll attach 2 screenshots for the same stock that was reported by the screener. one screenshot has historical data adjusted for dividends, and the other without the adjustment. In both cases, SMA200 is above SMA50.

    thanks

    #220538

    This will do:

     

    #220599

    hi,

    it seems that this script returns the stocks where SMA50 went above SMA200 5 days ago, and not in the last 5 days, doesn’t it ?

    and this script returns 4 results on the NYSE. I’m attaching one of the 4 results where SMA50 is below SAM200. So it also seems to be doing the same weird thing as my original script. any idea why ?

    #220601
    JS

    Hi,

    Try this one:

    1 user thanked author for this post.
    #220606

    No, my script checks only the last 5 bars, the 6th bar, bar 5, is checked not to be above.’

    #220660

    Hi,

    Try this one:

    works great !

    1 user thanked author for this post.
    avatar JS
Viewing 6 posts - 1 through 6 (of 6 total)

Create your free account now and post your request to benefit from the help of the community
Register or Login