TradingView
vtrader321
7 Okt 2021 pukul 01.43

ADR Percent 

PENN Entertainment, Inc.NASDAQ

Deskripsi

Uses past 5 day's daily average ranges and calculates average ADR percentage with respect to latest day's open

Acknowledgement - Uses code from another excellent indicator from critian.d

Catatan Rilis

Add the ability to select the time period for ADR calculation to be chosen from one of the 5/10/15 days

Catatan Rilis

Fixed a bug with time range selection

Catatan Rilis

Added 20 day range

Catatan Rilis

Upgrade to pine script version 5

Catatan Rilis

Fixed a bug in the script where it was incorrectly diving the ADR by 2. Now you should correctly see the ADR to be twice as before.
Komentar
mattmoro
Thank you. Best one.
zkovacs31
also has it been corrected as per prev comment?
zkovacs31
Hi, is it possible to show pips instead of %? thanks
MartinWeb
why do you dive by two? _adr := _adr_5 / 2 should it not be counting the moves up and down or did i understand sth wrong?
vtrader321
@MartinWeb, you're correct. I'll be fixing this soon
MartinWeb
@vtrader321, i alwas wanted to know how he did that: tradingview.com/v/CRMVosTv/ too bad the code is not fully posted in the comments. one part was missing. that could be something for you ;)
vtrader321
@MartinWeb, Finally got to fix this bug. Sorry for the long wait
TEXAGG22
thanks alot for this man, if you could make one that is even lower timeframe that would be pimp. anyways, very nice been looking for something like this
vtrader321
@TEXAGG22, that is a good idea but I won't do it on this indicator. This is supposed to be average "daily" range. So will have to stick to daily timeframe only. Let me see if I can add another indicator for that
Lebih lanjut