Moving average screener

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #210216 quote
    rob.esrob.es
    Participant
    New

    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

    ma= Average[200](close)
    c1= ma-high <= ma * 0.95
    screener [c1]
    Screen-Shot-2023-02-22-at-5.02.30-PM.png Screen-Shot-2023-02-22-at-5.02.30-PM.png
    #210218 quote
    JSJS
    Participant
    Master

    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 quote
    rob.esrob.es
    Participant
    New
    thank you
    JS thanked this post
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
ProRealAI ProRealAI New

Stuck on this ProBuilder code?

Describe what this topic is trying to build, in plain English, and ProRealAI writes the ProRealTime™ indicator, screener or system for you.

Available in 7 languages
Try ProRealAI

Moving average screener


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
rob.es @rob-es Participant
Summary

This topic contains 2 replies,
has 2 voices, and was last updated by rob.esrob.es
3 years, 6 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 02/23/2023
Status: Active
Attachments: 1 files
ProRealCode ProRealCode
Loading...