Algorithmic Trading with Williams %R in Python