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) – Lowest(MACD
(Close,FastMA,SlowMA),Input2),50);
Value2=IFF(Highest(close,Input2) – Lowest(close,Input2)<>0,
Highest(close,Input2) –
Lowest(close,Input2),50);
Plot1(100*(close-Lowest(close,Input2))/Value2,”Close%”);
Plot2(100*(MACD(Close,FastMA,SlowMA) –
Lowest(MACD(Close,FastMA, SlowNA),Input2))/Value1,”MACD%);
Plot3(BuyZone, “BuyZone”);
Plot4(SellZone, “SellZone”);
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.
|