I'm currently working off of an algorithm that sells a stock at a price higher than what it was purchased at.
The algorithm stops after it has sold the stock.
I'm hoping to extend the code to make it start buying stocks again at a price that was lower than what it was sold at and to repeat the cycle.
Can someone help me with the lines of code after line 40?