Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Random-X8 - MetaTrader 5 Script | Grid EA Download - MT4/MT5 Resources - MetaTrader 5 Resources

author EAcpu | 3 reads | 0 comments |

Stochastic-X8 - indicator for MetaTrader 5

Stochastic-X8 - indicator for MetaTrader 5

Stochastic-X8 - indicator for MetaTrader 5

Stochastic-X8 - indicator for MetaTrader 5

This indicator plots a grid of eight stochastic oscillators on a chart. The indicator parameters are calculated by subsequently multiplying the first random parameter by the "koef" ratio implemented in the indicator input parameters. Each line parameter is displayed in a tooltip.

The second (signal) stochastic line is not displayed in the indicator, but the visibility of the indicator is not affected - on the contrary, the display of the entire grid is improved.

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

 //+------------------------------------------------------------------+
//| Array of variables for creating indicator buffers |
//+------------------------------------------------------------------+
ClassCIndicatorsBuffers
  { People : Double IndBuffer[];
  }; //+------------------------------------------------------------------+
//|Indicator buffer 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:

 //+------------------------------------------------+
//| Constant declaration |
//+------------------------------------------------+
#define LINES_TOTAL 8 // Constant number of indicator lines

The indicator was first implemented in MQL4 and published in the code base on mql4.com on March 12, 2010.

Stochastic-X8 - indicator for MetaTrader 5


Attachment download

📎 stochastic-x8.mq5 (6.96 KB)

Source: MQL5 #678

Verification code Refresh