ATR multiples between two MAs

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #83192 quote
    ZacZac
    Participant
    Average

    Hi,

    I would like to express the distance between a short-term MA and long-term MA as a number of ATR multiples. I have made a start below. I would really appreciate some help in refining things further.

    1/  It would be great to have the stocks displayed in descending order (so the stocks where the gap is the biggest ATR multiple is shown first)

    2/  I would like to see the ATR multiple if possible

    3/  It is probably wise to also add a volume filter (I can probably tackle that bit but just thought of it as I was typing)

    I’ve had a good look around to see if there is any code to repurpose. I can’t seem to find something applicable. Does anyone have any ideas/suggestions?

    Thanks in advance, Zac.

     

    // Number of ATR multiples to cover distance between 10MA and 250MA
    
    TIMEFRAME (DAILY)
    ATR = AverageTrueRange [20] (close)
    MA10 = Average [10] (close)
    MA250 = Average [250] (close)
    DIST = ABS (MA10-MA250)
     
    SCREENER [DIST / ATR]
    #83326 quote
    NobodyNobody
    Participant
    Veteran

    I would like to see the ATR multiple if possible

    Write it as indicator then use that as criteria

    Zac thanked this post
    #83327 quote
    ZacZac
    Participant
    Average

    Thanks.

    Could I easily get from that to a shortlist of the most extended stocks? That’s the primary purpose.

    #83640 quote
    NicolasNicolas
    Keymaster
    Legend

    Just use your condition as the criteria to sort the results:

    SCREENER (DIST / ATR)

    This way, the screener will display all the shares of the list since there is no condition and sorted by “dist / atr” value.

    Zac thanked this post
Viewing 4 posts - 1 through 4 (of 4 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

ATR multiples between two MAs


ProScreener: Market Scanners & Detection

New Reply
Author
author-avatar
Zac @zac Participant
Summary

This topic contains 3 replies,
has 3 voices, and was last updated by NicolasNicolas
7 years, 10 months ago.

Topic Details
Forum: ProScreener: Market Scanners & Detection
Language: English
Started: 10/19/2018
Status: Active
Attachments: No files
ProRealCode ProRealCode
Loading...