Multiple ZigZags in a single window - MetaTrader 4 Script | Gold EA Download - MT4/MT5 Resources

For ZigZag fans: This is a small indicator that plots multiple ZigZags from different time frames within one time frame. Four zigzags (H1, H4, D1, W1) are implemented. The smallest time range to be displayed should be selected, which is H1 here. On all other timeframes it plots incorrectly, there is no timeframe check.
Almost the same situation exists in ZUP by nen (DT mode). I decided to make a separate indicator to demonstrate the algorithm itself, which allows to display indicators for other timeframes within the current timeframe. Please pay attention to checking the start() functions: they are necessary for the correct display of the "other" zigzag, to ensure that there are no platforms near its extremum.
Also attached is the ZigZag edited by Rosh. The code is not large, so replacing this ZigZag with another is not difficult. To do this, change the external parameters and the ZZ() function: all ZigZag parameters are "hidden" inside the function. If you need to change parameters based on a time frame, it's a little more difficult, but not daunting.
ZigZag colors correspond to the colors of the rainbow in ascending order ("Richard of York in vain"): red - H1, orange (here - Goldenrod) - H4, green - D1, blue - W1.

Multiple Zigzags in a Single Window
Attachment download
📎 several_ZZs.mq4 (3.42 KB)
📎 ZigZag_Rosh.mq4 (4.16 KB)
Source: MQL5 #7223
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •