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

RE: [amibroker] Help with Sell Signal



PureBytes Links

Trading Reference Links

1-It will exit late if there is another buy signal; equity(1) should fix that.
2-Positions: long, short, or long and short.

Bob


-----Original Message-----
From: ewn87544 [mailto:ewn87544@xxxxxxxxxxx]
Sent: Friday, May 23, 2003 12:06 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Help with Sell Signal


 Could someone please tell me why the following script
will not exit consistently 5 trading days following the 
BUY signal. Also what backtester boxes should be checked
to only allow single directional trades.
Thanks
Ernie  


ArmsIndex = Foreign("!Trn-n","C");

Trin_5 = Ref( ArmsIndex, -4 )+Ref( ArmsIndex, -3 )+Ref( ArmsIndex, -
2 )+Ref( ArmsIndex, -1 )+Ref( ArmsIndex,0);

Cond1 = Ref(Trin_5,-1)> 6 AND Ref(Trin_5,0) < Ref(Trin_5,-1);

Buy = Cond1;
Sell = Ref(Buy,-5);



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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading! Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/Lj3uPC/Me7FAA/uetFAA/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 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/