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

[amibroker] Re: ZeroLad MACD



PureBytes Links

Trading Reference Links

Interesting, I never delved into DEMA.
Now I know what it does

nand


--- In amibroker@xxxxxxxxxxxxxxx, "markf2" <feierstein@xxxx> wrote:
> Yes, it can be calculated directly from DEMA.  Mark
> 
> /* Calculating ZerolagMACD() using DEMA */
> fast = 12;
> slow = 26;
> sig  = 9;
> ZerolagMACD = DEMA( Close, fast ) - DEMA( Close, slow );
> ZerolagSignal = DEMA( zerolagMACD, sig );
> Graph0 = ZerolagMACD;
> Graph1 = ZerolagSignal;
> Graph2 = Graph0 - Graph1; 
> 
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Graham" <gkavanagh@xxxx> wrote:
> > Is this the same as writing
> > EMA1= EMA(Close,p);
> > EMA2= EMA(EMA1,p);
> > ZeroLagEMAp= 2*EMA1 - EMA2;
> > 
> > Which is same as the DEMA formula
> > 2 * EMA( C, len ) - EMA( EMA( C, len ), Len );
> > 
> > Cheers,
> > Graham
> > http://groups.msn.com/ASXShareTrading
> > http://groups.msn.com/FMSAustralia
> > 
> > -----Original Message-----
> > From: nkis22 [mailto:nkishor@x...] 
> > Sent: Sunday, 27 April 2003 1:44 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] ZeroLad MACD
> > 
> > Here is ZerolagMACD, with default setting: 12,26,9. Use
> > parameter capability to tweak periodicity. Can be added to the
> > AB's build in MACD for comparison. ZerolagMACD often signals entry
> > and exit a few days earlier, and shows divergences quite
> > clearly on symbols I have checked.
> > 
> > nand
> > 
> > /*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);
> > 
> > EMA1= EMA(Close,p);
> > EMA2= EMA(EMA1,p);
> > Difference= EMA1 - EMA2;
> > ZeroLagEMAp= EMA1 + Difference;
> > //---------------------------------------
> > EMA1= EMA(Close,q);
> > EMA2= EMA(EMA1,q);
> > Difference= EMA1 - EMA2;
> > ZeroLagEMAq= EMA1 + Difference;
> > //---------------------------------------
> > ZeroLagMACD=ZeroLagEMAp - ZeroLagEMAq;
> > //---------------------------------------
> > // Signal line
> > EMA1= EMA(ZeroLagMACD,r);
> > EMA2= EMA(EMA1,r);
> > Difference= EMA1 - EMA2;
> > ZeroLagTRIG= EMA1 + Difference;
> > 
> > Plot(zerolagMACD,"",5,4);
> > Plot(zerolagtrig,"",7,4);
> > //===========================end zeroLagMACD
> > 
> > 
> > 
> > 
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
> > (Web page: http://groups.yahoo.com/group/amiquote/messages/)
> > --------------------------------------------
> > Check group FAQ at:
> > http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
> > 
> > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/O10svD/Me7FAA/AG3JAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/