Skip to content
All library documents

Using a Color-Coded PEMA Envelope Channel to Read Trend Direction

Article MQL5 code base

Summary

This brief indicator description explains a channel-based way to display price direction and candle alignment. Candles are assigned colors after price moves outside a gray envelope: aquamarine signals an upward trend direction, while yellow signals a downward direction. A brighter shade indicates that the candle itself moves in the same direction as the trend; a darker shade indicates that candle movement runs counter to it.

The description outlines how to interpret the visual states, but it does not give the channel's calculation rules, parameter settings, entry or exit criteria, or evidence from testing. It therefore explains a chart-reading aid rather than a complete trading strategy. The implementation depends on an external smoothing-algorithm library, and the note points readers to a separate article for its class details. Without those calculation details or performance evaluation, the color cues alone cannot establish how the indicator behaves across instruments or market conditions.

Key ideas

  • The indicator colors candles when price exits a gray PEMA envelope channel.
  • Aquamarine represents upward trend direction, while yellow represents downward direction.
  • Bright shades indicate candle and trend directions agree, while dark shades indicate they conflict.
  • The description does not specify trading rules or provide performance evidence.
  • The implementation relies on a separate smoothing-algorithm library.

Tags

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