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

Re: [amibroker] Reverse EMA function



PureBytes Links

Trading Reference Links







 Hi Dimitris,
 
You say that we can "anticipate" next bar close with this indicator. I'm still trying to learn about TA and I don't know how you would do that. Would you be kind enough to illustrate this. Perhaps with a well known stock such as MSFT. 
 
Thanks,
 
Greg
 
-------Original Message-------
 

From: amibroker@xxxxxxxxxxxxxxx
Date: June 13, 2003 4:00:35 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Reverse EMA function
 
EMA is a function of todays Close and yesterdays EMA.
The mechanism is analytically described in AFL>AFL Scripting Host>Examples>a) Indicator example - Exponential moving average
After the math transormation, we may solve for C and get the Reverse EMA function.
I will call it CLOSEviaEMA to be more expressive.
In Indicator builder paste the
 
// Reverse EMA function, by D.Tsokakis, June 2003
P=20;
CLOSEviaEMA=0.5*((P+1)*EMA(C,P)-(P-1)*Ref(EMA(C,P),-1));
Plot(C,"CLOSE",1,1);
Plot(CLOSEviaEMA,"CLOSEviaEMA",7,8);
 
to see actual Close and CLOSEviaEMA matching.
The Reverse EMA function is useful to anticipate next bar Close, if we suppose next bar EMA.
It is placed at
http://www.amibroker.com/library/detail.php?id=286
for further reference.
Dimitris Tsokakis Send BUG REPORTS to bugs@xxxxxxxxxxxxxSend 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 the Yahoo! Terms of Service. 
 







____________________________________________________  IncrediMail - Email has finally evolved - Click Here






Yahoo! Groups Sponsor












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 the Yahoo! Terms of Service.

Attachment: Description: ""