Skip to content
All library documents

Two-Speed LWMA Trend Following with Bar-Close Confirmation

Article MQL5 code base

Summary

This Expert Advisor combines two AbsolutelyNoLagLwma indicators on separate timeframes. The slower indicator sets the prevailing trend by its line direction, while the faster one times entries when its direction changes. A trade signal is considered at bar close only when the fast and slow directions agree. Inputs allow users to set timeframes, smoothing lengths, signal bars, trade permissions, and stop-loss and take-profit distances; the described tests did not use the latter orders.

The document gives a historical USDJPY test example for 2016, using H6 for trend and M30 for entries, and refers to chart illustrations. It provides no numerical performance statistics or comparison benchmark, so it does not establish profitability or robustness. Its setup also depends on compiled indicator files and includes implementation details for order handling. The method is a rules-based trend-following design; readers would need further testing across market regimes, costs, and execution conditions before drawing conclusions about its practical value.

Key ideas

  • The slower indicator defines the market direction and the faster indicator supplies entry timing.
  • A signal requires matching trend directions and a change in the faster indicator at bar close.
  • The example uses H6 for the slow trend and M30 for entries on USDJPY during 2016.
  • The cited test omits stop-loss and take-profit orders and reports no performance statistics.

Tags

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