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.
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน