Skip to content
All library documents

EMA High-Low Envelopes and Close-Price Breakout Signals

Article MQL5 code base

Summary

The indicator plots an exponential moving average of closing prices, with upper and lower boundaries calculated as exponential moving averages of the candle highs and lows. Its sole adjustable input is the calculation period, which controls the averaging window.

A signal is marked when a candle closes beyond either boundary: an upper-boundary break places a blue marker at that candle’s high, while a lower-boundary break places a red marker at its low. This gives a visual way to identify closes outside a range formed from smoothed high and low prices. The description explains the calculations and marker rules, but provides no trading rules, performance evidence, or guidance on choosing a period. A breakout marker alone does not establish whether a move will continue or how the signal should be risk-managed.

Key ideas

  • The center line is an exponential moving average of closing prices.
  • The upper and lower envelopes are exponential averages of highs and lows.
  • The calculation period is adjustable.
  • A close above or below an envelope places a directional marker at that candle’s extreme.

Tags

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