ATR AS % OF PRICE

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #107177 quote
    Andrew UrbahnAndrew Urbahn
    Participant
    New

    Hi – i’m wanting an indicator that has ATR as a % of price that I can have below my chart – same as current ATR chart but instead of vertical axis being price, have vertical axis as ATR % of price

    Many Thx for everyone’s help

    Andrew

    #107179 quote
    VonasiVonasi
    Moderator
    Master
    p = 20
    a = (AverageTrueRange[p](close)/close)*100
    
    return a as "ATR as % of price"

    Welcome to the forums! 🙂

    #107186 quote
    Andrew UrbahnAndrew Urbahn
    Participant
    New

    That is awesome and very kind – thanks so much

    Do you mind if I ask how to add a 10 period weighted moving average line through the ATR indicator you have just given me the code for

    Many thanks for your help – really appreciate

    Andrew

    #107188 quote
    NicolasNicolas
    Keymaster
    Legend

    Should be like:

    p = 20
    a = (AverageTrueRange[p](close)/close)*100
    b = weightedaverage[10](a)
    
    return a as "ATR as % of price", b

    (not tested).

    #107259 quote
    Andrew UrbahnAndrew Urbahn
    Participant
    New

    many thx – i have attached output – is it possible to have it look like the bottom ATR indicator in the attachment

    but with a red line running through it being the 1o period WMA

    many thx again for your help

    andrew

    Screen-Shot-2019-09-12-at-4.44.25-am.png Screen-Shot-2019-09-12-at-4.44.25-am.png
    #107264 quote
    VonasiVonasi
    Moderator
    Master

    You change how any indicator looks by clicking on the wrench/spanner in the top left corner. Change line colours, thicknesses and add colour zones etc

    Screenshot_8-2.png Screenshot_8-2.png
    #107309 quote
    Andrew UrbahnAndrew Urbahn
    Participant
    New

    mant thx

Viewing 7 posts - 1 through 7 (of 7 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 AS % OF PRICE


ProBuilder: Indicators & Custom Tools

New Reply
Author
Summary

This topic contains 6 replies,
has 3 voices, and was last updated by Andrew UrbahnAndrew Urbahn
7 years ago.

Topic Details
Forum: ProBuilder: Indicators & Custom Tools
Language: English
Started: 09/11/2019
Status: Active
Attachments: 2 files
ProRealCode ProRealCode
Loading...