There's a good discussion of this strategy on the Bogleheads wiki: https://www.bogleheads.org/wiki/Dollar_cost_averaging#Dollar...
tl;dr: If you think the market will continue to go up in the short term, lump sum will always beat DCA. A better rule, however, is: do not try to time the market. Just invest when you can.