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

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

author EAcpu | 3 reads | 0 comments |

DRAW_COLOR_LINE - indicator for MetaTrader 5

The indicator uses closing prices and draws_color_lines using painting style.

Two indicator buffers are used: the first contains the closing price of the bar, the second indicator buffer specifies the color index. The color, width and line style of the lines are randomly changed after N=5 ticks.

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_LINE - indicator for MetaTrader 5


Attachment download

📎 draw_color_line.mq5 (5.7 KB)

Source: MQL5 #341

DRAW_COLOR_LINE - MetaTrader 5 script | Forex indicator download - MT4/MT5 resource usage and screening suggestions

DRAW_COLOR_LINE - MetaTrader 5 script | Foreign exchange indicator download - MT4/MT5 resources are foreign exchange indicator related resources. Before downloading or referencing, it is recommended to confirm the platform version, transaction type, time period, whether DLL is required, whether source code is included, parameter description and historical update records.

Both automated trading tools and foreign exchange indicators should first undergo backtesting, simulated account observation, and small capital verification. Pay special attention to spreads, slippages, maximum drawdowns, position opening frequency, stop loss methods, trading periods and broker rules, and avoid direct real-time execution based only on titles or short-term profit descriptions.

Verification code Refresh