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 LINE

The indicator plots a line with different colors using the Close price, the DRAW_COLOR_LINE drawing style is used.

Two indicator buffers are used: the first contains the closing price of the bar, the color indexes specified in the second indicator buffer. The colors of lines, the width and line style changed randomly after N=5 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

341

Best MetaTrader Indicators + Profitable Expert Advisors