Watch how to download trading robots for free
Find us on Facebook!
Join our fan page
Interesting script?
So post a link to it -
let others appraise it
You liked the script? Try it in the MetaTrader 5 terminal
Indicators

DRAW_BARS - indicator for MetaTrader 5

MetaQuotes
MetaQuotes
MetaQuotes Ltd is the software development company. One of our products is the MetaTrader 5 trading platform intended for trading in different financial markets.
Use the links below to download the latest builds:
| English Русский 中文 Español Deutsch 日本語 Português 한국어 Français Italiano Türkçe
Views:
6981
Rating:
(19)
Published:
Updated:
draw_bars.mq5 (7.22 KB) view
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

The indicator plots the bars of the specified symbol in the separate window.

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. The bars color and width changed after N ticks. The N variable is defined as input parameter, it can be changed using the "Properties" window.

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

See also: The Drawing Styles in MQL5.

DRAW_BARS

Translated from Russian by MetaQuotes Ltd.
Original code: https://www.mql5.com/ru/code/337

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_CANDLES DRAW_CANDLES

The DRAW_CANDLES drawing style plots the candles using the values of 4 indicator buffers with Open, High, Low and Close prices.

DRAW_ZIGZAG DRAW_ZIGZAG

The DRAW_ZIGZAG drawing style allow to draw sections using the values of two indicator buffers. It looks like DRAW_SECTION, but it allows to draw vertical sections inside one bar.

DRAW_ARROW DRAW_ARROW

The DRAW_ARROW drawing style plots the arrows (chars).