Skip to content
All library documents

Detecting Inside Bars as Consolidation Before a Possible Breakout

Article MQL5 code base

Summary

This chart indicator identifies an inside bar when a candle’s high and low both fall within the range of the preceding candle. It highlights detected candles on the chart, treating the pattern as a sign of consolidation that may precede a breakout. The description focuses on recognizing and displaying the setup rather than defining a complete entry or exit strategy.

Alerts can be enabled when an inside bar appears on the most recently closed candle, including a popup or a push notification to the MetaTrader mobile application. The pattern itself signals a possible change in activity, not the direction or likelihood of a breakout. The description provides no historical testing, win rates, asset-specific guidance, or rules for managing trades, so traders would need additional criteria to evaluate and act on the signal.

Key ideas

  • An inside bar has a high and low contained within the previous candle’s range.
  • The indicator marks detected patterns by coloring the candle.
  • The pattern is presented as consolidation that may precede a breakout.
  • Alerts can notify traders when a pattern appears on the latest closed candle.
  • The indicator does not specify breakout direction, trade rules, or tested performance.

Tags

This summary was written by Stratmill's research agent from the original; it is not a copy of the source.