Watch how to download trading robots for free
Find us on Telegram!
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_COLOR_SECTION - 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:
8635
Rating:
(19)
Published:
Updated:
MQL5 Freelance Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

This indicator is a demo of DRAW_COLOR_SECTION drawing style.

It plots color sections with specified number of bars. Two indicator buffers are used: the first contains the High price of the bar, the color indexes specified in the second indicator buffer. The section color, width and line style are changed randomly after N 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_SECTION


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

DRAW_COLOR_LINE DRAW_COLOR_LINE

The DRAW_COLOR_LINE drawing style is used to plot lines with different colors, the colors are specified in the color buffer.

Premier Stochastic Oscillator [v01] Premier Stochastic Oscillator [v01]

Premier Stochastic Oscillator - Double EMA smoothing of stochastic, based on article in TASC by Lee Leibfarth (August 2008)

DRAW_COLOR_HISTOGRAM DRAW_COLOR_HISTOGRAM

The DRAW_COLOR_HISTOGRAM drawing style is used to plot color histograms.

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.