Source: http://alvarezquanttrading.com/blog/how-to-turn-a-losing-strategy-to-a-winning-strategy-with-commissions/