PROTECTED SOURCE SCRIPT
True Lifetime ATH Tracker [Replay Safe]

Overview
This indicator is designed for traders who need a mathematically accurate, "bulletproof" level for the absolute highest price a ticker has ever reached in its history. Unlike standard ATH indicators that may fail to load older data or "cheat" by looking at future prices, this script uses a persistent global variable to track the high from the very first available bar of data.
Key Features
Bar Replay Compatible: This is the primary feature. The ATH level updates dynamically as you play through history. It does not "peek" into the future, making it the perfect tool for backtesting how price reacts when approaching or breaking historical records.
1-Minute Precision: Optimized for low timeframe (1m) execution, ensuring you see the exact moment a record-breaking "wick" is touched.
Visual Alert System: The on-screen table and chart background turn solid red the moment the current price is at or above the Lifetime ATH.
Extended Price Line: Features a right-extended level line with an "ATH" label that sticks to the price axis for maximum visibility.
How to Use
Table: Displays the current ATH value. Use the settings menu to change its size and position.
Red Background: When the chart background turns red, you are in "Uncharted Territory" (Price > ATH).
Customization: Fully adjustable colors for the level line, labels, and table to match your chart theme.
Technical Note
The script utilizes var persistent memory and math.max logic to ensure that once a high is established in the calculation, it is never lost, even if you refresh the chart or change timeframes.
This indicator is designed for traders who need a mathematically accurate, "bulletproof" level for the absolute highest price a ticker has ever reached in its history. Unlike standard ATH indicators that may fail to load older data or "cheat" by looking at future prices, this script uses a persistent global variable to track the high from the very first available bar of data.
Key Features
Bar Replay Compatible: This is the primary feature. The ATH level updates dynamically as you play through history. It does not "peek" into the future, making it the perfect tool for backtesting how price reacts when approaching or breaking historical records.
1-Minute Precision: Optimized for low timeframe (1m) execution, ensuring you see the exact moment a record-breaking "wick" is touched.
Visual Alert System: The on-screen table and chart background turn solid red the moment the current price is at or above the Lifetime ATH.
Extended Price Line: Features a right-extended level line with an "ATH" label that sticks to the price axis for maximum visibility.
How to Use
Table: Displays the current ATH value. Use the settings menu to change its size and position.
Red Background: When the chart background turns red, you are in "Uncharted Territory" (Price > ATH).
Customization: Fully adjustable colors for the level line, labels, and table to match your chart theme.
Technical Note
The script utilizes var persistent memory and math.max logic to ensure that once a high is established in the calculation, it is never lost, even if you refresh the chart or change timeframes.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. Однако вы можете использовать его свободно и без каких-либо ограничений — читайте подробнее здесь.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.