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.08 10:48
Indicators

DRAW_SECTION - indicator for MetaTrader 5

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

Views:
1976
Rating:
votes: 12

The indicator plots sections between the High and Low prices of the bars.

The color, width and style of the sections changes randomly each N ticks. Note that initial properties of the plot1 graphic plot (DRAW_SECTION) are defined using the #property preprocessor directive, further these properties changed randomly (OnCalculate() function). The N variable is defined as input parameter, it can be changed manually using the "Properties" window.

See also: The Drawing Styles in MQL5.

DRAW_SECTION

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

DRAW_LINE DRAW_LINE

The DRAW_LINE style is used for plotting the values of the indicator's buffer as a line.

DRAW_NONE DRAW_NONE

The DRAW_NONE drawing style is used in cases, when you need to calculate and show the values of the indicator in "Data Window", but the plotting isn't needed.

DRAW_HISTOGRAM DRAW_HISTOGRAM

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

DRAW_HISTOGRAM2 DRAW_HISTOGRAM2

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