ATR AS % OF PRICE

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #107177 quote
    Andrew 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
    Vonasi
    Moderator
    Master
    p = 20
    a = (AverageTrueRange[p](close)/close)*100
    
    return a as "ATR as % of price"

    Welcome to the forums! 🙂

    #107186 quote
    Andrew 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
    Nicolas
    Keymaster
    Master

    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 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
    Vonasi
    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 Urbahn
    Participant
    New

    mant thx

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

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 Urbahn
6 years, 5 months ago.

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