Stochastic_Chart - MetaTrader 5 Script | Forex Indicator Download - MT4/MT5 Resources

Yuri Tokman (YTG)
Stochastic oscillator relative to the Moving Average indicator in the main chart window. The Stochastic indicator is shown in pink, the signal line of the Stochastic indicator is in light blue, the moving averages are in blue, and the levels of the default values are shown as the borders of the light gray channel.
Indicator input parameters:
//+------------------------------------------------+ //|Indicator input parameters | //+------------------------------------------------+ Input unit K period = 5 ; Input unit DP period = 3 ; Input unit deceleration = 3 ; Input ENUM_MA_METHOD STO_method= mode_SMA ; Input ENUM_STO_PRICE price field = STO_LOWHIGH ; Input Smooth_Method XMA_Method= mode_SMMA ; // Average method Input unit X length = 12 ; // average depth Input integer X phase = 15 ; // Smoothing parameter //---- For JJMA in the range of -100 ... +100, it will affect the quality of the transition process; //----For VIDIA, it is the CMO cycle, for AMA, it is the slow average cycle Enter double dev = 10.0 ; // channel width deviation Enter ENUM_APPLIED_PRICE apply price = PRICE_CLOSE ; // price type or handle Input integer Level_Stochastic_UP = 70 ; // Overbought level Input integer Level_Stochastic_DN = 30 ; // oversold level Enter integer shift = 0 ; // indicator moves horizontally (in bars)
The indicator uses SmoothAlgorithms.mqh library class (copy it to

Figure 1. Stochastic Chart Indicator
Attachment download
📎 smoothalgorithms.mqh (130.19 KB)
📎 stochastic_chart.mq5 (12.23 KB)
Source: MQL5 #15113
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •