Skip to content
SMARTFINANCEDATA
Home Markets Insights Blog Tools Contact
Sign In Get Access
Home How It Works Markets Insights Blog Tools Pricing Contact
Sign In Get Access

Add Moving Average to Indicator Window

Master the complete guide to adding moving averages to any indicator window in MT4 for enhanced technical analysis

📊 MT4 Tutorial
⚡ Step-by-Step
⏱️ 10 Min Read

Why Add Moving Averages to Indicator Windows?

Enhanced Analysis

Adding moving averages to oscillator windows like RSI or Stochastic creates powerful signal confirmation. You can smooth out noise and identify trend direction within the indicator itself.

Better Signals

Moving averages of indicators provide cleaner entry and exit signals. They help filter false signals and confirm trend changes with crossovers and divergences.

What You'll Learn

This tutorial covers three methods: using built-in MA on indicators, applying custom MAs to indicator data, and creating overlay moving averages in separate windows.

Step-by-Step Guide

Three proven methods to add moving averages to your indicator windows in MT4

1

Method 1: Built-in Moving Average

Using Indicator's Native MA Feature

Easiest Built-in

Step-by-Step Process

  • 1.Right-click on your RSI or Stochastic indicator
  • 2.Select "Properties" from the context menu
  • 3.Go to the "Parameters" tab
  • 4.Look for "MA Method" and "MA Period" settings
  • 5.Set MA Period (try 9 or 14) and choose method
  • 6.Click "OK" to apply changes

Best Settings

RSI MA Period: 9 or 14

Stochastic MA: Usually built-in (%D line)

MA Method: Simple or Exponential

Works with: RSI, Stochastic, Williams %R

💡 Pro Tip

Not all indicators have built-in MA options. RSI typically does, but if you don't see MA settings, use Method 2 or 3 below.

2

Method 2: MA of Indicator Data

Apply MA to Existing Indicator Values

Advanced Flexible

Complete Process

  • 1.Add your main indicator (e.g., RSI) to chart
  • 2.Go to Insert → Indicators → Trend → Moving Average
  • 3.In "Apply to" dropdown, select "First Indicator Data"
  • 4.Set your MA period and method
  • 5.Click "OK" - MA appears in indicator window

Configuration Options

Apply to: First indicator data

Period: 5-21 (depends on strategy)

Method: Simple, Exponential, Smoothed

Shift: Usually 0

✅ Key Advantage

This method works with ANY indicator and gives you full control over the moving average settings. Perfect for custom analysis strategies.

3

Method 3: Custom Indicator Approach

Using MQL4 Custom Indicators

Expert Custom

Implementation Steps

  • 1.Open MetaEditor (F4 in MT4)
  • 2.Create new indicator or modify existing
  • 3.Add iMA() function to calculate MA
  • 4.Apply MA to indicator buffer data
  • 5.Compile and add to chart

Code Example

// Add this in OnCalculate function
double ma_value = iMA(NULL, 0, 14, 0, MODE_SMA, PRICE_CLOSE, i);
ma_buffer[i] = ma_value;

// For RSI with MA overlay
double rsi_val = iRSI(NULL, 0, 14, PRICE_CLOSE, i);
double rsi_ma = iMAOnArray(rsi_buffer, 0, 9, 0, MODE_SMA, i);
ma_rsi_buffer[i] = rsi_ma;

⚠️ Advanced Method

This method requires MQL4 programming knowledge. Use Methods 1 or 2 if you're not comfortable with coding. Many free custom indicators are available online.

Practical Trading Examples

Sample RSI with Moving Average Chart

Example of RSI(14) with a 9-period SMA in the indicator window, showing crossover signals.

RSI + Moving Average Strategy

Setup: RSI(14) with 9-period SMA

Buy Signal: RSI crosses above its MA while both are below 50

Sell Signal: RSI crosses below its MA while both are above 50

Best for: Trending markets, 4H+ timeframes

Tip: Wait for RSI to break back through 50 level for stronger signals

Stochastic MA Crossover

Setup: Stochastic %K (14,3,3) with 5-period EMA

Buy Signal: %K crosses above EMA in oversold zone (<20)

Sell Signal: %K crosses below EMA in overbought zone (>80)

Best for: Range-bound markets, 1H-4H timeframes

Tip: Confirm with price action or support/resistance levels to avoid false signals

Pro Tips for Success

Optimize MA Periods

Test different MA periods (e.g., 5, 9, 14) to match your trading style and timeframe. Shorter MAs are better for scalping, longer for swing trading.

Combine Indicators

Use MA crossovers with price action or other indicators like MACD or Bollinger Bands for higher probability setups.

Backtest First

Always backtest your MA strategy on historical data in MT4 to ensure it fits your market and timeframe before going live.

Tools to Enhance Your MT4 Experience

Access platforms and resources to streamline your MT4 indicator setup and trading performance.

1

MetaTrader 4

The leading platform for forex and CFD trading with robust indicator customization.

Visit MetaTrader
2

MQL5 Community

Find free and paid custom indicators, including MA overlays, for MT4.

Visit MQL5
3

TradingView

Complement MT4 with advanced charting and community scripts for indicator ideas.

Visit TradingView
Join TradeInsightPro for Exclusive Tools
SmartFinanceData

Probabilistic market analytics across Forex, Indices, Commodities & Crypto — powered by 50+ datasets and millions of data points.

Product
Insights Markets Pricing Team
Resources
Methodology Disclaimer Terms Of Service Privacy Policy FAQ Contact

© 2026 SmartFinanceData. All data is historical and does not guarantee future performance.