Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

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

author EAcpu | 4 reads | 0 comments |

DRAW_ZIGZAG - indicator for MetaTrader 5

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 .

DRAW_ZIGZAG - indicator for MetaTrader 5


Attachment download

📎 draw_zigzag.mq5 (5.6 KB)

Source: MQL5 #335

Verification code Refresh