Building and Testing Moving-Channel Trading Signals in MQL5
Summary
This article develops an MQL5 signal system around equidistant price channels derived from fractal points. Because chart objects are unavailable to an Expert Advisor during ordinary testing and optimization, the approach uses an indicator with buffers for fractals and channel boundaries. A signal class then reads those buffers and applies channel-based rules, beginning with buying at the lower boundary and selling at the upper boundary, alongside configurable exits and position management.
The article describes extensions and optimization runs that examine additional signal factors, including borderline price levels. It reports that the tested borderline factor did not improve performance, while emphasizing that the experiments used fixed channel settings and that conclusions are limited to those settings. The material is chiefly a software and strategy-development example; the supplied text does not establish that the approach generalizes across instruments or market periods. It also highlights a practical distinction between indicator buffers, which can support testing, and graphical objects, which may not be available outside visual testing.
Key ideas
- An indicator with output buffers can expose fractal and channel values to an Expert Advisor during testing and optimization.
- The basic channel rule buys at the lower boundary and sells at the upper boundary.
- A derived signal class can connect channel buffers to the Expert Advisor’s signal and position-management framework.
- The reported test found no improvement from the added borderline-level factor under the chosen settings.
- Results from fixed channel settings do not establish that the same factor will behave similarly under other configurations.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.