Watch how to download trading robots for free
Find us on Twitter!
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

Stochastic-X8 - indicator for MetaTrader 5

Published by:
Nikolay Kositsin
Views:
9571
Rating:
(20)
Published:
2012.01.09 12:58
Updated:
2016.11.22 07:32
Need a robot or indicator based on this code? Order it on Freelance Go to Freelance

Real author:

lukas1

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 mql4.com 12.03.2010.

Stochastic-X8


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

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.