# All Time High (ATH) Levels

All Time High (ATH) Levels is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Plots a user-defined number of historical all-time highs as horizontal levels, filtered by how long each record stood and how far apart the levels sit. Every level is classified as support or resistance with a strength percentage, giving traders who anchor entries and exits to long-memory reference prices a ranked map of the levels that matter.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Mar 12, 2024.
- Access: free.
- Concepts: [All-time & 52-week Extremes](https://www.luxalgo.com/library/concept/all-time-and-52-week-extremes/) (primary)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn03pe0009vhsg0p88dg2w
- Page: https://www.luxalgo.com/library/indicator/all-time-high-ath-levels/

**All Time High (ATH) Levels** turns an instrument's record book into a chart overlay, plotting a user-defined number of historical [all-time highs](https://www.luxalgo.com/library/concept/all-time-and-52-week-extremes/) as horizontal levels and grading each one as support or resistance with a strength percentage. Duration and distance filters strip out fleeting or stacked records, leaving only the peaks the market genuinely respects.

## How to Trade the All Time High (ATH) Levels?

- **"R" levels**: weighted by distance, closes have sat mostly below the level. Treat it as resistance and watch retests for rejection.
- **"S" levels**: price holds above the level, so it leans support; pullbacks into it are natural places to look for a reaction.
- **Strength percentage**: readings from 99% down to 50% mark levels tested often as support or resistance; below 50% is less decisive, while a perfect 100% means the level was seldom tested.

Recent records tend to cap price while older, long-reclaimed highs act as a base, which is why the filtering matters: demand a longer minimum duration and wider spacing and the chart reduces to a handful of meaningful lines instead of dozens. The result slots neatly alongside the rest of the library's [level tools](https://www.luxalgo.com/library/family/levels/).

## All Time High (ATH) Levels Settings

- **Show Last ATH**: how many recent all-time highs stay on the chart.
- **ATH Minimum Duration**: bars a record must persist before it qualifies. Raise it to keep only significant peaks.
- **Minimum Distance Between ATH**: spacing filter in ATR multiples that removes closely stacked levels; enabling it can introduce repainting.
- **Show SR%**: toggles the support/resistance classification and strength percentage.
- **Minimum %**: hides levels graded below your threshold.

## Frequently Asked Questions

### Is the All Time High (ATH) Levels indicator free?

Yes. It is free in the LuxAlgo Library, and you can load it into Quant, our coding agent, straight from this page to test how record levels behave on your markets. You can also copy the source code from this page and run it anywhere Pine Script® runs.

### How is it different from the ATH/ATL Tracker?

This tool draws the record prices themselves as tradeable levels. The [ATH/ATL Tracker](https://www.luxalgo.com/library/indicator/ath-atl-tracker/) instead charts the size and timing of moves between successive records as a histogram: sentiment context rather than trade location.

### Why did some levels disappear after I changed the filters?

That is the design working: raising ATH Minimum Duration or the distance filter deliberately prunes short-lived and tightly clustered records. Fewer, stronger levels are easier to trade around than a wall of lines.

## Related indicators

- [ATH/ATL Tracker](https://www.luxalgo.com/library/indicator/ath-atl-tracker/) (All-time & 52-week Extremes): markdown at https://www.luxalgo.com/library/indicator/ath-atl-tracker.md
- [52 Week High/Low](https://www.luxalgo.com/library/indicator/52-week-high-low/) (All-time & 52-week Extremes): markdown at https://www.luxalgo.com/library/indicator/52-week-high-low.md
- [Average Daily Range](https://www.luxalgo.com/library/indicator/average-daily-range/) (Period Opens): markdown at https://www.luxalgo.com/library/indicator/average-daily-range.md
- [Previous Highs & Lows](https://www.luxalgo.com/library/indicator/previous-highs-lows/) (Prior Period Levels): markdown at https://www.luxalgo.com/library/indicator/previous-highs-lows.md
- [VWAP Periodic Close](https://www.luxalgo.com/library/indicator/vwap-periodic-close/) (Anchored VWAP As Level): markdown at https://www.luxalgo.com/library/indicator/vwap-periodic-close.md
- [HTF Candle Projections](https://www.luxalgo.com/library/indicator/htf-candle-projections/) (Prior Period Levels): markdown at https://www.luxalgo.com/library/indicator/htf-candle-projections.md
- [Naked POC](https://www.luxalgo.com/library/indicator/naked-poc/) (Naked POC As Level): markdown at https://www.luxalgo.com/library/indicator/naked-poc.md
- [Breakout Detector (Previous MTF High Low Levels)](https://www.luxalgo.com/library/indicator/breakout-detector-previous-mtf-high-low-levels/) (Prior Period Levels): markdown at https://www.luxalgo.com/library/indicator/breakout-detector-previous-mtf-high-low-levels.md

---

Source: https://www.luxalgo.com/library/indicator/all-time-high-ath-levels/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
