There is a common confusion between illiquidity and risk. Some financial advisors recommend you keep a certain amount of living expenses in a low-yield money market account. But if you have an appetite for risk then this is wrong. You can fully invest your money and use margin loans for immediate access to funds (from your checkbook or wire transfer) without realizing taxable gains. And the margin interest is deductible against investment income. Of course if you lose your job or the market crashes then you may need to quickly adjust your risk exposure.
This explains why dollar cost averaging in inefficient. If you _know_ you are going to get a year-end bonus, then you don't need to wait to invest it. You can simply leverage your current holdings and then repay the margin loan with your bonus. By analogy, suppose you only have $1,000 in your pocket for green chip blackjack, and you can't get a marker for an hour. You can still spread aggressively in anticipation of reloading at midnight. It would be silly to waste an hour.
It is gambling addiction if you lose your money in bad bets and borrow more to "get even". But it is shrewd finance for a well-capitalized individual to use mortgages, margin loans, and markers to manage liquidity, risk, and taxes.

