OPEN-SOURCE SCRIPT
已更新 Mansfield Long-Range Background

Mansfield Long-Range Background. From Stan Weinstein's book.
This plots the high-low range for the last N years, including the current year.
It gives us an idea of any long-term resistance or support in play, which may affect how a trend behaves.
Note that one could just as easily check the yearly chart to get what this is showing, but it's convenient to have a template with all the elements required to emulate a Mansfield chart.
This plots the high-low range for the last N years, including the current year.
It gives us an idea of any long-term resistance or support in play, which may affect how a trend behaves.
Note that one could just as easily check the yearly chart to get what this is showing, but it's convenient to have a template with all the elements required to emulate a Mansfield chart.
發行說明
Bug fix: in our main weekly use case, Pine could not determine the no. of historical bars required.And thus this long-range indicator really is meant for weekly charts effectively, with around 10 years of data.
發行說明
- Fix bug where we were missing bars in the weekly, and possibly showing things in reverse!
- Fix bug where there were fewer years than the lookback period configured, now it's min of lookback and available years.
- Explicitly error out if the indicator is on any non-weekly and non-yearly charts.
- Replace year labels with triangle-ups/downs, and a tooltip which shows the year, for visual compactness.
發行說明
- Simplify code in parts
- Better logic for displaying year labels, with adjustable vertical spacing.
- Arrays only filled up to required lookback period at the most, now.
發行說明
- Still some weird bug in yearly display, when it should be one to one with the candles.
- Remove use of yearly timeframes, simply sticking to the weekly timeframe, the main use case, where it works as expected.
發行說明
Clarify Lookback Period title text to be more specific. Update chart!開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。