Skip to content
All library documents

Last ZZ50: ZigZag Midpoint Pending Orders and Trailing Stops

Article MQL5 code base

Summary

Last ZZ50 is a rule-based trading approach built around the two most recent ZigZag segments, labeled AB and BC. It places pending orders at the midpoint of each segment: an order associated with AB is intended to enter in the direction of the trend indicated by BC, while an order associated with BC is intended to capture a reversal. Because the current AB segment can change as the ZigZag recalculates its pivot, the strategy continually adjusts the corresponding pending order.

For open positions, the described exit management waits until unrealized profit, before commissions and swaps, reaches at least the trailing-stop distance plus a step; trailing is then activated. The document outlines the logic and says an Expert Advisor displays the indicator and marks pivots A, B, and C. It supplies no backtest, parameter values, instrument guidance, or performance evidence. ZigZag pivots can move before confirmation, so the method’s behavior depends on how changing pivots and pending orders are handled in live markets.

Key ideas

  • The method analyzes the latest two ZigZag segments, AB and BC.
  • Pending orders at segment midpoints are intended to represent continuation and reversal entries.
  • The order tied to AB is adjusted as the unconfirmed ZigZag pivot changes.
  • Trailing begins after profit reaches the trailing distance plus a step, excluding costs.
  • The document gives no performance testing or detailed market-specific parameters.

Tags

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