RightEdge Forums
Main     Home          Members     Calendar     Who's On

Welcome Guest
        



Backtests are very Slow Expand / Collapse
Message
Posted 2/10/2010 11:29:55 Post #10783
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
I am backtesting 1 year of Bar Data for approx 2000 symbols. Using EMA and MACD indicators only and very few calculations.
The backtest is taking about 20 minutes to run. My comparison for speed is Tradery.com where the same system/symbols takes < 3 mins.

Are there any measures I can take to improve this performance?
Posted 2/10/2010 11:55:07 Post #10784
 

DeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloperDeveloper
If you don't need separate ticks for the OHLC values, you can put the following line in your startup:
SystemData.CreateTicksFromBars = false;

This will speed things up a bit.

Also, just to make sure that your system logic isn't slowing down the simulation, you can try running an empty system over the same symbol set.

Thanks,
Daniel
Posted 2/10/2010 12:33:52 Post #10785
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
I have attempted both of your suggestions. The CreateTicksFromBars = false did not seem to help much, and even running on an empty system it took quite a while. This is probably the main thing holding me back from purchase. Love everything else.
Posted 2/10/2010 14:59:06 Post #10787
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
Seems to be faster now for whatever reason....not sure what i did. Does the symbol data cache?
Posted 2/11/2010 11:51:02 Post #10811
 

Lead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead DeveloperLead Developer
No, it does not. If you're using the binary store, it is file based and it's possible Windows may be caching the reads. Did you limit the number of bars, by chance?

gregoryj (2/10/2010)
Seems to be faster now for whatever reason....not sure what i did. Does the symbol data cache?
Posted 2/11/2010 12:47:51 Post #10817
 

Forum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum GuruForum Guru
No, but what i did notice was that my memory creeped up to 5.8gb and I have 6gb. I had 2 VMs running, so i shut them down. Once the memory was free, the backtest started cranking again.
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: billb, young, dplaisted

Permissions Expand / Collapse

All times are GMT -5:00, Time now is 12:50am

2005-2007 © RightEdge Systems