Popular results
Position Sizer
Calculate risk-based position size directly in your MetaTrader platform and execute a trade in one click or a press of a button.What Is Forex
Learn what Forex is and how it works from this simple explanation.Supertrend
Download the Supertrend indicator for MT4 and MT5 to detect trend changes based on the price action.Position Size Calculator
Calculate your position size based on risk, stop-loss, account size, and the currencies involved. A simple online calculator for quick results.ZigZagOnParabolic
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
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.
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.
Download (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 .mq5Discussion
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.