Putting it all together, here is the workflow that separates rigorous optimization from curve-fitting theatre:
Step 1: Start with a minimal strategy
Define your trading logic with the fewest parameters possible. Two or three core parameters is ideal. If you need more than four, reconsider whether the strategy is too complex.
Step 2: Run a baseline backtest
Before optimizing, run the strategy with default or reasonable parameter values. This tells you whether the core logic has any potential. If the strategy loses money with sensible defaults, optimization is unlikely to save it — you are polishing the wrong idea.
Step 3: Define parameter ranges
Set min, max, and step for each parameter. Use wide enough ranges to explore the landscape but reasonable step sizes to keep the grid manageable. EMA periods from 10 to 50 in steps of 5 give you 9 values — a tractable number. Steps of 1 give you 41 — still fine for a single parameter, but multiplied across three parameters, that becomes 68,000 combinations.
Step 4: Run multi-asset optimization
Test across multiple markets to filter out single-asset flukes. Rank by aggregate robustness rather than peak performance on any individual asset.
Step 5: Walk-forward analysis
Take the parameter ranges identified in step 4 and run WFA. This validates that the parameters work not just across assets but across time periods. Focus on the composite equity curve and walk-forward efficiency.
Step 6: Stability testing
Check that the final parameters sit on a plateau, not a peak. Vary each parameter and confirm that small changes do not destroy performance.
Step 7: Evaluate honestly
If the strategy passes multi-asset optimization, WFA, and stability testing, it has earned some confidence. If it fails at any stage, that is not a waste — it is the process working correctly by filtering out unreliable configurations before they reach live markets.