Skip to content
All library documents

Automating Wyckoff Accumulation and Distribution with a State Machine

Article MQL5 articles

Summary

The article describes an MQL5 Expert Advisor that automates selected Wyckoff accumulation and distribution sequences. It uses a finite state machine to enforce event order: identify a range after a directional move, detect a spring or upthrust, confirm with a sign of strength or weakness, then seek a last point of support or supply for entry. The article emphasizes that isolated price events lack meaning without their prior structural context, so invalidated setups reset to scanning.

Volume conditions use relative tick volume compared with a rolling baseline, a practical proxy for activity in MetaTrader forex data where exchange volume is unavailable. The EA focuses on objectively defined terminal events rather than attempting to label every Wyckoff phase. The article gives implementation details and says the code was compiled and tested, but the supplied text does not provide quantified backtest performance. Its claims about signal quality and volume correlation therefore should not be treated as independent validation; the method’s thresholds and instrument behavior also require evaluation.

Key ideas

  • A finite state machine ensures that Wyckoff events are evaluated only after the preceding structure has been confirmed.
  • The accumulation sequence uses a spring, a demand confirmation, and a later support pullback to trigger a long setup.
  • The distribution sequence mirrors the process with an upthrust, weakness confirmation, and a later supply pullback for a short setup.
  • Relative tick volume is used as an activity proxy where real exchange volume is unavailable.
  • The article describes implementation and compilation but supplies no quantified evidence of trading performance.

Tags

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