TradingView
vtrader321
2021年10月7日早上1點43分

ADR Percent 

PENN Entertainment, Inc.NASDAQ

描述

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

發布通知

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

發布通知

Fixed a bug with time range selection

發布通知

Added 20 day range

發布通知

Upgrade to pine script version 5

發布通知

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.
評論
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
更多