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

Re: [amibroker] Re: Mistake describing the Amibroker Conference CD's for sale



PureBytes Links

Trading Reference Links




Have a 
look at your line
<FONT face=Arial color=#0000ff 
size=2> 
<FONT 
face="Courier New">result2=RSI(C,range);
<FONT 
face="Courier New"> 
the correct syntax 
for rsi is RSI(Range)
<FONT 
face="Courier New"> 
<FONT 
face="Courier New">change....
<FONT 
face="Courier New"> 
<FONT 
face="Courier New"> result2=(RSI(range);

 
Regards,Jayson 

  <FONT face=Tahoma 
  size=2>-----Original Message-----From: drsinfla 
  [mailto:drsteph@xxxxxxxxxx]Sent: Wednesday, May 05, 2004 4:19 
  PMTo: amibroker@xxxxxxxxxxxxxxxSubject: [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@xxxx]>   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: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)>   
  -------------------------------------------->   Check group 
  FAQ at:> <A 
  href="">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:>     <A 
  href="">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@xxxxxxxxxxxxxSend SUGGESTIONS to 
  suggest@xxxxxxxxxxxxx-----------------------------------------Post 
  AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx (Web page: <A 
  href="">http://groups.yahoo.com/group/amiquote/messages/)--------------------------------------------Check 
  group FAQ at: <A 
  href="">http://groups.yahoo.com/group/amibroker/files/groupfaq.html 
  


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 Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.