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

2012.01.09 12:58

Stochastic-X8 - indicator for MetaTrader 5

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

Published by:
Nikolay Kositsin
votes: 14

Real author:


The indicator draws a grid of eight stochastic oscillators on one chart. Indicator parameters are calculated by consequent multiplying of the first stochastic parameters by "koef" ratio implemented in the indicator input parameters. Each line parameters are displayed in tooltips.

Second (signal) stochastic lines are not displayed in the indicator, but the visibility of the indicator is not affected - on the contrary, display of the entire grid has been improved.

Indicator buffers are declared using the simplest class for the code optimization:

//|  Variables arrays for the indicator buffers creation             |
class CIndicatorsBuffers
public: double    IndBuffer[];
//| Indicator buffers creation                                       |
CIndicatorsBuffers Ind[LINES_TOTAL];

If you want to change the number of lines on the chart, you should only change the value of the LINES_TOTAL constant:

//|  Declaration of constants         |
#define LINES_TOTAL         8 // The constant for the number of the indicator lines

This indicator was first implemented in MQL4 and published in Code Base at 12.03.2010.


Translated from Russian by MetaQuotes Software Corp.
Original code:

StepXCCX_HTF_Signal StepXCCX_HTF_Signal

StepXCCX_HTF_Signal displays trend directions from three last bars of the ColorStepXCCX indicator as three graphical objects with a trend color indication.

ToClearChart ToClearChart

The simple script for deleting all graphical objects from a financial asset chart. It can be useful, in case the chart is overcrowded by objects that are not needed anymore.

IncSAROnArray IncSAROnArray

CSAROnArray class is designed for calculation of SAR (Parabolic SAR) values on indicator buffers. The example of use of the CSAROnArray class is presented.

ASCtrend_HTF_Signal ASCtrend_HTF_Signal

ASCtrend_HTF_Signal shows a trend direction or a signal for performing a deal generated by ASCtrend indicator as a graphic object with colored trend indication or deal direction.