log in     sign up for free
 
Show me the charts, and I'll tell you the news. Have an opinion on what the market should do but don't decide what the market will do. Be happy with a percentage of the move.
Bernard Baruch
 
 
Home
systems (284)
 
Special offer: buy MetaStock (try for free)   |   Reuters QuoteCenter Real-Time Data (get a free month)   |   EOD 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

Modified Moving Averages

Formula for: TradeStation

indicator


 

 

Views:  1647

Added: June 16, 2008
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5
This formula has not been rated yet
 

email this link

 
 
Tags: TradeStation, indicator
 
Your Ad Here
In Traders' Tips this month, we look at the article in this issue by Joe Sharp, "More Responsive Moving Averages." The article describes a modified moving average that greatly diminishes the lag that is typically associated with moving averages. With the formula described in the article, the moving average line is more responsive to changes in the price action.
An indicator to plot the modified moving average can be easily created for application on a chart. In the EasyLanguage below, the calculation for the modified moving average is created in an EasyLanguage function called ModifiedMA. This function basically takes care of all the necessary calculations for the modified moving average line. By putting the entire calculation into a function, the modified moving average calculation can be easily referenced by any analysis technique. Once the modified moving average (ModifiedMA) function has been created, an analysis technique to plot the function value is also very easy to create.

Below is the EasyLanguage that is used to create both the function and indicator for the modified moving average. The scaling for the indicator above should be set to "same as symbol."
This EasyLanguage is also available at Omega Research's Website. The name of the file is "MMA.ELS."
-- Gaston Sanchez

Omega Research
http://www.omegaresearch.com

 

 



Code:

Type: Function, Name: ModifiedMA
Inputs: Price(Numeric), Length(Numeric);
Variables: Factor(0), Slope(0), SMA(0), MMA(0);

Slope = 0;

For value1 = 1 To Length Begin
Factor = 1 + (2 * (value1 - 1));
Slope = Slope + (Price[value1 - 1] * ((Length - Factor)/2));
End;

SMA = Average(Price, Length);
MMA = SMA + (6 * Slope) / ((Length + 1) * Length);

ModifiedMA = MMA;





Type: Indicator, Name: Modified Mov Avg
Inputs: Price(Close), Length(2);

Plot1(ModifiedMA(Price, Length), "MMA");



 






Author: Joe Sharp
Source: http://www.traders.com

 

View similar (indicator for TradeStation):

MB/ADX EZ Dynamic
Preferred (Slow) Oscillator
LBR_IntraHL Channel
Moving Average of Volume
TrendArea_2 Indicator
Double Smoothed Exponential Moving Average
RAVI II
Market Mood Indicator
NLR Indicator
Quarterly Pivots
...
 
 
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.
 
Privacy note | (c) copyrights systems4trading.com 2006-2012