OPEN-SOURCE SCRIPT
Fall from Recent Top & ATH (Latest Only)

Fall from Recent Top & ATH (Latest Only)
This indicator calculates and displays the percentage drop from two key peaks—the most recent swing high and the all-time high (ATH)—but only for the latest occurrences. Use it to instantly assess how far price has retraced from these critical levels.
Features:
• Recent Top Fall % – Measures the drop from the last pivot high over your chosen lookback
• ATH Fall % – Shows the decline from the highest price on the chart (or a defined range)
• Latest Only Mode – Automatically clears prior values so you only see the current falls
• Custom Pivot Settings – Pick your data source (high, close, etc.) and lookback period
• Inline Labels & Data Window – Display fall percentages directly on the chart or in the info panel
• Style Controls – Adjust font size, label position, line styles and colors independently
• Alert Support – Set alerts when either fall exceeds your specified threshold
How to Use:
1. Open the indicator’s Inputs and set “Pivot Lookback” for recent swing detection.
2. Choose your “Source” series (default = high).
3. Toggle “Show Recent Top Fall” and “Show ATH Fall” on or off.
4. Enable “Latest Only” to remove old labels and focus on the newest data.
5. (Optional) In the Create Alert dialog, choose “Fall from Recent Top” or “Fall from ATH” and set your threshold.
Interpretation Guide:
- **Recent Top Fall %** helps gauge short-term retracement strength—ideal for timing entries after pullbacks.
- **ATH Fall %** reveals long-term correction severity, useful for spotting major support zones or oversold conditions.
#TradingView #PineScript #Retracement #ATH #SwingHigh #TechnicalAnalysis
This indicator calculates and displays the percentage drop from two key peaks—the most recent swing high and the all-time high (ATH)—but only for the latest occurrences. Use it to instantly assess how far price has retraced from these critical levels.
Features:
• Recent Top Fall % – Measures the drop from the last pivot high over your chosen lookback
• ATH Fall % – Shows the decline from the highest price on the chart (or a defined range)
• Latest Only Mode – Automatically clears prior values so you only see the current falls
• Custom Pivot Settings – Pick your data source (high, close, etc.) and lookback period
• Inline Labels & Data Window – Display fall percentages directly on the chart or in the info panel
• Style Controls – Adjust font size, label position, line styles and colors independently
• Alert Support – Set alerts when either fall exceeds your specified threshold
How to Use:
1. Open the indicator’s Inputs and set “Pivot Lookback” for recent swing detection.
2. Choose your “Source” series (default = high).
3. Toggle “Show Recent Top Fall” and “Show ATH Fall” on or off.
4. Enable “Latest Only” to remove old labels and focus on the newest data.
5. (Optional) In the Create Alert dialog, choose “Fall from Recent Top” or “Fall from ATH” and set your threshold.
Interpretation Guide:
- **Recent Top Fall %** helps gauge short-term retracement strength—ideal for timing entries after pullbacks.
- **ATH Fall %** reveals long-term correction severity, useful for spotting major support zones or oversold conditions.
#TradingView #PineScript #Retracement #ATH #SwingHigh #TechnicalAnalysis
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.