[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Metastockusers] Momentum Divergencies



PureBytes Links

Trading Reference Links









Several weeks ago I asked for assistance in converting
TradeStation code to MetaStock. There are two good indicators in a book by
Price Headley, “Big Trends in Trading.” One indicator, Momentum
Divergence, attempts to show when to take or avoid stock price breakout (page
114 of the book). 

 

Could someone provide the equivalent MetaStock Code of the
TradeStation below?

 

(with setting = 15 bars; 40 bars is the intermediate-term
setting)

 

Input:FastMA (12), SlowMA (26), MacdMA (9), Input2(15),
BuyZone (30), SellZone (90);

 

Value1=IFF(Highest(MACD(Close,FastMA,SlowMA),Input(2) –

Lowest (MACD(Close,FastMA,SlowMA),Input2)<>0,Highest

(MACD(Close,FastMA,

SlowMA),Input2) &#8211; Lowest(MACD
(Close,FastMA,SlowMA),Input2),50);

 

Value2=IFF(Highest(close,Input2) &#8211; Lowest(close,Input2)<>0,
Highest(close,Input2) &#8211; 

Lowest(close,Input2),50);

 

Plot1(100*(close-Lowest(close,Input2))/Value2,&#8221;Close%&#8221;);

 

Plot2(100*(MACD(Close,FastMA,SlowMA) &#8211;

Lowest(MACD(Close,FastMA, SlowNA),Input2))/Value1,&#8221;MACD%);

 

Plot3(BuyZone, &#8220;BuyZone&#8221;);

 

Plot4(SellZone, &#8220;SellZone&#8221;);











Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links
To visit your group on the web, go to:http://groups.yahoo.com/group/Metastockusers/ 
To unsubscribe from this group, send an email to:Metastockusers-unsubscribe@xxxxxxxxxxxxxxx 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.