OPEN-SOURCE SCRIPT
Heikin Ashi Potential Break Alert

Heikin Ashi Wick and Doji Range Break
This indicator identifies a two-candle Heikin Ashi pattern consisting of a prominent wick candle followed immediately by a doji.
A prominent wick is measured as a configurable percentage of the candle’s full high-to-low range. The default threshold is 30%. A doji is identified when its body is no larger than the selected percentage of its full range.
When a qualifying wick-and-doji pair is found, both candles are highlighted using the selected colour. The indicator then monitors the high or low of the doji:
• A pattern containing a dominant lower wick monitors for a move above the doji high and displays HIGH BREAK.
• A pattern containing a dominant upper wick monitors for a move below the doji low and displays LOW BREAK.
Optional confirmation can require a selected number of consecutive Heikin Ashi candles in the corresponding direction before range-break detection becomes active. Confirmation can also be disabled.
Break detection can use either:
• A high or low moving beyond the doji level.
• A candle closing beyond the doji level.
Optional alerts are available for high breaks, low breaks, or either type of break. Break markers and alerts are evaluated after the relevant candle closes.
This indicator is intended for visual pattern identification and chart study. Heikin Ashi candles use synthetic values and can differ from actual traded prices. The indicator does not place orders, calculate trade performance, or provide guarantees about future market movement.
This indicator identifies a two-candle Heikin Ashi pattern consisting of a prominent wick candle followed immediately by a doji.
A prominent wick is measured as a configurable percentage of the candle’s full high-to-low range. The default threshold is 30%. A doji is identified when its body is no larger than the selected percentage of its full range.
When a qualifying wick-and-doji pair is found, both candles are highlighted using the selected colour. The indicator then monitors the high or low of the doji:
• A pattern containing a dominant lower wick monitors for a move above the doji high and displays HIGH BREAK.
• A pattern containing a dominant upper wick monitors for a move below the doji low and displays LOW BREAK.
Optional confirmation can require a selected number of consecutive Heikin Ashi candles in the corresponding direction before range-break detection becomes active. Confirmation can also be disabled.
Break detection can use either:
• A high or low moving beyond the doji level.
• A candle closing beyond the doji level.
Optional alerts are available for high breaks, low breaks, or either type of break. Break markers and alerts are evaluated after the relevant candle closes.
This indicator is intended for visual pattern identification and chart study. Heikin Ashi candles use synthetic values and can differ from actual traded prices. The indicator does not place orders, calculate trade performance, or provide guarantees about future market movement.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。