log in     sign up for free
 
There are many different classifications of exits other than your initial stop loss. These include exits that produce a loss but reduce your initial risk, exits that maximize profits, and exits that keep you from giving back too much money, and psychological exits.
Van K. Tharp
 
 
Home
systems (284)
 
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

Macd Momentum

Formula for: TradeStation

indicator


 

 

Views:  2383

Added: June 14, 2008
 
Rate this code:  Rate: 1 Rate: 2 Rate: 3 Rate: 4 Rate: 5

4

1 ratings
 

email this link

 
 
Tags: TradeStation, indicator
 
Your Ad Here
These are the codes for the MACD Momentum, created by Barbara Star,from the Feb., 1994 Technical Analysis of Stocks and commodities. It is believe to be a leading indicator and I've created a system based on this indicator.


The idea: Take the difference between Gerald Appel's MACD's histogram and the histogram's value DSP bars ago and smooth it with an Smth bar exponential (or simple) moving average. When this differrence crosses below zero, the tradable is predisposed to go down. When the histogram actually turns negative, go short. When the difference crosses above zero, cover the short trade. And when the histogram actually turns positive, go long. Cover when the difference crosses below zero.


Type : Function, Name : McdMo

Inputs:
R(Numeric),
S(Numeric),
Q(NUmeric),
Dsp(Numeric),
Smth(Numeric);

Vars:
Mo(0),
Avg(0),
Diff(0);

Mo=MACD(C,R,S);
Avg=XAverage(MACD(C,R,S),Q);
Diff=Mo-Avg;
McdMo=Average(Diff-Diff[Dsp],Smth);




Notes: This calculates the difference between theMACD histogram and its value DSP bars ago, smooth by an SMTH bars simple moving average.



Type : Function, Name : MacdDiff

Inputs:
R(Numeric),
S(NUmeric),
Q(Numeric);
Vars: Mac(0),
Avg(0);

Mac=MACD(C,R,S);
Avg=Xaverage(MACD(C,R,S),Q);
MACDDiff=Mac-Avg;




Notes: This is the Macd Histogram.


Type : Indicator, Name : Macd Momentum

Inputs:
R(12),
S(26),
Q(9),
Dsp(10),
Smth(3);

Vars:
Mo(0),
Diff(0);

Diff=MacdDiff(R,S,Q);
Mo=McdMo(R,S,Q,Dsp,Smth);
Plot1(Diff,"Diff");
Plot2(Mo,"Macd Mo");






"The mark of a successful commander is the ability to adapt rapidly to the constantly changing conditions on the field of battle."
-Carlo D'Este on Field Marshall Walter Model


 

 



Code:

Type : Function, Name : McdMo

Inputs:
R(Numeric),
S(Numeric),
Q(NUmeric),
Dsp(Numeric),
Smth(Numeric);

Vars:
Mo(0),
Avg(0),
Diff(0);

Mo=MACD(C,R,S);
Avg=XAverage(MACD(C,R,S),Q);
Diff=Mo-Avg;
McdMo=Average(Diff-Diff[Dsp],Smth);





Type : Function, Name : MacdDiff

Inputs:
R(Numeric),
S(NUmeric),
Q(Numeric);
Vars: Mac(0),
Avg(0);

Mac=MACD(C,R,S);
Avg=Xaverage(MACD(C,R,S),Q);
MACDDiff=Mac-Avg;




Type : Indicator, Name : Macd Momentum

Inputs:
R(12),
S(26),
Q(9),
Dsp(10),
Smth(3);

Vars:
Mo(0),
Diff(0);

Diff=MacdDiff(R,S,Q);
Mo=McdMo(R,S,Q,Dsp,Smth);
Plot1(Diff,"Diff");
Plot2(Mo,"Macd Mo");




 





Source: http://www.purebytes.com

 

View similar (indicator for TradeStation):

Aroon
Trend Continuation Factor
StochRSI
Hilbert Channel Indicator
RAVI
CCI Predict
Pivotal Trading
Pivot Bar
Dunn's Density Indicator
Moving Average Adjuster
...
 
 
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