I am trying to write a script which downloads the close price of a stock using zerodha kiteconnect and computes MACD and then gives a signal whether to buy or sell a stock. I am