McClellan_Oscillator - MetaTrader 5 Script - MT4/MT5 Resources

The oscillator represents the difference between the 19-day moving average and the 39-day moving average, based on the McClellan's Value Lana indicator.
It has three input parameters:
McClellan oscillator = (MA(RANA(19)) - MA(RANA(39))) * (fast MA period + slow MA period)
Where:
RANA = (upper - Dn)/(upper + Dn)
- Up - the number of bullish candlesticks on all symbols;
- Dn - the number of bearish candlesticks for all symbols.
It should be noted that when first launching or switching timeframes, the indicator will take some time to download the necessary history for all required symbols.
The indicator RANA is not required for operation - it is calculated independently by the indicator.

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