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 12:04
Indicators

DRAW_HISTOGRAM - indicator for MetaTrader 5

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

Views:
2430
Rating:
votes: 13

The indicator plots a graph of a sin(x) function in the separate window.

The histogram color, width and line style are changed randomly every N ticks. The period of the sin(x) function depends on bars input parameters. The DRAW_HISTOGRAM drawing style is used to plot the histograms (for example the ocsillators). It allows to avoid drawing some of the indicator's values by setting the PLOT_EMPTY_VALUE. Only one data buffer is needed for the DRAW_HISTOGRAM style.

Note that initial properties of the plot1 graphic plot (DRAW_HISTOGRAM) 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_HISTOGRAM

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

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.

PA adaptive MACD PA adaptive MACD

Phase accumulation adaptive MACD - completely adaptive MACD

Basket Chart Creator Basket Chart Creator

Basket offline chart creator script using geometric mean method.