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

McClellan_Oscillator - MetaTrader 5 Script - MT4/MT5 Resources

author EAcpu | 5 reads | 0 comments |

McClellan_Oscillator - indicator for MetaTrader 5

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.

McClellan_Oscillator - indicator for MetaTrader 5


Attachment download

📎 mcclellan_oscillator.mq5 (18.2 KB)

Source: MQL5 #20687

Verification code Refresh