So I am trying execute a buy/sell action based on the 5 period moving average exceeding that of the 20 period moving average. After receiving too many errors I decided to do