https://www.pythonforfinance.net/2016/05/09/python-backtesting-mean-reversion-part-2/
Python Backtesting Mean Reversion - Part 2