Skip to content
All library documents

Counting Consecutive Candle Directions with Color Changes

Article MQL5 code base

Summary

This brief description presents a candle-based indicator that tracks runs of candles moving in the same direction. When several consecutive candles share a direction, it colors the current candle to match that direction, making the sequence easier to see on a chart.

The document gives no formula, configurable threshold, performance evidence, or trading rules. It does not explain how the coloring behaves when a sequence ends or how many candles are required to trigger it. Treat it as a visual aid for identifying directional runs, not as a validated signal or standalone strategy.

Key ideas

  • The indicator displays directional sequences by recoloring the current candle.
  • It responds when several consecutive candles move in the same direction.
  • The description provides no evidence that the visual pattern predicts future prices.

Tags

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