Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | DRAW COLOR HISTOGRAM2

This indicator is a demo of DRAW_COLOR_HISTOGRAM2 drawing style.

For each bar it plots a section between the Open and Close prices. Three indicator buffers are used: the first contains the High values of the bar, the second contains the Low prices of the bar, the third buffer contains the color indexes.

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

See also The Drawing Styles in MQL5

MetaTrader Experts, Indicators, Scripts and Libraries

344

Best MetaTrader Indicators + Profitable Expert Advisors