Average Daily Trading Range Script


How do I create a script to show an Average Bar Trading Range for the last 180 days on the upper left corner of the chart?

Any assistance would be very much appreciated.

Hi Liam,

I’m not exactly sure if this is what you had in mind, but could you use ATR(Bars=180) in a Chart Element tool?


Thanks Darren. using the following script in a chart element I’d like to make it a percent. Is there a way to add the text “%” to the script below?



Sure - there’s no need to multiply the formula by 100: simply set the Field Type property to Percentage and the % will be added (same as a watchlist):