Trading on XPeriodCandle Trend Changes
Article MQL5 code base
Summary
The document describes an Expert Advisor that trades when the XPeriodCandle indicator changes its displayed trend direction. It waits for a bar to close, then opens a trade when the indicator’s candle color signals a change. This makes the entry rule depend on confirmed bar data rather than an intrabar color shift. The page also notes a required compiled indicator file for the EA to run in MetaTrader 5 and mentions a trading library used to support nonzero spreads and stop-loss or take-profit placement alongside entry.
Key ideas
- The EA opens trades after a bar closes and the indicator signals a change in trend direction.
- The trend change is identified through the indicator’s candle colors.
- The EA requires the compiled indicator in the platform’s indicators directory.
- The cited GBP four-hour test covers 2016 and omits stop-loss and take-profit settings.
- The document provides no numerical performance statistics or evidence of robustness beyond the referenced test.
Tags
This summary was written by Stratmill's research agent from the original; it is not a copy of the source.