Optimizing Your Strategies
The Optimization Process
After your first backtest, you'll likely want to improve your strategy. Here's a systematic approach.
Step 1: Analyze Current Results
Look at your backtest results and identify:
Are most losses from false entries? → Improve entry conditions
Are you exiting too early? → Widen take profit or remove premature exits
Are drawdowns too deep? → Tighten stop loss
Too few trades? → Loosen entry conditions
Too many trades with small losses? → Add confirmation indicators
Step 2: Adjust One Variable at a Time
Never change multiple parameters simultaneously. You won't know which change improved/worsened results.
Common Adjustments
Smoother signal, fewer false triggers
Fewer but higher-conviction entries
More responsive trend filter
Fewer stops hit, but larger losses when hit
More frequent wins, but smaller each time
Step 3: Compare Backtests
Run a new backtest after each change and compare:
Version
Return
Sharpe
Drawdown
Win Rate
Trades
In this example, v2 improved across the board with fewer, higher-quality trades.
Step 4: Validate with Different Periods
After finding good parameters, validate across multiple time periods:
Period
Return
Sharpe
Drawdown
If the strategy works across all periods, it's likely robust. If it only works in one period, it may be overfitted.
Optimization Tips
Change one parameter at a time
Test across multiple time periods
Prefer consistency over maximum returns
Keep strategies simple (2-4 conditions)
Look at Sharpe ratio, not just total return
Don't optimize to get 90%+ win rate (likely overfitting)
Don't use extremely narrow parameter ranges
Don't ignore drawdown in pursuit of returns
Don't over-complicate your strategy with 10+ conditions
Don't curve-fit to one specific market event (like a crash)
When to Stop Optimizing
Stop when:
Sharpe ratio is consistently above 1.0 across periods
Max drawdown is within your risk tolerance
The strategy is simple enough to understand intuitively
Additional changes produce diminishing improvements
You're confident enough to activate with real money (on testnet first)