Download MetaTrader 5

Watch how to download trading robots for free

Interesting script?
So post a link to it -
let others appraise it

You liked the script? Try it in the MetaTrader 5 terminal

2011.04.11 15:29
Indicators

DRAW_CANDLES - indicator for MetaTrader 5

| English Русский 中文 Español Deutsch 日本語 Português

Views:
5059
Rating:
votes: 16

The indicator plots the candles on two symbols in the separate window.

The DRAW_CANDLES drawing style plots the candles using the values of 4 indicator buffers with Open, High, Low and Close prices. The N variable is defined as input parameter, it can be changed using the "Properties" window. The color and symbols changed randomly each N ticks. To see how does it work, attach two indicators to the chart.

Note that initial properties of the plot1 graphic plot (DRAW_CANDLES) are defined using the #property preprocessor directive, further these properties changed randomly (OnCalculate() function).

See also: The Drawing Styles in MQL5.

DRAW_CANDLES

Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/338

DRAW_HISTOGRAM2 DRAW_HISTOGRAM2

The DRAW_HISTOGRAM2 drawing style is used for plotting the values of two indicator's buffers as a histogram.

DRAW_HISTOGRAM DRAW_HISTOGRAM

The DRAW_HISTOGRAM drawing style is used for plotting the values of the indicator's buffer as a histogram.

DRAW_FILLING DRAW_FILLING

The DRAW_FILLING drawing style plots the filled area between the values of two indicator buffers. In fact, it plots two lines and fills the area between them with the specified color.

DRAW_BARS DRAW_BARS

The DRAW_BARS drawing style is used to plot the bars using the values of 4 indicator buffers with Open, High, Low and Close prices.