TradingView
ArmerSchlucker
Jun 14, 2021 6:26 PM

ADR% / ATR / LoD dist. Table 

Apple Inc.NASDAQ

Description

Displays the following values in a table in the upper right corner of the chart:

  • ADR%: Average daily range (in percent).
  • ATR: Average true range (hidden by default).
  • LoD dist.: Distance of current price to low of the day as a percentage of ATR.


All values are calculated based on daily bars, no matter what time frame you are currently viewing. Doesn't work for time frames >1D, which is why the table is not shown on weekly/monthly charts.

Credit to MikeC / TheScrutiniser and GlinckEastwoot for ADR% formula
Comments
behever
Is there a way we could insert this info into an alert? For example, When TSLA crosses $1000 I would like an alert to fire with the ATR or ADR%. {{study("Show ATR")}} ??
Donettie
@behever, I would love that kind of setting too.
TheTradingParrot
@Donettie, add ATR and ADR % to your chart (separately from this indicator), then in your alert use the shortcuts to grab data from the data window example {{plot_0}}.

Do a bit of trial error until you manage to pick the correct variable "plot". Any alert can include those variable.
Shaolong78
Thanks for this, it's exactly what I was looking for.
yunemars
Really helpful script. I wish Tradingview also add this ADR% to Screener but anyway, seeing ADR% on the chart helps me a lot. Thanks again
iannn
Been looking for this exact script for so long. Thankyou.
MinnesotaFuts
Very useful, thanks!
mohibhotak
Hi,

Would it be possible to even get Market Cap and Float of outstanding shares? Thank you for you time!
oldyize1
hello good script here. wondering if something like this can be done for the intraday? thanks
yvyday
Love it, simple and effective.
More