For daily, we obtain 5 yrs worth of historical info. in order to use all readily available information, the value needs to be all but in order to use smaller history, you could established it to an integer benefit e.g https://junaidibjc086184.pointblog.net/5-simple-statements-about-spy-algo-trading-explained-71510439