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
p = 20
a = (AverageTrueRange[p](close)/close)*100
return a as "ATR as % of price"
Welcome to the forums! 🙂
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
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).
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
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