Simple and exponential moving averages for stocks in python