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

[amibroker] Backtesting exit strategies based on previous discretionary entries



PureBytes Links

Trading Reference Links

I have been papertrading a very short term and discretionary system 
on the Hang Seng futures over the last 1 1/2 months.  Anyway, 
although I would like to keep using discretionary entries for the 
time being, I would like to do some backtesting on exit strategies 
based on the discretionary entries I picked real-time in the past.  I 
was wondering if there was some way for me to type my entry times and 
prices into Amibroker and then write code to backtest my ideas for 
exit strategies.

(if it were just time, it think it would look like this):

longentry=iif(datenum()==1031114 AND timenum()==(213500 or 222100 or 
234500),1,0);
shortentry=iif(datenum()==1031114 AND timenum()==(215500 or 225500 or 
232300),1,0);
buy=longentry; sell=???; short=shortentry; cover=???;


But I need to be able to enter both entry time and price and I'm not 
sure how to do this, can anyone help me?

Thanks in advance,
Greg


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com. Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/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/