PureBytes Links
Trading Reference Links
|
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<FONT
face="Times New Roman">
P=20;
CLOSEviaEMA=0.5<FONT
size=2>*((P+1)*<FONT
size=2>EMA(C,P)-(P-1<FONT
size=2>)*Ref(<FONT
size=2>EMA(C,P),-1<FONT
face=Verdana size=2>));<FONT
face=Verdana size=2>
Plot(C,"CLOSE"<FONT
size=2>,1,<FONT
size=2>1<FONT
face="Times New Roman">);<FONT
face="Times New Roman">
Plot(CLOSEviaEMA,<FONT
size=2>"CLOSEviaEMA",7<FONT
size=2>,8<FONT
face="Times New Roman">);
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
<A
href="">http://www.amibroker.com/library/detail.php?id=286
for further reference.
Dimitris Tsokakis
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.
|