All indicators

All Time High (ATH) Levels

By LuxAlgoMar 12, 2024

All Time High (ATH) Levels is an indicator on Vela, our next-generation charting platform, written in Pine Script®.

Static chart image

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 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.

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

Free to use

Run it on Vela. Go further with a paid plan.

  • Up to 500 Custom Alerts, with webhook automation
  • Up to 10× the chart history of Free
  • Orderflow lookback up to full history
  • More Quant usage to customize it, plus extra usage when you need it
  • Futures data alongside crypto, stocks, forex and commodities
See plans

Also works on

TradingView
NinjaTrader
MetaTrader 4/5
Original indicatorBuilt in-house by LuxAlgo

Run it on Vela. Make it yours with Quant.

Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.