From Svendsen Tech PowerShell Wiki
Jump to: navigation, search
no edit summary
== The best SnP 500 index 14-day periods ever ==
I took every SnP 500 14-day period (or as close as possible, according to my algorithm) from December 30, 1927 to March 13, 2020 and pulled out the best ones. With my current code and method it will take about 3 hours for each time period you want to calculate for, so if I want to know the 7-day trend, I will have to re-run the code that populates the variable "$weekly" and change to subtract 7 days instead of 14. It occurs to me that I could use a 1-day interval and aggregate the results with post-processing to calculate all other intervals, based on that. It might not even be faster though, I haven't thought it through.

Navigation menu