OPEN-SOURCE SCRIPT
已更新 SD - Average Daily Range - Daily Weekly Monthly Yearly

Average Daily Range ('ADR') Indicator for TradingView
This script is based on the "Best 'ADR' Indicator for MT4" described at fxdayjob.com/best-adr-indicator-mt4.
Inputs:
See also:
- fxdayjob.com/best-adr-indicator-mt4
- pivotboss.com/2012/07/05/find-the-best-real-time-targets/
- jarrattdavis.com/average-daily-range-2/
This script is based on the "Best 'ADR' Indicator for MT4" described at fxdayjob.com/best-adr-indicator-mt4.
Inputs:
- Number of 'ADR' Back - Set the number of calendar days back to plot historical 'ADR'. The default value is 7.
Non-trading days are not taken into account.
A value of 7, for example, would display only 5 'ADR' for a 24x5 market. - Number of 'AWR' Back - Set the number of calendar weeks back to plot historical 'AWR'. The default value is 0.
- Number of 'AMR' Back - Set the number of calendar months back to plot historical 'AMR'. The default value is 0.
- Number of 'AYR' Back - Set the number of calendar years back to plot historical 'AYR'. The default value is 0.
- 'ADR' Length parameter - Set the length parameter of 'ADR'. The default value is 1.
- 'WDR' Length parameter - Set the length parameter of 'AWR'. The default value is 1.
- 'MDR' Length parameter - Set the length parameter of 'AMR'. The default value is 1.
- 'YDR' Length parameter - Set the length parameter of 'AYR'. The default value is 1.
See also:
- fxdayjob.com/best-adr-indicator-mt4
- pivotboss.com/2012/07/05/find-the-best-real-time-targets/
- jarrattdavis.com/average-daily-range-2/
發行說明
Fix the incorrect ADR math which manifests when length parameter > 1. Thanks to @PierreAbdulahad for spotting and reporting it!開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。