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




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.

Attachment download
📎 stochastic-x8.mq5 (6.96 KB)
Source: MQL5 #678
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •