PureBytes Links
Trading Reference Links
|
Mark,
Try this in AA....click explore
//Sample trading system
Buy=Cross(C,MA(C,28));
Sell=Cross(MA(C,28),C);
/**********************************/
islong=Flip(Buy,Sell);
x=BarsSince(Buy);
y=BarsSince(Sell);
Filter=1;
AddTextColumn(WriteIf(islong,"LONG","SELL"),"CurrentPosition");
AddColumn(IIf(islong,x,y),"Bars");
Anthony
-------Original Message-------
From: amibroker@xxxxxxxxxxxxxxx
Date: Monday, May 12, 2003 10:25:52 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Exploration Question
Hi Everyone,
Is there any way to add a column of text to an exploration that
indicates trade status? Specifically, I need to add a column that
specifies "Long" or "Short" (depending on which is the case) beginning
with the bar of entry, through and including the bar before the bar of
exit, then "Out" beginning with the exit bar and continuing for all
bars the system's not in the market, etc. I understand I need to use
Filter=1 to ensure no bars are missed. Thanks. Mark
Yahoo! Groups Sponsor
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 the Yahoo! Terms of Service.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/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/
|