Understanding Backtesting and Optimization: How to Test and Improve Your Trading Strategy