Skip to content
All library documents

Using Darvas Box Breakouts and Trend-Colored Bars

Article MQL5 code base

Summary

The indicator described here applies a breakout concept to a Darvas Box channel. It displays the latest channel breakout levels as price labels and allows the channel values to be rounded to a user-selected number of decimal places. A bar leaving the gray channel signals a directional move: blue indicates rising asset prices and red indicates falling prices.

Bar brightness adds a comparison between the inferred trend and the candle’s own direction. Bright coloring marks agreement, while dark coloring marks disagreement. This offers a visual way to distinguish aligned bars from counter-directional candles after a channel exit. The document describes indicator display behavior but provides no entry or exit rules, risk controls, backtest, performance evidence, or guidance on selecting the rounding precision. It therefore explains a charting aid rather than establishing a complete or validated trading system.

Key ideas

  • The indicator uses exits from a Darvas Box channel to show breakout levels and direction.
  • Users can choose the decimal precision used to round channel levels.
  • Blue and red bars represent rising and falling asset trends.
  • Bar brightness indicates whether candle direction agrees with the trend.

Tags

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