Bitcoin All-Time High (ATH) Alert with Cooldown

๐ What it does:
This indicator tracks new all-time highs (ATHs) and alerts you when Bitcoin (or any asset) reaches a fresh ATH, while avoiding alert spam with a customizable cooldown period.
โจ Key Features
โ Alerts for New ATHs: Never miss when Bitcoin makes history!
โ Cooldown Period: Prevents multiple alerts within a short timeframe (customizable in settings).
โ ATH Line on Chart: A clear, visual line marking the all-time high price.
โ Manual Reset Option: Reset the ATH for testing or specific chart conditions.
โ๏ธ How to Use
- Add the Indicator: Apply it to your chart like any other indicator. Ideally on a small time frame, the cooldown is 20 bars by default (adjustable) which gives 20 minutes on the 1 min chart.
- Customize Settings:
- Cooldown Period (bars): Set the number of bars to wait before triggering another alert (e.g., 20 bars).
- Show All-Time High Line: Toggle to display or hide the ATH line visually.
- Reset All-Time High: Use this to manually reset the ATH to the current bar's high. - Create an Alert:
- Open the "Alerts" menu.
- Select the condition: "New All-Time High".
- Choose a trigger type:
- Once Per Bar: For immediate alerts when a new ATH occurs.
- Once Per Bar Close: To confirm the ATH at the end of each bar.
- Once Per Bar: For immediate alerts when a new ATH occurs.
- Open the "Alerts" menu.
๐ ๏ธ Who is it for?
- Traders and HODLers who want to stay on top of price action.
- Anyone looking for clean and efficient ATH tracking with no redundant alerts
๐ Never miss a new ATH again. Stay ahead of the market!
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda โ ketahui lebih lanjut di sini.
Penafian
Skrip sumber terbuka
Dalam semangat sebenar TradingView, pencipta skrip ini telah menjadikannya sumber terbuka supaya pedagang dapat menilai dan mengesahkan kefungsiannya. Terima kasih kepada penulis! Walaupun anda boleh menggunakannya secara percuma, ingat bahawa menerbitkan semula kod ini adalah tertakluk kepada Peraturan Dalaman kami.
Untuk akses pantas pada carta, tambah skrip ini kepada kegemaran anda โ ketahui lebih lanjut di sini.