Skip to content
Prev 14526 / 15274 Next

Using quantstrat with options

I have an options strategy that I?m trying to backtest.  It involves buying or selling options that are underpriced or overpriced according to my model and delta hedging them.  In some cases I would end up getting rid of the option before expiry and in other cases I would hold the option till expiry. In the cases where I hold till expiry I had to follow the approach below to make this work within quantstrat. I was wondering if somebody had come up with a less ?hacky?, more elegant solution. 

Best,

Sal