| 
 PureBytes Links 
Trading Reference Links 
 | 
Hi,
This is what I am using, maybe this will help you.
sp = Param( "pds1 Period", 13, 2, 100 );
r = EMA(C, sp );
Plot( r, "EMA("+WriteVal(sp,1.0)+")", ParamColor("pds1 Color", 
colorGreen ) ); 
s = Param( "pds2", 26, 2, 100 );
m = EMA(C, s );
Plot( m, "EMA("+WriteVal(s,1.0)+")", ParamColor("pds2Color", 
colorRed ) ); 
x= Param( "cond1", .091, .01,1,.001 ); 
cond1= EMA(C,13)+EMA(C,13)*x;
Cond2= EMA(C,13)-EMA(C,13)*x;
 
Plot(C, "Price",colorYellow, styleBar );
Plot(cond1,"upper band",ParamColor("",colorBlue),1);
Plot(cond2,"Lower band",ParamColor("",colorBlue),1);
Good luck,
Dennis
--- In amibroker@xxxxxxxxxxxxxxx, "dtfreak1025" <dtfreak1025@xxxx> 
wrote:
> I am trying to get a moving average channel in AFL based on this 
> formula.
> 
> Any help would be appreciated.
> Thanks
> 
> DT
> 
> EMA = "VARIABLE"
> 
> (UPPER CHANNEL)
> EMA + EMA * CHANNEL COEFFICIENT
> 
> (LOWER CHANNEL)
> EMA - EMA * CHANNEL COEFFICIENT
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy No Snore & Get a Good Night's Sleep. Natural Oral Spray -- $24.95
(1 bottle, 1 month supply, with sweet almond oil, eucalyptus oil & more).
http://www.challengerone.com/t/l.asp?cid=2881&lp=h515.html
http://us.click.yahoo.com/2oMABA/nuYGAA/ySSFAA/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/ 
 |