PureBytes Links
Trading Reference Links
|
The solution is working...when you check with explore..it is giving you
the last value as of the last bar in your database..and in your case it
is rs=7...Please see the attached image file...I ran an explore on the
NDX100 and the values returned are different for the individual
tickers.
Anthony
Jim Hutchison wrote:
> This solution doesn't work if you check with Explore. It always uses
>
> the same value RS = 7 even though the value of Trend changes to 1 or
> 2.
>
> Thank You
>
> Jim Hutchison
>
>
>
> -----Original Message-----
> From: Anthony Faragasso [mailto:ajf1111@xxxxxxxx]
> Sent: Tuesday, February 18, 2003 9:03 AM
> To: amibroker@xxxxxxxxxxxxxxx
> Subject: Re: [amibroker] Need Help
>
> Jim,
>
> After your RS=IIf(Trend == 1,14,IIf(Trend == 2,7, 4)); statement add
> the
> following:
>
> RS=lastvalue(RS);
>
> Best wishes
> Anthony
> /*******************************/
> Bull=9;
>
> Bear=-3;
>
> Trend = IIf(Bull<ROC(EMA(C,50), 14),1,IIf(Bear<ROC(EMA(C,50),
> 14),2,3));
>
> //xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
> B =IIf(Trend == 1,17,IIf(Trend == 2,63, 22));
>
> S =IIf(Trend == 1,58,IIf(Trend == 2,79, 83));
>
> RS=IIf(Trend == 1,14,IIf(Trend == 2,7, 4));
> RS=Lastvalue(RS);//****Added***
>
>
> Filter=1;
>
> AddColumn(Trend,"Trend");
>
> AddColumn(B,"B");
>
> AddColumn(S,"S");
>
> AddColumn(RS,"RS");
>
> AddColumn(ROC(EMA(C,50), 14),"ROC");
>
>
>
> S
> ochRsi=EMA((RSI(RS)-LLV(RSI(RS),8))/(HHV(RSI(RS),8)-LLV(RSI(RS),8)),3)
>
> *100;
>
>
>
> Buy=Cross(B,StochRsi) AND ADX(14) > 20 AND RSI(4)<50;
>
> Sell=Cross(StochRsi,S)AND ADX(14) > 13 AND RSI(4)>50;
>
> Short=Sell;Cover=Buy;
>
>
>
> > 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.
>
>
>
>
> 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.
>
>
>
> 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.
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/
Attachment:
Description: ""
|