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

RE: [amibroker] Backtesting days of the week and specific times during the day



PureBytes Links

Trading Reference Links

James
You could try adding this to your code for Mondays 
AND DayofWeek()==1

And for the time of day 
AND Timenum()>=090000 AND Timenum()<=120000

Just some off the cuff idea, not knowing anything else about your conditions
for buy/sell

Cheers,
Graham
http://groups.msn.com/ASXShareTrading
http://groups.msn.com/FMSAustralia 

-----Original Message-----
From: the_real_redleg [mailto:james.hall3@xxxxxxxxxxx] 
Sent: Tuesday, 14 October 2003 6:27 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Backtesting days of the week and specific times during
the day


I would like to be able to use the backtesting feature for specific 
days of the week only (i.e., backtest or optimize on all Mondays for 
the past year). Is there an AFL code that will let me do this?

Also, I would like to be able to backtest on certain time periods 
only. (i.e., 0900-1200 each day for the past year.) 

I'm a new user and have been backtesting successfully, but haven't 
figured out how to refine my backtesting in this way.

Thanks in avdance,

James




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 ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/JYdFFC/XP.FAA/3jkFAA/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/