| 
 PureBytes Links 
Trading Reference Links 
 | 
Try this, who knows it may work :)
Buy = cross(macd(),signal());
Sell = barssince(buy)==10;
Buy = Exrem(buy,sell);
Cheers,
Graham
http://groups.msn.com/asxsharetrading
http://groups.msn.com/fmsaustralia 
-----Original Message-----
From: jazzman960 [mailto:treeiii@xxxxxxxxxxx] 
Sent: Thursday, 15 January 2004 1:14 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Bars Since Entry?
Hello.  I simply want to exit my position X days after going long or 
short.  How can I code this in amibroker? For example, go long when 
macd crosses 0, exit long 10 days later. I tried using the barssince 
function but have had no luck.  Thanks.
Jazz
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 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:  http://docs.yahoo.com/info/terms/ 
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 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:
 http://docs.yahoo.com/info/terms/ 
 
 |