hello everyone,
I am trying to find the price difference percentage for the SPY from 9:30am to 10am for the current day that the algo is trading. I want to see if the percent change is positive or negative as the SPY moves in the first 30 minutes in the day. Could anyone help, I do not know why it is not working. I have attached the code, but I only need help with lines 58-69.
thanks all!!