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

DRAW_COLOR_HISTOGRAM2 - MetaTrader 5 Script - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

DRAW_COLOR_HISTOGRAM2 - indicator for MetaTrader 5

This indicator is a demonstration of the DRAW_COLOR_HISTOGRAM2 painting style.

For each bar, it plots the portion between the open and close prices. Three indicator buffers are used: the first contains the highest value of the bar, the second contains the lowest price of the bar, and the third buffer contains the color index.

After N ticks, the color, width, and line style change randomly. plot1 The initial properties of the graph plot are defined using the #property preprocessor directive, further these properties are randomly changed (see OnCalculate() function).

See drawing styles in MQL5

DRAW_COLOR_HISTOGRAM2 - indicator for MetaTrader 5


Attachment download

📎 draw_color_histogram2.mq5 (6.07 KB)

Source: MQL5 #344

Verification code Refresh