You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The drawdown curve produced subsequent to the backtest takes a long time to calculate. Profile it and improve the speed (possibly by removing a direct for-loop).
The text was updated successfully, but these errors were encountered:
To my understanding of your code, a lot of time is lost by loading CSV file into memory using Pandas read_csv.
With my Macbook Air mi-2011 with random price tick for 1 day (2 symbols EURUSD and GBPUSD) and mac.py example I'm getting less than 2000 ticks per seconds processed.
You might make your price handler class an iterable class http://stackoverflow.com/questions/19151/how-to-make-class-iterable and use priority queue for tick events. With such improvements you can expect more than 12000 ticks per seconds (so a x6 factor).
With Julia and a "do nothing except print" strategy I'm processing more than 35000 ticks per second.
You might also be aware that printing all ticks reduce substantially tick processing speed. You might use modulo to only print ticks every n ticks (with a n_window window length)
The drawdown curve produced subsequent to the backtest takes a long time to calculate. Profile it and improve the speed (possibly by removing a direct for-loop).
The text was updated successfully, but these errors were encountered: