Feature Request: a time lockup from withdrawing

I want to invest for my son and me in broad indices for long years, and I am worried I might, in a time of declines, sell at the worst possible moment.

I really want to ensure for my son that I don’t make rash moves that might hurt his future.

Thanks!