Building a Semi-Automatic Fractal Channel Trading Expert Advisor
Summary
The article explains how to construct a price channel in MQL4 from confirmed fractal turning points. It searches a timeframe-specific bar range for two upper or lower extrema, projects a line through them, then locates an opposing extremum to draw a parallel boundary and a median. The example also marks points and fractals on the chart, signals boundary crossings, and calculates recent channel values for trading logic.
For an upward channel, the discussion considers buying when price approaches or crosses the lower boundary and turns upward, while recognizing that a continued move below it may be a breakout. The EA uses bar patterns and channel direction to assess entries and exits; its excerpt also shows closing a profitable buy near the upper boundary and potentially reversing. The article emphasizes that confirmed fractals can cause the channel to change direction, so apparent signals may shift. It presents code and trading rules but provides no systematic performance tests, risk controls, or evidence that the approach is profitable.
Key ideas
- The channel is built by finding two confirmed fractal extrema and projecting a line through them.
- An opposing extremum is used to draw a parallel boundary and the channel median.
- A channel boundary crossing can precede a reversal or a breakout, so it does not determine direction by itself.
- Confirmed fractals can change the channel’s direction, creating uncertainty in entry signals.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.