Ideally, you should buy the funds when the market is down and sell when it is high. Although there is no fixed time during which you can start investing in index funds, you should make such investments when the market is on the lower side to avoid a financial burden. That being said, investing regularly as per your goals over the long term could generate desired returns based on fund performance.