Automated Stop Loss Rules That Protect Capital