Dynamic Trading Strategies in the Presence of Market Frictions