ZigZagOnParabolic MetaTrader indicator — based on two standard MT4/MT5 indicators — ZigZag and Parabolic SAR — it tries to show an improved version of the first one by marking the extrema of the chart with a smaller delay. Standard ZigZag looks for a new extremum by searching the percentage deviation of the price from the previous extremum. This new ZigZag does so by looking at the Parabolic SAR indicator. Both ZigZag and the Parabolic SAR are drawn atop of the chart. This indicator is available for both MetaTrader 4 and MetaTrader 5 platforms.

Input parameters

  • Step (default = 0.02) — one of the parameters of the standard Parabolic SAR indicator.
  • Maximum (default = 0.2) — another parameter of the standard Parabolic SAR indicator.
  • ExtremumsShift (default = Chart time) — if set to Chart time, then the extrema are shown at their actual places (where chart peaks and troughs are located). If set to Detection time, then the extrema are shown at the points in time when they were detected. This input parameter can be useful to see the delay between the extremum's actual time and its detection time.
  • History (default = 0) — the number of bars to use for calculation of the indicator. If you experience performance issues, set this input parameter to some non-zero value. 0 — all bars are used in the calculation.
  • EnableNativeAlerts (default = false) — if true, a native MetaTrader popup alert will be used when a new zigzag peak or through is detected.
  • EnableEmailAlerts (default = false) — if true, an email message will be sent when a new zigzag peak or through is detected. Email should be properly configured in MetaTrader via Tools->Options->Email.
  • EnablePushAlerts (default = false) — if true, an email message will be sent when a new zigzag peak or through is detected. Notifications should be properly configured in MetaTrader via Tools->Options->Notifications.

Example and strategy

ZigZagOnParabolic Indicator Example MetaTrader Chart

This chart example shows the ZigZagOnParabolic indicator attached with the ExtremumsShift input parameter set to Chart time — note its peaks and troughs coinciding with the actual highs and lows of the chart.

Although ZigZag indicators are not very good for actual trade signaling, this one can be used to enter short and long positions on maximums and minimums respectively. But the main use for this indicator is to build channels, support and resistance levels, and other chart formations using the extrema as the foundation.

ZigZagOnParabolic Indicator Example Chart with Peaks and Troughs at Detection Time

The chart above is the same indicator attached to the same chart as before but with the ExtremumsShift input parameter set to Detection time — note the peaks and troughs shifted to the right and coinciding with the Parabolic SAR reversals.

Downloads (ver. 1.02, 2022-04-11)

ZigZagOnParabolic for MetaTrader 4 in .zip

ZigZagOnParabolic for MetaTrader 4 in .mq4

ZigZagOnParabolic for MetaTrader 5 in .zip

ZigZagOnParabolic for MetaTrader 5 in .mq5

Discussion

Warning! If you do not know how to install this indicator, please read the MetaTrader Indicators Tutorial.

Do you have any suggestions or questions regarding this indicator? You can always discuss ZigZagOnParabolic with the other traders and MQL programmers on the indicators forums.

Changelog

1.02 - 2022-04-11

  • Added alerts.
  • Modified the ExtremumsShift input parameter for clarity.
  • Refactored the source code to simplify calculations.

© 2005–2022

EarnForex.com

Design — Mart Studio

Forex trading bears intrinsic risks of loss. You must understand that Forex trading, while potentially profitable, can make you lose your money. Never trade with the money that you cannot afford to lose! Trading with leverage can wipe your account even faster.

CFDs are leveraged products and as such loses may be more than the initial invested capital. Trading in CFDs carry a high level of risk thus may not be appropriate for all investors.