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.26 14:36
Indicators

DRAW_COLOR_ARROW - indicator for MetaTrader 5

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

Views:
2476
Rating:
votes: 15

This indicator is a demo of DRAW_COLOR_ARROW drawing style.

It plots arrows on the chart, using the symbols from Windings font. Two indicator buffers are used: one for the price values, the other buffer contains the indexes of the colors. The code parameter is used to specify the base code: code=159 (circle).

The color, char size and shift are 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

DRAW_COLOR_ARROW

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

DRAW_COLOR_HISTOGRAM2 DRAW_COLOR_HISTOGRAM2

The DRAW_COLOR_HISTOGRAM2 drawing style is used to plot color histograms using two indicator buffers, the colors are specified in the color buffer.

DRAW_COLOR_HISTOGRAM DRAW_COLOR_HISTOGRAM

The DRAW_COLOR_HISTOGRAM drawing style is used to plot color histograms.

DRAW_COLOR_ZIGZAG DRAW_COLOR_ZIGZAG

The DRAW_COLOR_ZIGZAG style draws lines of different colors by values ​​of two indicator buffers. This is the color version of the DRAW_ZIGZAG style and allows you to specify individual color for each line from predefined color set.

DRAW_COLOR_BARS DRAW_COLOR_BARS

The DRAW_COLOR_BARS style draws bars based on values of four indicator buffers, containing Open, High, Low and Close prices. This is the advanced version of the DRAW_BARS style, that allows you to specify individual color for each bar from predefined color set.