mhallsmoore / qstrader

QuantStart.com - QSTrader backtesting simulation engine.
https://www.quantstart.com/qstrader/
MIT License
2.94k stars 855 forks source link

Feature/discussion: Simulated financial data with statistical properties #18

Closed mhallsmoore closed 4 years ago

mhallsmoore commented 8 years ago

I'm likely to be creating a module that will provide simulation of financial time series data in order to test certain statistical machine learning models.

The main reasons for this are:

It should provide a good test-bed for statistical machine learning techniques prior to the usage of real-world financial data, which should help avoid overfitting problems.

Please let me know your thoughts!

hgeorgako commented 8 years ago

Another interesting simulation approach would be some sort of zero-intelligence model. This will emulate the actual return profile better than providing a rigid Brownian motion model. You either make basic assumptions about the limit order arrival rate, cancellation rate and market order rate, or calibrate those parameters off of sample data. Once you have those values, you can simulate to your hearts content.

mhallsmoore commented 8 years ago

That is certainly an interesting idea! Although I hadn't really considered carrying out a full limit order book simulation. I do like your idea of a "middle ground" though.