Price crosses over SMA

Forums ProRealTime English forum ProScreener support Price crosses over SMA

Viewing 11 posts - 1 through 11 (of 11 total)
  • #230473

    Hi,
    I’m looking for a way to detect stocks for which the price crossed over the SMA50 in the last 10 days.
    thanks

    #230478

    Hello Here you have:

    If you also want the price to be above the average, you just have to change the last line with this one: screener[n<10 and close > sma]

    #230480

    There you go:

     

    2 users thanked author for this post.
    #230481

    Two is better than one! 🙂

     

    #230482

    great, thanks.
    I had never heard about this barssince function.

    and what if I also want to make sure the price did not go below SMA50 after it crossed over the SMA ?

    #230491

    Hello again, following the same logic as before you can program the following:

    #230503

    it is starting to drive me crazy 🙂

    here is the script I wrote based on your ideas. It includes stocks where the price did not cross the SMA200 in the last 3 days. I dont get why. Any idea ?

    #230508

    It works, but to avoid those stocks that have never crossed the sma200 we can add this n200>=0:

    1 user thanked author for this post.
    #230524

    thanks Ivan, appreciate it

    #230525

    How would you deal with this screenshot ? where the price came close from above to the SMA200, but did not cross it. Then price went back up. I’d like to include those patterns in the detection

    #230563

    Hello
    I would create a line parallel to the sma200 at X distance. From there I would proceed the same as in previous screener but now the reference average would be the parallel to the sma.
    To ensure that the price comes from crossing down the sma200 offset without having crossed down the sma200 then we can control the barindex of each situation.

     

Viewing 11 posts - 1 through 11 (of 11 total)

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