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

RE: [amibroker] Need Help



PureBytes Links

Trading Reference Links

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");



StochRsi=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 ---------------------~-->
DVD Rentals with No Late Fees - Try Netflix for FREE!
http://us.click.yahoo.com/PdoN7C/pEZFAA/46VHAA/GHeqlB/TM
---------------------------------------------------------------------~->

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/