I have this algorithm that is working fairly well but the only reason that I think it's doing well is that it's overspending its portfolio and taking risky moves with the "borrowed" money. I've seen several posts going over it, but I'm still struggling to see what is causing it to spend so much.
I posted comments in the code to show what the program is doing. I believe the problem might be related to shorting stocks instead of selling them. If you see what I'm doing wrong please tell me!
Thanks,
Malachi
P.S.
57,000% isn't bad :)