log in     sign up for free
 
In order to maximize your profits (let them run), you must be willing to give some of them back.
Van K. Tharp
 
 
Home
systems (285)
 
 
Special offer: buy AmiBroker and EOD+Real-Time Data
Formula Library
 
AmiBroker
MetaTrader
MetaStock
TradeStation
Wealth-Lab
NinjaTrader
 
add your formula
System Library
 
 
Account login
Your email:
Password:
 
Log in
New to s4t? Sign up.
If you forgot your password click here.
Search the Web
 
Custom Search

Stochastic Momentum Indicator

Formula for: TradeStation

indicator

 

 

Views:  3795

Added: August 01, 2008
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5

2

1 ratings
 

email this link

 
 
Tags: TradeStation, indicator
 


The Stochastic Momentum Index (SMI) was developed by William Blau and was introduced in the January 1993 issue of Technical Analysis of Stocks & Commodities magazine.
It incorporates an interesting twist on the popular Stochastic Oscillator. While the Stochastic Oscillator provides you with a value showing the distance the current close is relative to the recent x-period high/low range, the SMI shows you where the close is relative to the midpoint of the recent x-period high/low range.

The result is an oscillator that ranges between +/- 100 and is a bit less erratic than an equal period Stochastic Oscillator.

When the close is greater than the midpoint of the range, the SMI is positive.
When the close is less than the midpoint of the range, it is negative.
The interpretation of the SMI is virtually identical to the Stochastic Oscillator.

Three popular methods include:

Buy when the SMI falls below a specific level (e.g., -40) and then rises above that level, and sell when the Oscillator rises above a specific level (e.g., +40) and then falls below that level. However, before basing any trade off of strict overbought/oversold levels it is recommended that you first qualify the trendiness of the market using indicators such as r-squared or Chande Momentum Oscillator. If these indicators suggest a non-trending market, then trades based on strict overbought/oversold levels should produce the best results. If a trending market is suggested, then you can use the oscillator to enter trades in the direction of the trend.
Buy when the SMI rises above its signal line (dotted) line and sell when the SMI falls below the signal line.
Look for divergences. For example, where prices are making a series of new highs and the SMI is failing to surpass its previous highs.
Mr. Blau also notes that a 1-day SMI (with large smoothing periods such as 100) is very sensitive to the close relative to the high and low of the day.

These type of parameters make the RMI useful as a sentiment, or trend identification indicator, thereby providing a better sense of the overall direction of the market.

 

 



Code:

Type : Function, Name : SMI

input:
length1(NumericSimple),
length2(NumericSimple),
length3(NumericSimple);

var:
HH(0),
LL(0);

HH = Highest(H,length1);
LL = Lowest (L,length1);

SMI = 100 * (XAverage(XAverage(C-(0.5*(HH+LL)),length2),length3) /
(0.5 * XAverage(XAverage(HH-LL,length2),length3)));





Type : Indicator, Name : SMI

input:length1(13),length2(25),length3(2),alertLevel(40);

plot1( smi(length1,length2,length3), "SMI" );
plot2( alertLevel, "sell line" );
plot3(-alertLevel, "buy line" );

if plot1 crosses above -alertLevel then
alert("SMI crosses above buy line");

if plot1 crosses below alertLevel then
alert("SMI crosses below sell line");



 





Code to difficult? Find somebody to help you with coding here.

 



Author: William Blau
Source: https://www.tradestation.com

 

View similar (indicator for TradeStation):

Better Volume Indicator
Volume Weighted Average Price - SMA
Macd RS Ratio
Color on MACD Histogram II
Oscillator of Kase Indicator
Triangle Pattern Indicator
SaittaTrend
Draw Linear Regression Lines For Two Past Periods
Bull and Bear Balance Indicator
Phase Calculation
...
 
 
all formulas for TradeStation
all formulas

 

 

Email to friend

Top

 

     
However we try to maintain hiqhest possible level of service - most formulas, oscillators, indicators
and systems are submitted by anonymous users.
Therefore S4T™ does not take any responsibility for it's quality.
If you use any of this information, use it at your own risk. You are responsible for your own trading decisions.
Be sure to verify that any information you see on these pages is correct, and is applicable to your particular trade.
In no case will S4T™ be responsible for your trading gains or losses.
PayPalSecure payments by PayPal S4T™ is a part of TAURO EDUCATION NETWORK
 
Privacy note | (c) copyrights systems4trading.com 2006-2009