Skip to content
All library documents

ZigZag Channel Breakouts with Pending Orders and Fibonacci Exits

Article MQL5 code base

Summary

This Expert Advisor uses a ZigZag custom indicator to identify a channel, then places Buy Stop and Sell Stop pending orders near its upper and lower boundaries. The listed controls include the ZigZag depth, deviation, and backstep, along with an entry offset and minimum and maximum channel sizes. Users can also define operating hours and choose lot or risk settings.

After an order activates, trailing can be enabled for the resulting position. Stop loss and take profit are specified using Fibonacci percentage levels, with choices ranging from 0% to 423.6%. The description also lists trailing distance and step settings and an option to display channel lines. It names EURUSD on M15 but gives no test period, trade records, or performance results. The text does not explain how ZigZag repainting or changing channel boundaries are handled, so its signals and pending order behavior cannot be evaluated from this description alone.

Key ideas

  • The EA uses ZigZag data to define a channel and place pending orders at its boundaries.
  • Buy Stop and Sell Stop orders are used to enter potential channel breakouts.
  • Channel size limits, order offset, and operating hours are configurable.
  • Trailing can be applied after a pending order becomes a position.
  • Stop loss and take profit are selected from specified Fibonacci percentage levels.
  • No performance evidence or explanation of changing ZigZag boundaries is provided.

Tags

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