OPEN-SOURCE SCRIPT
ATH/ATL/Days

This indicator displays the All-Time High (ATH) and All-Time Low (ATL) — or more precisely, the highest and lowest price within the last N days. It works on any timeframe and uses only local chart data (no security() calls), ensuring stable and accurate results.
It plots horizontal lines for both the ATH and ATL and includes a clean, compact table showing:
Date of the extreme
Days since it occurred
Price
% distance from current price
$ distance from current price
A reliable tool for identifying local extremes, spotting market structure shifts, and tracking short-term price ranges.
It plots horizontal lines for both the ATH and ATL and includes a clean, compact table showing:
Date of the extreme
Days since it occurred
Price
% distance from current price
$ distance from current price
A reliable tool for identifying local extremes, spotting market structure shifts, and tracking short-term price ranges.
Skrip open-source
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Pernyataan Penyangkalan
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Skrip open-source
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Pernyataan Penyangkalan
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.