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

[amibroker] Re: ZERO LAG MOVING AVERAGE



PureBytes Links

Trading Reference Links

The zerolag EMA uses two EMAs of the same period.
Example
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;
--- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> You have no reference for what EMA2 represents. Is this a different 
period
> EMA or refers to previous periods? At any rate this should get your
> started....
> 
> 
> //Zero Lag EMA
> 
> Period=Param("What Period",10,1,250);
> EMA1=EMA(C,Period);
> 
> EMA2=?????????
> 
> Difference=EMA1 - EMA2;
> ZeroLagEMA=EMA1 + Difference;
> 
> Plot(ZeroLagEMA,"Zerolag EMA",4,1);
> 
> 
> Regards,
> Jayson
> -----Original Message-----
> From: traderix2003 [mailto:d.adam@x...]
> Sent: Friday, May 16, 2003 12:06 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] ZERO LAG MOVING AVERAGE
> 
> 
> 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
>             ADVERTISEMENT
> 
> 
> 
> 
> 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 the Yahoo! Terms of Service.


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