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

[amibroker] Re: Identifying Elliott Waves using AFL



PureBytes Links

Trading Reference Links

Hi Reni,

This should get you started:

<clip>
period1=Param("period1",9,10,200,10);
period2=Param("period2",21,10,200,10);
firstEMA=EMA(C,period1);
secondEMA=EMA(C,period2);
diffEMA=firstEMA-SecondEMA;
Plot(C,"Close",1,1);
Plot(firstEMA,"firstEMA",colorYellow,1);
Plot(secondEMA,"secondEMA",colorBlue,1);
Plot(diffEMA,"",colorGreen,
styleHistogram|styleOwnScale);
GraphXSpace=3;
Title=EncodeColor(colorGreen)+"Difference of
"+EncodeColor(colorYellow)+"EMA(C,"+NumToStr(period1,1)+")="+NumToStr(firstE
MA,1)+EncodeColor(colorGreen)+" minus
"+EncodeColor(colorBlue)+"EMA(C,"+NumToStr(period2,1)+")="+NumToStr(SecondEM
A,1);

<clip>

-john
----- Original Message ----- 
From: "renilange" <reni.lange@xxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, June 16, 2004 10:16 AM
Subject: [amibroker] moving averages histogram


I try to write the AFL code for an histogram about the relation /
distance between two EMA´s.
is it possible to plot the distance between two EMA as an histogram?
So, when we do not have trend the bars of the histogram are very
short.
I hope somebody can help me

Reni




Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at:
http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/amibroker/

<*> To unsubscribe from this group, send an email to:
     amibroker-unsubscribe@xxxxxxxxxxxxxxx

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/