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

[amibroker] eSignalCentral or Quote.com free data download?



PureBytes Links

Trading Reference Links

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.



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. <br> Now with
Pop-Up Blocker. Get it for free! <br> http://companion.yahoo.com
http://us.click.yahoo.com/L5YrjA/eSIIAA/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/