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

RE: [amibroker] Need Help



PureBytes Links

Trading Reference Links




<SPAN 
class=896435014-18022003>Jim,
The B 
and S variable do not work fine. Try calling them. The reason, I think, is that 
the length of RS needs to be fixed. Try RSI(lastvalue(RS)); and it works..... 

 Jayson 
<FONT face=Tahoma 
size=2>-----Original Message-----From: Jim Hutchison 
[mailto:phutch@xxxxxxxxxxx]Sent: Tuesday, February 18, 2003 8:56 
AMTo: amibroker@xxxxxxxxxxxxxxxSubject: [amibroker] Need 
Help

<SPAN 
><SPAN 
> 
<SPAN 
>When I try to back test the fowling 
program I get this AFL Error message: 
<SPAN 
>Bad 
args.
<SPAN 
>0-th argument of function call has 
invalid (or unsupported) type at line 20, column 
21:
<SPAN 
> 
<SPAN 
> 
<SPAN 
>StochRsi=EMA((RSI(RS)
<SPAN 
>--------------------^ 

<SPAN 
>I can not figure out why the RS 
variable does not work and the B and S variable work 
fine.
<SPAN 
> 
<FONT color=black 
face="Courier New" size=1><SPAN 
>Bull=<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>9<FONT 
color=black face="Courier New" size=1><SPAN 
>;
<FONT color=black 
face="Courier New" size=1><SPAN 
>Bear=-<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>3<FONT 
color=black face="Courier New" size=1><SPAN 
>;
<FONT color=black 
face="Courier New" size=1><SPAN 
>Trend = 
<SPAN 
>IIf<FONT 
color=black face="Courier New" size=1><SPAN 
>(Bull<<FONT 
color=blue face="Courier New" size=1><SPAN 
>ROC<FONT 
color=black face="Courier New" size=1><SPAN 
>(<FONT 
color=blue face="Courier New" size=1><SPAN 
>EMA<FONT 
color=black face="Courier New" size=1><SPAN 
>(<SPAN 
>C,<FONT color=fuchsia 
face="Courier New" size=1><SPAN 
>50<FONT 
color=black face="Courier New" size=1><SPAN 
>), 
<SPAN 
>14<FONT 
color=black face="Courier New" size=1><SPAN 
>),<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>1<FONT 
color=black face="Courier New" size=1><SPAN 
>,<FONT 
color=blue face="Courier New" size=1><SPAN 
>IIf<FONT 
color=black face="Courier New" size=1><SPAN 
>(Bear<<FONT 
color=blue face="Courier New" size=1><SPAN 
>ROC<FONT 
color=black face="Courier New" size=1><SPAN 
>(<FONT 
color=blue face="Courier New" size=1><SPAN 
>EMA<FONT 
color=black face="Courier New" size=1><SPAN 
>(<SPAN 
>C,<FONT color=fuchsia 
face="Courier New" size=1><SPAN 
>50<FONT 
color=black face="Courier New" size=1><SPAN 
>), 
<SPAN 
>14<FONT 
color=black face="Courier New" size=1><SPAN 
>),<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>2<FONT 
color=black face="Courier New" size=1><SPAN 
>,<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>3<FONT 
color=black face="Courier New" size=1><SPAN 
>));
<FONT color=green 
face="Courier New" size=1><SPAN 
>//xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<FONT 
color=black face="Courier New" size=1><SPAN 
>
<FONT color=black 
face="Courier New" size=1><SPAN 
>B 
=<SPAN 
>IIf<FONT 
color=black face="Courier New" size=1><SPAN 
>(Trend == 
<SPAN 
>1<FONT 
color=black face="Courier New" size=1><SPAN 
>,<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>17<FONT 
color=black face="Courier New" size=1><SPAN 
>,<FONT 
color=blue face="Courier New" size=1><SPAN 
>IIf<FONT 
color=black face="Courier New" size=1><SPAN 
>(Trend == 
<SPAN 
>2<FONT 
color=black face="Courier New" size=1><SPAN 
>,<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>63<FONT 
color=black face="Courier New" size=1><SPAN 
>, 
<SPAN 
>22<FONT 
color=black face="Courier New" size=1><SPAN 
>));
<FONT color=black 
face="Courier New" size=1><SPAN 
>S 
=<SPAN 
>IIf<FONT 
color=black face="Courier New" size=1><SPAN 
>(Trend == 
<SPAN 
>1<FONT 
color=black face="Courier New" size=1><SPAN 
>,<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>58<FONT 
color=black face="Courier New" size=1><SPAN 
>,<FONT 
color=blue face="Courier New" size=1><SPAN 
>IIf<FONT 
color=black face="Courier New" size=1><SPAN 
>(Trend == 
<SPAN 
>2<FONT 
color=black face="Courier New" size=1><SPAN 
>,<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>79<FONT 
color=black face="Courier New" size=1><SPAN 
>, 
<SPAN 
>83<FONT 
color=black face="Courier New" size=1><SPAN 
>));
<FONT color=black 
face="Courier New" size=1><SPAN 
>RS=<FONT 
color=blue face="Courier New" size=1><SPAN 
>IIf<FONT 
color=black face="Courier New" size=1><SPAN 
>(Trend == 
<SPAN 
>1<FONT 
color=black face="Courier New" size=1><SPAN 
>,<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>14<FONT 
color=black face="Courier New" size=1><SPAN 
>,<FONT 
color=blue face="Courier New" size=1><SPAN 
>IIf<FONT 
color=black face="Courier New" size=1><SPAN 
>(Trend == 
<SPAN 
>2<FONT 
color=black face="Courier New" size=1><SPAN 
>,<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>7<FONT 
color=black face="Courier New" size=1><SPAN 
>, 
<SPAN 
>4<FONT 
color=black face="Courier New" size=1><SPAN 
>));
<FONT color=black 
face="Courier New" size=1><SPAN 
> 
<FONT color=black 
face="Courier New" size=1><SPAN 
>Filter<FONT 
color=black face="Courier New" size=1><SPAN 
>=<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>1<FONT 
color=black face="Courier New" size=1><SPAN 
>; 

<FONT color=blue 
face="Courier New" size=1><SPAN 
>AddColumn<FONT 
color=black face="Courier New" size=1><SPAN 
>(Trend,<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>"Trend"<FONT 
color=black face="Courier New" size=1><SPAN 
>); 

<FONT color=blue 
face="Courier New" size=1><SPAN 
>AddColumn<FONT 
color=black face="Courier New" size=1><SPAN 
>(B,<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>"B"<FONT 
color=black face="Courier New" size=1><SPAN 
>);
<FONT color=blue 
face="Courier New" size=1><SPAN 
>AddColumn<FONT 
color=black face="Courier New" size=1><SPAN 
>(S,<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>"S"<FONT 
color=black face="Courier New" size=1><SPAN 
>);
<FONT color=blue 
face="Courier New" size=1><SPAN 
>AddColumn<FONT 
color=black face="Courier New" size=1><SPAN 
>(RS,<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>"RS"<FONT 
color=black face="Courier New" size=1><SPAN 
>);
<FONT color=blue 
face="Courier New" size=1><SPAN 
>AddColumn<FONT 
color=black face="Courier New" size=1><SPAN 
>(<FONT 
color=blue face="Courier New" size=1><SPAN 
>ROC<FONT 
color=black face="Courier New" size=1><SPAN 
>(<FONT 
color=blue face="Courier New" size=1><SPAN 
>EMA<FONT 
color=black face="Courier New" size=1><SPAN 
>(<SPAN 
>C,<FONT color=fuchsia 
face="Courier New" size=1><SPAN 
>50<FONT 
color=black face="Courier New" size=1><SPAN 
>), 
<SPAN 
>14<FONT 
color=black face="Courier New" size=1><SPAN 
>),<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>"ROC"<FONT 
color=black face="Courier New" size=1><SPAN 
>);
<FONT color=black 
face="Courier New" size=1><SPAN 
> 
<FONT color=black 
face="Courier New" size=1><SPAN 
>StochRsi=<FONT 
color=blue face="Courier New" size=1><SPAN 
>EMA<FONT 
color=black face="Courier New" size=1><SPAN 
>((<FONT 
color=blue face="Courier New" size=1><SPAN 
>RSI<FONT 
color=black face="Courier New" size=1><SPAN 
>(RS)-<FONT 
color=blue face="Courier New" size=1><SPAN 
>LLV<FONT 
color=black face="Courier New" size=1><SPAN 
>(<FONT 
color=blue face="Courier New" size=1><SPAN 
>RSI<FONT 
color=black face="Courier New" size=1><SPAN 
>(RS),<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>8<FONT 
color=black face="Courier New" size=1><SPAN 
>))/(<FONT 
color=blue face="Courier New" size=1><SPAN 
>HHV<FONT 
color=black face="Courier New" size=1><SPAN 
>(<FONT 
color=blue face="Courier New" size=1><SPAN 
>RSI<FONT 
color=black face="Courier New" size=1><SPAN 
>(RS),<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>8<FONT 
color=black face="Courier New" size=1><SPAN 
>)-<FONT 
color=blue face="Courier New" size=1><SPAN 
>LLV<FONT 
color=black face="Courier New" size=1><SPAN 
>(<FONT 
color=blue face="Courier New" size=1><SPAN 
>RSI<FONT 
color=black face="Courier New" size=1><SPAN 
>(RS),<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>8<FONT 
color=black face="Courier New" size=1><SPAN 
>)),<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>3<FONT 
color=black face="Courier New" size=1><SPAN 
>)*<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>100<FONT 
color=black face="Courier New" size=1><SPAN 
>; 

<FONT color=black 
face="Courier New" size=1><SPAN 
> 
<FONT color=black 
face="Courier New" size=1><SPAN 
>Buy<FONT 
color=black face="Courier New" size=1><SPAN 
>=<FONT 
color=blue face="Courier New" size=1><SPAN 
>Cross<FONT 
color=black face="Courier New" size=1><SPAN 
>(B,StochRsi) 
AND <FONT color=blue 
face="Courier New" size=1><SPAN 
>ADX<FONT 
color=black face="Courier New" size=1><SPAN 
>(<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>14<FONT 
color=black face="Courier New" size=1><SPAN 
>) > 
<SPAN 
>20<FONT 
color=black face="Courier New" size=1><SPAN 
> <SPAN 
>AND <FONT color=blue 
face="Courier New" size=1><SPAN 
>RSI<FONT 
color=black face="Courier New" size=1><SPAN 
>(<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>4<FONT 
color=black face="Courier New" size=1><SPAN 
>)<<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>50<FONT 
color=black face="Courier New" size=1><SPAN 
>; 

<FONT color=black 
face="Courier New" size=1><SPAN 
>Sell<FONT 
color=black face="Courier New" size=1><SPAN 
>=<FONT 
color=blue face="Courier New" size=1><SPAN 
>Cross<FONT 
color=black face="Courier New" size=1><SPAN 
>(StochRsi,S)<SPAN 
>AND <FONT color=blue 
face="Courier New" size=1><SPAN 
>ADX<FONT 
color=black face="Courier New" size=1><SPAN 
>(<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>14<FONT 
color=black face="Courier New" size=1><SPAN 
>) > 
<SPAN 
>13<FONT 
color=black face="Courier New" size=1><SPAN 
> <SPAN 
>AND <FONT color=blue 
face="Courier New" size=1><SPAN 
>RSI<FONT 
color=black face="Courier New" size=1><SPAN 
>(<FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>4<FONT 
color=black face="Courier New" size=1><SPAN 
>)><FONT 
color=fuchsia face="Courier New" size=1><SPAN 
>50<FONT 
color=black face="Courier New" size=1><SPAN 
>; 

<FONT color=black 
face="Courier New" size=1><SPAN 
>Short<FONT 
color=black face="Courier New" size=1><SPAN 
>=<SPAN 
>Sell;<SPAN 
>Cover=<SPAN 
>Buy;
<FONT color=black 
face="Courier New" size=1><SPAN 
> 
<SPAN 
>Thank 
you
<SPAN 
> 
<SPAN 
>Jim 
HutchisonPost 
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 
Your use of Yahoo! Groups is subject to the <A 
href="">Yahoo! Terms of Service. 







Yahoo! Groups Sponsor


  ADVERTISEMENT









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