get the SMA200 value of 20 days ago

Forums ProRealTime English forum ProScreener support get the SMA200 value of 20 days ago

Viewing 8 posts - 1 through 8 (of 8 total)
  • #221948

    Hi,
    I’d like to know how I could get the value of SMA200 of 20 days ago ?
    the goal is to detect if the SMA200 has been going up over the last 20 days
    thanks

    #221950

    There you go:

    #221962

    I’m confused…

    here is my original screener :

     

    If I run this screener on the “US NSYE Actions”, it returns 8 stocks including the one on the screenshot. On this screenshot, we can see that the SMA200 100 days ago was below today’s SMA.
    But if I add a new criteria based on what you told me, I get 0 result. I don’t get. What did I do wrong ? any idea ?

     

    #221967

    SMA200goingUp = SMA200 > SMA200[100] is not allowed in screeners as 200+100 exceeds the 256-bar limit with IG. Only the premium version from PRT supports a 1024-bar limit.

    To make sure your conditions are all correct, analyze them separately, esch one of them, then combine them.

     

    #221968

    Can you please elaborate the « analyze them separately, esch one of them, then combine them » ?

    Switching the timeframe with « timeframe(weekly) » might be easier ?

    #221981

    All you need is to use test one condition at a time:

    1. Screener[C1]
    2. Screener[SMA5enBaisse]
    3. Screener[PrixAuDessusSMAs]
    4. Screener[SMA200goingUp]
    5. Screener[defaultConditons]

    when you are confident they all work, you can combine them in a single line.

     

     

     

    #222006

    you lost me… to combine them in a single line, you’d do Screener[C1 AND C2 AND C3 ] ?

    and how would you do the testing one condition at a time ?

    #222008

    One condition at a time like my example in my last post.

    You start with the first one, when it’s ok thrn you replace it with the second one (or even better, you add it to the first one), eyc… until all conditions return what you expect.

    Then you may combine them as you want, like you did in line 30 or 33.

     

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

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