Moving average screener

Forums ProRealTime English forum ProScreener support Moving average screener

Viewing 3 posts - 1 through 3 (of 3 total)
  • #210216

    hi,

    I tried to write a screener to find stocks which the current high is equal to or very close to 200 simple moving average. but the results are so off:

    the attached is screenshot of one of the results that is not matching my code.

    thank you

    #210218
    JS

    Hi Rob,

    If you want to use 5% of the MA as the maximum distance between (MA-High) then the code is:

    C1 = ma – High <= ma * 0.05

    Or better:

    C1 = Abs (ma – High) <= ma * 0.05

    #210219

    thank you

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

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