OPEN-SOURCE SCRIPT
HOD Break Markers

This indicator identifies and tracks successive intraday highs of day on fast charts such as 10-second and 1-minute timeframes.
A new HOD is confirmed when:
1. A candle reaches the highest price of the tracking period.
2. The following candle closes with a lower high.
Once confirmed, the indicator places an outlined marker and an `HOD` label above the candle. If a later candle trades above that price—even briefly with its wick—the marker becomes filled and the horizontal level changes to its “broken” colour.
Customization
You can adjust:
- Marker shape: diamond, square, circle, triangle, or none.
- Marker size and `HOD` text size independently.
- Marker, text, and level colours.
- Custom label text, such as `HOD` or `High of Day`.
- Horizontal line style, width, and visibility.
- Whether levels stop at the end of the day or extend across future days.
Tracking windows
- Exchange day: Uses every visible chart bar and resets each exchange day.
- Custom session: Tracks only a selected session, such as `0400-2000` for US extended hours or `0930-1600` for the regular session.
Premarket highs require extended-hours bars to be enabled on the TradingView chart.
Alerts
The script provides alert conditions for:
- A newly confirmed HOD.
- Price breaking a confirmed HOD.
A new HOD is confirmed when:
1. A candle reaches the highest price of the tracking period.
2. The following candle closes with a lower high.
Once confirmed, the indicator places an outlined marker and an `HOD` label above the candle. If a later candle trades above that price—even briefly with its wick—the marker becomes filled and the horizontal level changes to its “broken” colour.
Customization
You can adjust:
- Marker shape: diamond, square, circle, triangle, or none.
- Marker size and `HOD` text size independently.
- Marker, text, and level colours.
- Custom label text, such as `HOD` or `High of Day`.
- Horizontal line style, width, and visibility.
- Whether levels stop at the end of the day or extend across future days.
Tracking windows
- Exchange day: Uses every visible chart bar and resets each exchange day.
- Custom session: Tracks only a selected session, such as `0400-2000` for US extended hours or `0930-1600` for the regular session.
Premarket highs require extended-hours bars to be enabled on the TradingView chart.
Alerts
The script provides alert conditions for:
- A newly confirmed HOD.
- Price breaking a confirmed HOD.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.