New: the Top 10 Non-Repainting MT4 Indicator Pack is free to download

98 free indicators for MetaTrader 4 & 5

Stochastic Momentum Index (SMI) Indicator MT4

Free Stochastic Momentum Index (SMI) indicator for MT4. Blau's smoothed oscillator with signal line and alerts. Settings, strategy and install guide. Free download, link emailed in seconds.

MT4Non-repaintingOscillators
Data Windowstochastic-momentum-index-indicator-mt4
PlatformMT4 Build 600+
File.mq4 / .ex4 in .zip
Version1.0
Size4.4 KB
RepaintsNo
TypeOscillators
UpdatedNov 22, 2026
DownloadsNew listing
Download free (4.4 KB)
  • Enter your email, the download link arrives in seconds
  • Free bonus reports on the next page

Indicators are analysis tools, not trade signals. Forex trading on margin carries a high risk of loss. Test on a demo account first.

EURUSD · H4 · previewStochastic Momentum Index (SMI) Indicator MT4 v1.0
Stochastic Momentum Index (SMI) Indicator MT4 on EURUSD H4Non-repainting
How it works →
Overview

The Stochastic Momentum Index (SMI) indicator for MT4 shows where the close sits relative to the midpoint of the recent high-low range, smoothed twice with exponential moving averages. It runs from -100 to +100 in a separate window with a signal line and ±40 levels. This free version uses closed candles only and can alert on crosses.

If you like the regular Stochastic but find it too jumpy, the SMI is worth a look. It answers the same question, where is price within its recent range, but it is centered on zero and much smoother.

What Is the Stochastic Momentum Index?

The stochastic momentum index was developed by William Blau as a refinement of George Lane’s Stochastic Oscillator. The regular Stochastic measures the close against the bottom of the range: %K = 100 × (close − lowest low) / (highest high − lowest low). A reading of 0 means the close is at the low of the range and 100 means it is at the high.

The SMI measures the close against the middle of the range instead. A reading of 0 means the close is exactly at the midpoint, positive values mean it is in the upper half and negative values mean it is in the lower half. Blau then smooths the result with two EMAs, which removes much of the bar-to-bar noise that makes a fast Stochastic hard to read.

Regular Stochastic Stochastic Momentum Index
Reference point Lowest low of the range Midpoint of the range
Scale 0 to 100 -100 to +100, centered on 0
Smoothing Moving averages of %K (slowing and %D) Double EMA smoothing of both parts of the formula
Typical extreme levels 80 and 20 +40 and -40

How the SMI Indicator Is Calculated

This is exactly what the code does on each closed candle:

  1. Find the highest high (HH) and lowest low (LL) of the last PeriodK candles, 10 by default, including the current one.
  2. Distance: D = close − (HH + LL) / 2. This is how far the close is from the middle of the range.
  3. Range: R = HH − LL.
  4. Smooth D with an EMA of Smooth1 (3), then smooth that result with an EMA of Smooth2 (3). Do the same with R.
  5. SMI = 100 × EMA(EMA(D)) / (0.5 × EMA(EMA(R))).
  6. Signal line = EMA of the SMI over SignalPeriod (10).

Because the distance from the midpoint can never be larger than half the range, the SMI always stays between -100 and +100. If the range is zero, for example on a completely flat stretch of data, the code returns 0 instead of dividing by zero. Each EMA starts from the first available value at the left edge of the chart, so the first few readings are a warm-up and are not drawn.

Key Features

  • William Blau’s double-smoothed SMI with an EMA signal line.
  • Fixed -100 to +100 scale with adjustable +40 and -40 levels and a zero line.
  • All four periods are inputs, so you can run a fast or slow version.
  • Uses closed candles only. The line ends at the last closed candle and finished values never change.
  • Optional pop-up, sound and mobile push alerts when the SMI crosses its signal line.
  • Recalculates only new candles after the first load, so it stays light on the terminal.

How to Trade With the SMI Indicator

Overbought and oversold readings

Above +40 the close has been sitting in the upper part of its range for a while, which many traders call overbought. Below -40 is the oversold zone. These readings describe position within the range, not a reversal by themselves. In a strong uptrend the SMI can stay above +40 for a long time, so treat the zones as a cue to watch for a turn rather than a reason to fade the move.

Signal-line crosses

  • Buy idea: the SMI crosses above its signal line from below -40, then turns back up through the level. Crosses that start deep in the oversold zone tend to carry more weight than crosses near zero.
  • Sell idea: the SMI crosses below its signal line from above +40.
  • Zero line: some traders use a move across zero as confirmation that the close has moved to the other half of the range.

Trade crosses in the direction of the larger trend where possible. A trend filter such as the Schaff Trend Cycle indicator or a higher-timeframe moving average keeps you from buying every oversold dip in a downtrend. The Choppiness Index indicator can tell you whether the market is ranging, which is where SMI extremes work best.

Divergence

Because it is smooth, the SMI is well suited to divergence. If price makes a lower low while the SMI makes a higher low, downside momentum is fading. A higher high in price with a lower high in the SMI is the bearish version. Wait for confirmation, such as a signal-line cross or a candle pattern found by the Engulfing Pattern indicator, before acting on it.

Stops and position size

Place the stop beyond the most recent swing low for longs or swing high for shorts. Swing points from the Semafor indicator make these levels easy to see. Size each trade from the stop distance with the position size calculator.

