Realized volatility and transactions