This script lets you choose the best time to invest in the S&P 500, thanks to a line showing an average growth of 8.32% over 50 years, starting from the price of $86.84 on January 1, 1974.
Thanks to this line indicating the price of the S&P 500 based on the average growth of the index. You'll be able to tell when the index is overvalued or undervalued. When the price is below 20% of the line, it's a good time to invest your cash for the crash. And when it's back in the black, it's time to reduce your DCA.
You can also specify a specific date in the settings to watch the percentage whenever you like.