This code is able to purchase stocks by using money from Robinhood Gold, as long as you have enough buying power. Even though your Robinhood Gold balance shows a negative when the algorithm is deployed, it is still able to purchase stocks but only once and then hold. You can purchase as many as 70 stocks at once by just adding their symbols. I was successfully able to purchase 1 AKR today (had to test with only 1 share just in case things went haywire)
There are still two things I a trying to do and I am hoping someone can help.
1) First, for the stocks I purchase, (AKR in this case) I would like for the algorithm to keep track on the daily prices and purchase an additional stock but only if the day's price is 10% below the initial purchase price (=< 0.90 * cost_basis)
2) For the above to be possible, the algorithm would need to have a function to run at least once daily (preferably every day 30 minutes after market opens.
Does anyone have any idea how I could improve the algorithm to meet these conditions?