New fast backtesting library

154 views
Skip to first unread message

Sal Abbasi

unread,
Sep 4, 2018, 7:10:02 PM9/4/18
to PyData

I recently released a new backtesting library at https://pypi.org/project/pyqstrat/  


I've been building quant strategies for many years and I spent a lot of time looking for a library that could accelerate the process. I could not find anything that fit my needs, which were that it should be fast, transparent and extensible.  So I ended up writing one for my own needs.


I thought this might be useful to other people as well, so decided to open source it.


The readme is at: 


Here is a notebook showing you how to get started.


The discussion group is at https://groups.io/g/pyqstrat

Please let me know if you decide to use it and any feedback to improve it.

Best,

Sal

maxim gir

unread,
Oct 1, 2019, 10:42:00 PM10/1/19
to PyData
Hi Sal, 
I've been looking for long time a library that can handle options backtesting. You mentioned that your library supports options. Would it be possible to share a simple options backtest example to get me started? 
Thank you

Sal Abbasi

unread,
Oct 1, 2019, 10:51:04 PM10/1/19
to pyd...@googlegroups.com
Yes please look at this example:


Let me know if you have further questions. 


Best,

Sal

On Oct 1, 2019, at 9:42 PM, maxim gir <gir....@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "PyData" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pydata+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pydata/15cb5c79-d6c9-4888-9295-9c9cde2fe556%40googlegroups.com.

maxim gir

unread,
Oct 2, 2019, 9:26:46 PM10/2/19
to PyData
Great! thanks, By the way, what would be the best way to adopt options backtests from Pyqstrat  for live trading with IB ?
To unsubscribe from this group and stop receiving emails from it, send an email to pyd...@googlegroups.com.

Sal Abbasi

unread,
Oct 2, 2019, 9:44:33 PM10/2/19
to pyd...@googlegroups.com
Apart from some analytics code that I share between backtesting and live trading, I write separate code for live trading and backtesting.  Trading code tends to be event-driven while backtesting is batch driven.  Apart from this, there are a lot of issues that are particular to trading such as trying to work orders to minimize slippage and vice versa such as the vectorized processing of large datasets in backtesting.

Best,

Sal

To unsubscribe from this group and stop receiving emails from it, send an email to pydata+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pydata/8f632e59-73d4-4482-96d9-c9feea72dbb6%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages