https://kaabar-sofien.medium.com/the-detrended-price-oscillator-creating-back-testing-in-python-9ada6461bda5