I'm just trying to find a way to calculate the sd, mean etc. of SPY between t0 and t1 where it need to be varying from 5m, 1hr, or 10 days. As t1 is defined as "now".
I want to use these kind of indicators (t0-t1) to predict price change at next time interval ( say t2) based on simple linear...