Algorithmic Trading with Stochastic Oscillator in Python