PureBytes Links
Trading Reference Links
|
Hello,
Version 4.38 is required to run this. You can get this version from
the members area at http://www.amibroker.com/login.html
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Jose" <josesilva22@xxxxxxxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Monday, June 16, 2003 3:51 PM
Subject: [amibroker] Re: EMA/breakout signals composite indicator
> Thanks Tomasz,
>
> I must have an earlier version of AB (v4.3):
>
>
> Unknown identifier at line 25, column 3:
>
> if(
> --^
>
>
> http://www.amibroker.com/guide/afl_view.php?name=IIF
>
> Is this link still active?
>
>
>
> jose '-)
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@xxxx>
> wrote:
> > Hello,
> >
> > I have fixed the formula for you. There were several errors.
> > For example you were using the same values in x = IIF line
> > and you were usign IIF function as a control flow statement.
> > To learn more about difference between IIF and if-else
> > please read Tutorial: understanding how AFL works and
> > check IIF help page at http://www.amibroker.com/guide/afl_view.php?
> name=IIF
> >
> >
> > /* Exponential Moving Average v1.0 */
> >
> > /* EMA periodicity adapts to low bar count */
> >
> > /* josesilva22@xxxx */
> >
> > Title = "EMA/breakout signals";
> >
> > pds = Param("EMA periods",21,1,252,1);
> >
> > x = Param("Op=1 Hi=2 Lo=3 Cl=4 Vol=5",4,1,5,1);
> >
> > shift = 1+Param("EMA vertical shift %",0,-100,100,0.01)/100;
> >
> > display = Param("EMA=1, Signals=2",1,1,2,1);
> >
> > x = IIf(x==1,O,IIf(x==2,H,IIf(x==3,L,IIf(x==4,C,V))));
> >
> > prds = pds;
> >
> > EMA1 = AMA(x,2/(prds+1))*shift;
> >
> > signals = Cross(x,EMA1)+Cross(EMA1,x)*-1;
> >
> > if(display==2)
> >
> > {
> >
> > Plot(0,"",colorBlue,styleLine);
> >
> > Plot(signals,"EMA signals",colorRed,styleLine);
> >
> > }
> >
> > else
> >
> > {
> >
> > Plot(Close,"",1,128);
> >
> > Plot(EMA1,"EMA",colorRed,styleLine);
> >
> > }
> >
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
>
>
>
>
> 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/
>
>
>
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/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/
|