-->

Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

Metatrader 5 Indicator | ASZ - Adaptive Structure ZigZag | MQL5 Code

Fresh MQL5 code release – perfect for enhancing your MT4/MT5 strategies.

Image for ASZ - Adaptive Structure ZigZag
  1. Volatility Check: It constantly monitors market speed (ATR).
  2. Adaptation:
    • In High Volatility (News/Impulse), it widens the detection threshold to filter out noise.
    • In Low Volatility (Ranges), it tightens the threshold to catch smaller structural moves.
  3. Fractal Confirmation: It searches 3-14 bars to the left and waits for fixed confirmation bars to the right to validate a swing.

🛠️ Key Features

  • Non-Repainting: Once a swing point is confirmed (after the set RightBars), it never changes position.
  • High Performance: Optimized using advanced caching methods to ensure zero lag, even on maximum history.
  • State Machine Logic: Enforces strict High-Low alternation logic (prevents invalid double highs/lows).

🤖 Development Credits

This tool represents a transparent collaboration between human logic and AI development:

  • Concept & Logic: Defined by the author based on Fractal Market Structure.
  • Architecture: Structural design and logic flow assisted by Google Gemini.
  • Optimization: Code refinement and performance caching enhanced by Claude (Opus).

Free Open Source Tool for the MQL5 Community. Trade Responsibly.

Classic MACD strategy made fully automatic – the MACD Expert Advisor for MT4 handles it all. Check it out.

Thanks for reading. Discover premium MetaTrader solutions at RobotFX.

68185

Best MetaTrader Indicators + Profitable Expert Advisors