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

[amibroker] Re: ZERO LAG MOVING AVERAGE



PureBytes Links

Trading Reference Links

i.e they are the same or is that what you said that I said ?

--- In amibroker@xxxxxxxxxxxxxxx, "DIMITRIS TSOKAKIS" <TSOKAKIS@xxxx> 
wrote:
> Fred,
> 
> T = 10; // Time Period 
> M = (H+L)/2;// your array here
> EMA1 = EMA(M,T);
> EMA2 = EMA(EMA1,T);
> Diff = EMA1 - EMA2;
> ZeroLagEMA = EMA1 + Diff;
> Graph0 = ZeroLagEMA;
> 
> Following above defined ZeroLagEMA we have
> ZeroLagEMA = EMA1 + Diff=EMA1+(EMA1-EMA2)=2*EMA1-EMA2=2*EMA(M,T)-EMA
> (EMA(M,T),T)
> The last part is DEMA(M,T) [see also 
> http://www.amibroker.com/guide/afl/afl_view.php?id=42]
> DT
> 
> --- In amibroker@xxxxxxxxxxxxxxx, "Fred" <fctonetti@xxxx> wrote:
> > Use the built in DEMA ... you'll get the same thing as the 
> intention 
> > of what you posted even though it's missing the definition of 
EMA2.
> > 
> > --- In amibroker@xxxxxxxxxxxxxxx, "traderix2003" <d.adam@xxxx> 
> wrote:
> > > Has somebody the formula for a " zero lag EMA"?
> > > A friend of mine gave me the Metastock formula. Perhaps some 
one 
> > > could translate it:
> > > 
> > > Zero Lag EMA
> > > Period:=Input("What Period",1,250,10);
> > > EMA1=Mov(P,Period,E);
> > > Difference:=EMA1 - EMA2;
> > > ZeroLagEMA:=EMA1 + Difference;
> > > ZeroLagEMA
> > > 
> > > Thxs for your help.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading!
Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/aM1XQD/od7FAA/uetFAA/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/