PureBytes Links
Trading Reference Links
|
You are my new best friend. Thanks - that did the trick.
Once I get this thing totally set up will post the code for everyone.
Regards, Stephen
--- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx> wrote:
> Have a look at your line
>
> result2=RSI(C,range);
>
> the correct syntax for rsi is RSI(Range)
>
> change....
>
> result2=(RSI(range);
>
>
>
> Regards,
>
> Jayson
>
> -----Original Message-----
> From: drsinfla [mailto:drsteph@x...]
> Sent: Wednesday, May 05, 2004 4:19 PM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: [amibroker] Re: AFL syntax help needed, please!
>
>
> Try it under IGT if you are following that security... seems the
> problem is with the Makewhip function & its call.
>
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Jayson" <jcasavant@xxxx>
wrote:
> > Hmm....... plots just fine here...
> >
> > Regards,
> >
> > Jayson
> >
> > -----Original Message-----
> > From: drsinfla [mailto:drsteph@x...]
> > Sent: Wednesday, May 05, 2004 3:40 PM
> > To: amibroker@xxxxxxxxxxxxxxx
> > Subject: [amibroker] AFL syntax help needed, please!
> >
> >
> > Arrgh.... been working on this all day and not getting
anywhere.
> > Can't seem to put in the 2nd function call without getting
a "too
> > many arguments" error message for reasons I can't understand.
> > Anyone have any idea?
> >
> > Here's the code:
> >
> > //1. Define variables & functions
> > ticker=Name();
> > GARBAGE=1;
> > Days=0;
> > range=0;
> > Oversold=30;
> > Overbought=70;
> > Plot(C,"close ",colorWhite,styleBar);
> >
> > function PlotMA(Days,Color)
> > {
> > result=MA(C,Days);
> > Plot(result,"MA ",color,styleLine);
> >
> > return result;
> > };
> >
> > function makewhip(range,bottom,top)
> > {
> > result2=RSI(C,range);
> > result3=result2/5;
> > Plot(result3,"RSI/5
> Value ",colorRed,styleLine|styleOwnScale,0,100);
> > Plot(top,"Overbought sell trigger ",colorRed,styleLine);
> > Plot(bottom,"Oversold buy trigger ",colorRed,styleLine);
> > return result3;
> > };
> >
> > //2. Select correct analysis
> > if (ticker=="AXP")
> > {Days=4;Color=colorBlue;PlotMA(Days,Color);}
> > else {GARBAGE==1;Days=1000;}
> > if (ticker=="GM")
> > {Days=34;Color=colorBlue;PlotMA(Days,Color);}
> > else {GARBAGE==1;}
> > if (ticker=="JPM")
> > {Days=5;Color=colorBlue;PlotMA(Days,Color);}
> > else {GARBAGE==1;}
> >
> > if (ticker=="IGT")
> > {
> > range=4;
> > Overbought=87;
> > Oversold=44;
> > makewhip(range,Oversold,Overbought);
> > }
> > else {GARBAGE=1;}
> >
> >
> > Plot(Days,"DAYS",colorRed,styleLine|styleOwnScale);
> > Plot
(Overbought,"overbought",colorBlue,styleLine|styleOwnScale);
> >
> >
> >
> >
> >
> >
> > Send BUG REPORTS to bugs@xxxx
> > Send SUGGESTIONS to suggest@xxxx
> > -----------------------------------------
> > 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
> >
> >
> > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------
----
> ---------
> > --
> > Yahoo! Groups Links
> >
> > a.. To visit your group on the web, go to:
> > http://groups.yahoo.com/group/amibroker/
> >
> > b.. To unsubscribe from this group, send an email to:
> > amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >
> > c.. Your use of Yahoo! Groups is subject to the Yahoo!
Terms
> of Service.
>
>
>
> Send BUG REPORTS to bugs@xxxx
> Send SUGGESTIONS to suggest@xxxx
> -----------------------------------------
> 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
>
>
> Yahoo! Groups Sponsor
> ADVERTISEMENT
>
>
>
>
>
> -------------------------------------------------------------------
---------
> --
> Yahoo! Groups Links
>
> a.. To visit your group on the web, go to:
> http://groups.yahoo.com/group/amibroker/
>
> b.. To unsubscribe from this group, send an email to:
> amibroker-unsubscribe@xxxxxxxxxxxxxxx
>
> c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms
of Service.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Yahoo! Domains - Claim yours for only $14.70
http://us.click.yahoo.com/Z1wmxD/DREIAA/yQLSAA/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
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/
|