https://blog.mathquant.com/2022/12/23/simple-grid-strategy-in-python-version.html
Simple grid strategy in Python version