Trouble with Reinforcement Learning

Hello, I’ve been following the reinforcement example from this link https://www.analyticsvidhya.com/blog/2020/10/reinforcement-learning-stock-price-prediction/

I am able to train the model correctly to my knowledge, but when testing I always get a profit of 0. It is making the decision to “sell” or “2” every time. Is anyone able to look at this code and see if something needs to be changed?

Much appreciated, thank you!

© Copyright 2013-2021 Analytics Vidhya