It depends on what fund you buy. For example, if you buy a large-cap index fund, you can look at the market sentiment indicators. When the market sentiment is low, be prepared to enter the market, and when the market sentiment is high, be prepared to leave the market.
For example, the market trends in the past two years are shown below.
The indicator shows obvious divergence prompts at both the bottom and the top.