Best SMI Indicator Settings

  • 10, 3, 3, signal 10 (default): a balanced setting that suits H1 to D1 charts.
  • Shorter PeriodK, such as 5: reacts faster and reaches the +40 and -40 levels more often. Useful on lower timeframes, but expect more false crosses.
  • Longer PeriodK, such as 14 to 20: measures a wider range and gives fewer, slower signals.
  • Smooth1 and Smooth2: raising either one smooths the line further at the cost of more lag. Values from 3 to 5 keep it responsive.
  • SignalPeriod: a shorter signal line, such as 3 to 5, crosses more often. A longer one filters out minor wiggles.
  • Levels: if price rarely reaches +40 and -40 on your pair and timeframe, try +30 and -30. On fast settings, +50 and -50 can work better.

Test any change on a demo account and judge it on a meaningful sample of trades, not a few recent examples.

Does It Repaint?

No. The SMI and its signal line are calculated only on closed candles, and once a candle has closed its value is never recalculated to anything different. The live candle is deliberately left out, so the line ends one candle before the current price. Cross alerts are checked once per candle, on the candle that just closed. Like every moving-average-based tool, the SMI lags price, but lag is not repainting. See what repainting is for the difference.

How to Install

Copy “stochastic-momentum-index-indicator-mt4.mq4” to File > Open Data Folder > MQL4 > Indicators, restart MT4 or right-click Indicators in the Navigator and choose Refresh, then drag it onto a chart. It opens in its own window below price. Full steps are in how to install indicators in MT4.

Related Indicators

An oscillator reading is one input, not a trade on its own. Trading on margin carries a high level of risk, so test the SMI on a demo account before using it live.

Stochastic Momentum Index (SMI) Indicator MT4 on an EURUSD H4 MT4 chart

Stochastic Momentum Index (SMI) Indicator MT4 on a MetaTrader chart. Click to enlarge.

Repaint verdict: does not repaint. We read the source: every value is calculated on closed bars and never rewritten, so what you see in history is what you would have seen live.

Free pack

Get the Top 10 Non-Repainting Indicator Pack

Ten MT4 indicators that draw on closed bars only, in one zip with install notes for each.

Settings

Inputs, defaults and what they change

  • PeriodK (default 10) — Number of candles used to find the highest high and lowest low. The midpoint of that range is the reference the close is measured against.
  • Smooth1 (default 3) — Period of the first EMA applied to both the distance from the midpoint and the high-low range.
  • Smooth2 (default 3) — Period of the second EMA applied to the result of the first. Higher values give a smoother, slower line.
  • SignalPeriod (default 10) — EMA period of the signal line drawn over the SMI.
  • UpperLevel (default 40.0) — Overbought level line.
  • LowerLevel (default -40.0) — Oversold level line.
  • SmiColor (default clrDodgerBlue) — SMI line color.
  • SignalColor (default clrOrangeRed) — Signal line color.
  • AlertsOn (default false) — Pop-up alert when the SMI crosses its signal line on the candle that just closed.
  • PushOn (default false) — Push notification to the MT4 mobile app on a cross.
  • SoundOn (default false) — Play a sound on a cross.
  • SoundFile (default alert.wav) — Sound file from the terminal Sounds folder.
Install

How to install it in MetaTrader 4

  1. Step 1Download and unzip

    Enter your email, open the download link we send you and extract the .mq4 / .ex4 file from the zip.

  2. Step 2Open the data folder

    In MetaTrader, go to File → Open Data Folder.

  3. Step 3Copy into Indicators

    Place the file in MQL4 → Indicators, then restart MetaTrader or refresh the Navigator panel.

  4. Step 4Attach it to a chart

    Find it under Navigator → Indicators and drag it onto any chart.

First time installing an indicator? Watch the 75-second video or follow the screenshots in our MT4 install guide: every click in MetaTrader, plus fixes for an indicator that won't show up.

Free forex calculators
FAQ

Stochastic Momentum Index (SMI) Indicator MT4 questions

The Stochastic Momentum Index is an oscillator developed by William Blau. It measures where the close sits relative to the midpoint of the recent high-low range and smooths the result twice with EMAs. It runs from -100 to +100, with 0 meaning the close is at the middle of the range.

The regular Stochastic measures the close against the lowest low of the range on a 0 to 100 scale. The SMI measures it against the midpoint of the range on a -100 to +100 scale and uses double EMA smoothing, so its line is smoother and centered on zero.

A common starting point is PeriodK 10, both smoothing periods 3 and a signal line of 10, with levels at +40 and -40. Shorter periods react faster but give more false signals, and longer periods give fewer, slower signals. Test changes on a demo account.

Above +40 the close has been in the upper part of its recent range, which traders call overbought. Below -40 is oversold. In strong trends the SMI can stay in these zones for a long time, so most traders wait for a signal-line cross or a candle pattern before acting.

No. This version calculates only on closed candles and never changes a finished value. The live candle is not plotted, and cross alerts fire once per candle after it closes.

No. The MT4 mobile apps cannot run custom indicators, so the SMI only works in the desktop terminal. You can turn on PushOn to receive its cross alerts as push notifications on your phone.

Stochastic Momentum Index (SMI) Indicator MT4
Size
4.4 KB
Version
1.0
Repaints
No
Download free
Free packTop 10 Non-Repainting Indicators

Ten closed-bar MT4 indicators in one zip.

Get the pack

Stochastic Momentum Index (SMI) Indicator MT4Free · 4.4 KB

Download

Where should we email your download link?

Use an email you can check right now: the download link goes straight to this inbox.