DRAW_ZIGZAG - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

This indicator uses high and low prices to draw a zigzag pattern ("Zigzag").
The DRAW_ZIGZAG drawing style allows to draw sections using the values of both indicator buffers. Looks like DRAW_SECTION , but it allows vertical sections to be drawn within a bar. The color, width, and style of the zigzag line change randomly after N ticks. The N variable is defined as an input parameter and can be changed using the Properties window.
Note that the initial properties of the plot1 plot ( DRAW_ZIGZAG ) are defined using the #property preprocessor directive, and further these properties are randomly changed ( OnCalculate() function).
See also: Drawing styles in MQL5 .

Attachment download
📎 draw_zigzag.mq5 (5.6 KB)
Source: MQL5 #335
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •