Backtest trading strategies in R.