OPEN-SOURCE SCRIPT
Historical & Periodic Key Levels

Historical & Periodic Key Levels
This indicator automatically plots historical key levels (ATH/ATL) and periodic closing levels (Daily, Weekly, Monthly, Yearly). It highlights major price zones frequently used in technical and institutional trading.
Key Features:
Usage:
Inputs:
Notes:
This indicator automatically plots historical key levels (ATH/ATL) and periodic closing levels (Daily, Weekly, Monthly, Yearly). It highlights major price zones frequently used in technical and institutional trading.
Key Features:
- Dynamic ATH/ATL: tracks all-time high/low with date annotation.
- Periodic Closes: previous D/W/M/Y closes with directional coloring.
- Adaptive Colors: green/red based on bullish or bearish close.
- Full Customization: toggle visibility, colors, line width, text alignment, and label text.
- Smart Label Management: prevents overlap by cycling through label styles automatically.
Usage:
- Identify strong support/resistance levels.
- Monitor key closing prices across multiple timeframes.
- Enhance swing trading and long-term analysis with institutional reference levels.
Inputs:
- Levels Visibility: show/hide ATH, ATL, and periodic closes.
- ATH/ATL Style Settings: line colors, label prefix, width, and text alignment.
- Periodic Levels Style: label text (D/W/M/Y), line width, alignment, and bullish/bearish colors.
Notes:
- Levels adjust automatically to the active chart timeframe.
- Lower timeframe levels are hidden when redundant (e.g., daily close on daily chart).
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。