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 11:52

DRAW_COLOR_HISTOGRAM - indicator for MetaTrader 5

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

votes: 14


This indicator is a demo of DRAW_COLOR_HISTOGRAM drawing style.

It plots a sin(x) function as a color histogram in a separate window. Two indicator buffers are used: the first contains the values of sin(x) function, the color indexes specified in the second indicator buffer.

The histogram colors, the width and line style 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.



Translated from Russian by MetaQuotes Software Corp.
Original code:

Accelerator Oscillator (AC) Accelerator Oscillator (AC)

The Acceleration/Deceleration Indicator (AC) measures acceleration and deceleration of the current driving force.

Average Directional Movement Index (ADX) Average Directional Movement Index (ADX)

The Average Directional Movement Index Indicator (ADX) helps to determine if there is a price trend.

TP-SL_Removing TP-SL_Removing

Immediately deletes the SL/TP of all positions.

Closed_TOTAL Closed_TOTAL

Total closure of all positions (winners/losers). You can also select which are of a single instrument.