Skip to content

The Option Lab is an automated backtesting framework for option trading strategies. The results generated by the code are visualised on our website.

License

Notifications You must be signed in to change notification settings

kyle-crews/theoptionlab

 
 

Repository files navigation

1) Data (theoptionlab uses EOD data from the CBOE).

2) Python (currently version 3, for version 2 see previous release: https://github.com/theoptionlab/theoptionlab/releases/tag/v1.0)

3) Install dependencies: pip install -r requirements.txt 

4) database (currently postgres, previously mysql)

5) database and tables with script in create_db_postresql.sql
$ psql -h host -d optiondata -U user -f /path/to/create_db_postresql.sql

6) adapt private/settings_template.py with your own settings and rename the file into settings.py

7) try to run insert_fullday.py and then free_money_scanner.py 

8) And then you are ready to insert all the data and precompute the greeks (takes a while), with or without the risk free rate (takes an even longer while)! 

9) Once the data is in place, run your first backtest with call_backtests.py 

About

The Option Lab is an automated backtesting framework for option trading strategies. The results generated by the code are visualised on our website.

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 78.9%
  • HTML 14.3%
  • TSQL 6.8%