Skip to content
Prev 2146 / 15274 Next

Simulate the stock market for back testing strategy ---R bootstrap function

Dirk Eddelbuettel wrote:
A block bootstrap for time series is implemented in a slightly more 
robust manner than that described by Dirk above in the function 
tsbootstrap(tseries)

There are a number of other bootstrap methods available in package 
"boot" and corresponding function "boot", but I haven't examined these 
in detail for their tuning or applicability in time series.

I think I laid out some basic steps of building a trading model on 
actual historical data in my prior email.  Simulated data (via 
resampling or any other method) after the point where you have a target 
model is only a validator of the model, not the starting point, or 
you're almost certain to get worthless results.

Regards,

   - Brian