I am trying to backtest a stock trading strategy on Jupyter Notebook. Have coded the below to include the strategy and identify when to BUY the stock (MSFT/Microsoft in this