Skip to content
All library documents

Market-Depth Order Blocks and Indicator Trading Signals

Article MQL5 articles

Summary

This article develops an MQL5 indicator that uses market-depth volume to identify candidate bullish and bearish order blocks, then exposes signals and plotted take-profit and stop-loss levels for automated trading. The proposed pattern rules combine a volume peak on a designated candle with a run of directional candles and price relationships among neighboring candles. The implementation collects bid and ask depth updates, accumulates them into rolling candle arrays, and uses indicator buffers to communicate signals and risk levels.

The approach depends on market-depth data being available from the broker and instrument; the article includes checks to disable that functionality when data cannot be obtained. It describes indicator construction and signal logic, but gives no performance evaluation demonstrating that the order-block rules predict profitable trades. Depth availability and the reliability of the volume measurements therefore limit how broadly the method can be applied.

Key ideas

  • The indicator uses market-depth bid and ask volumes to evaluate candidate order blocks.
  • Pattern rules combine a volume imbalance with directional candles and neighboring price levels.
  • Depth updates are accumulated into rolling arrays to support candle-by-candle analysis.
  • Signal, take-profit, and stop-loss buffers allow an Expert Advisor to consume the indicator output.
  • Market-depth volume is broker- and instrument-dependent, and the article reports no strategy performance test.

Tags

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