+1 for dollar cost averaging if your funds are also coming in on a schedule (per paycheck).
However, if one had a million dollars sitting in the bank, it may not be prudent to dollar cost average. Portfolio management and a time horizon are necessary to achieve the desired mix