Hi everyone, I made this algorithm to buy and sell the SPY at its hypothesized daily dip and peak. It buys one minute before the close and sells at noon. I wanted this to repeat everyday but it seems like it only did it the first day, anyone know how to fix it?