Skip to content
All library documents

TWR Candle Recoloring and EMA Trend Confirmation

Article MQL5 code base

Summary

The document explains TWR as a candle-reconstruction indicator: it uses the previous bar’s color and the current bar’s close while disregarding other price information, then redraws the candle chart around closing prices. In its color convention, red marks a rise and green a fall. It gives initialization rules for the first bar and clarifies that the code’s indexing order differs from the explanatory notation. It also refers to upward and downward trend calculations and classic turning signals, though the figures containing those details are not present in the text.

As a possible noise filter, the document proposes confirming a TWR trend signal with an exponential moving average: a close above or below the EMA is treated as support for the corresponding direction. It provides no parameter values, precise signal equations, backtest, or examples with measurable outcomes. The explanation is consequently conceptual; traders would need the missing calculation details and testing across instruments and timeframes before relying on the signals.

Key ideas

  • TWR reconstructs candles using the prior bar’s color and the current bar’s close.
  • The stated color convention assigns red to rises and green to declines.
  • The text describes trend turns but omits the referenced figures and their detailed calculations.
  • An EMA close filter is suggested to reduce noise and confirm trend direction.
  • The document provides no parameter settings or performance testing.

Tags

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