Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to backtest an options strategy in R. I require the ability to delta hedge and rebalance to options in the portfolio at different frequencies (daily, monthly,etc.) What packages are the correct ones to use for this purpose? (I have seen the R Finance task view but there is a lot there)

share|improve this question
up vote 3 down vote accepted

Assuming you already have a way to obtain hedge ratios and the like, your best available choice is probably blotter (used to be just quantstrat). You will find that it isn't necessarily oriented toward options.

Generally for options backtesting, pros end up making their own or buying commercial software. There are tons of commercial providers, but I don't know anyone who has investigated the top candidates.

share|improve this answer
note though that since it's not on CRAN yet, i think that means the ensemble of packages is still in 'beta' mode. – Veeken May 10 '13 at 14:34
blotter is very stable, but quantstrat is not. blotter is accounting infrastructure, it isn't oriented toward any type of security. I'm currently working on adding options functionality to quantstrat. – Joshua Ulrich May 20 '13 at 17:20

My first thought would be to use quantlib package to get the delta values and comply those to get a position delta. Then use rules based on delta values to hedge. Use discrete time adjustments or use delta bands.

share|improve this answer
yep, i got the deltas already. i really need something to do the delta hedging for me and pnl computations as those get slightly messy – Alex May 10 '13 at 1:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.