The Stochastic Momentum Index (SMI) is a technical indicator that enhances the traditional stochastic oscillator by considering the closing price’s position relative to the midpoint (median) of the high-low range, rather than just the high and low points themselves. This adjustment, along with a double exponential smoothing process, helps in providing more reliable signals and is particularly useful for identifying divergence signals.
SMI[N, SS, DS](price)
mySMI = SMI[14,3,5](close)
IF mySMI > 40 THEN
overbought = 1
oversold = 0
ELSIF mySMI < -40 THEN
overbought = 0
oversold = -1
ELSE
overbought = 0
oversold = 0
ENDIF
RETURN overbought, oversold
This example demonstrates how to calculate the SMI for a 14-period look-back with a 3-period first smoothing and a 5-period second smoothing using the closing price. It then uses the SMI value to determine overbought or oversold conditions.
The SMI indicator is particularly useful for identifying the momentum and potential reversal points in the price of an asset. By comparing the closing price to the median of the high and low, the SMI can provide a different perspective than traditional oscillators, which may help in spotting divergences between the price and momentum more clearly.