OPEN-SOURCE SCRIPT
ATH Levels

ATH Levels
All-time high distance tracker with dynamic tolerance zones, trend leg measurement, and precision alerts for SPY pullback and correction entries.
---
What it does:
ATH Levels automatically tracks the all-time high price and plots key percentage retracement levels below it. Each level represents a statistically significant support zone where SPY has historically shown mean reversion behavior — making them ideal reference points for swing and long term entry planning.
Key levels:
- ATH — current all-time high with days elapsed counter
- -3% / -4% — shallow pullback zones, first reaction levels
- -5% — standard pullback threshold, high probability bounce zone
- -10% — correction territory entry zone
- -15% / -20% — deep correction zones, high conviction long term entries
- -25% — bear market territory (disabled by default)
Dynamic tolerance zones:
Only the two nearest levels to current price show active tolerance bands — keeping the chart clean while highlighting exactly where price is most likely to react. Tolerance is tighter near ATH (-3%/-4% = 0.20%) and wider at deeper levels (0.30%).
Now label:
A floating label at current price shows exact distance from ATH in real time — instantly telling you where you stand in the pullback structure.
Trend Leg %:
Measures the current price move from the last weekly pivot low (when near ATH) or pivot high (when in correction). Displayed directly on the ATH label — showing how extended the current leg is and whether a continuation or reversal is more likely.
---
Key features:
- Analysis mode — reveals all colored level lines and tolerance boxes simultaneously for detailed review
- Anti-spam pivot engine — alerts fire once per confirmed pivot leg
- Individual and master alert system for every level
- Fully customizable colors, widths, and tolerances per level
---
Alert types (per level):
- Near — price approaching within tolerance zone
- Touch — price has intersected the level
- Over — price has broken above tolerance zone after a touch
- Under — price has broken below tolerance zone after a touch
---
How to use:
- On Daily chart — use levels for swing and long term entry planning with pyramiding
- On 1H chart — combine with Bias indicator verdicts for higher conviction entries
- Now label gives instant ATH distance context at a glance
- Trend Leg % on ATH label helps identify overextended moves before reversals
All-time high distance tracker with dynamic tolerance zones, trend leg measurement, and precision alerts for SPY pullback and correction entries.
---
What it does:
ATH Levels automatically tracks the all-time high price and plots key percentage retracement levels below it. Each level represents a statistically significant support zone where SPY has historically shown mean reversion behavior — making them ideal reference points for swing and long term entry planning.
Key levels:
- ATH — current all-time high with days elapsed counter
- -3% / -4% — shallow pullback zones, first reaction levels
- -5% — standard pullback threshold, high probability bounce zone
- -10% — correction territory entry zone
- -15% / -20% — deep correction zones, high conviction long term entries
- -25% — bear market territory (disabled by default)
Dynamic tolerance zones:
Only the two nearest levels to current price show active tolerance bands — keeping the chart clean while highlighting exactly where price is most likely to react. Tolerance is tighter near ATH (-3%/-4% = 0.20%) and wider at deeper levels (0.30%).
Now label:
A floating label at current price shows exact distance from ATH in real time — instantly telling you where you stand in the pullback structure.
Trend Leg %:
Measures the current price move from the last weekly pivot low (when near ATH) or pivot high (when in correction). Displayed directly on the ATH label — showing how extended the current leg is and whether a continuation or reversal is more likely.
---
Key features:
- Analysis mode — reveals all colored level lines and tolerance boxes simultaneously for detailed review
- Anti-spam pivot engine — alerts fire once per confirmed pivot leg
- Individual and master alert system for every level
- Fully customizable colors, widths, and tolerances per level
---
Alert types (per level):
- Near — price approaching within tolerance zone
- Touch — price has intersected the level
- Over — price has broken above tolerance zone after a touch
- Under — price has broken below tolerance zone after a touch
---
How to use:
- On Daily chart — use levels for swing and long term entry planning with pyramiding
- On 1H chart — combine with Bias indicator verdicts for higher conviction entries
- Now label gives instant ATH distance context at a glance
- Trend Leg % on ATH label helps identify overextended moves before reversals
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.