PureBytes Links
Trading Reference Links
|
This should work.
Cheers,
John
At 06:45 AM 10/26/2004, you wrote:
>I tried changing the code blow but with out Success
/*Xero Lag MACD(p,q,r)*/
//based on ZeroLag EMA inApril, 2000, issue of Technical Analysis
//of Stocks AND Commodities.
p = Param("p",12,3,36,2);
q = Param("q",26,3,52,2);
r = Param("r",9,3,15,1);
EMA1p= EMA(Close,p);
EMA2p= EMA(EMA1p,p);
Differencep= EMA1p - EMA2p;
ZeroLagEMAp= EMA1p + Differencep;
//---------------------------------------
EMA1q= EMA(Close,q);
EMA2q= EMA(EMA1q,q);
Differenceq= EMA1q - EMA2q;
ZeroLagEMAq= EMA1q + Differenceq;
//---------------------------------------
ZeroLagMACD=ZeroLagEMAp - ZeroLagEMAq;
//---------------------------------------
// Signal line
EMA1r= EMA(ZeroLagMACD,r);
EMA2r= EMA(EMA1r,r);
Differencer= EMA1r - EMA2r;
ZeroLagTRIG= EMA1r + Differencer;
Plot(ZerolagMACD,"",5,4);
Plot(ZerolagTRIG,"",7,4);
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
$9.95 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/J8kdrA/y20IAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~->
Check AmiBroker web page at:
http://www.amibroker.com/
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|