Quick answer
Choose Default when you can finish testing every combination in your selected ranges and want the highest score across that whole grid. Choose Genetic when the grid is too large to finish in the time available and you can work with an approximate result. Genetic starts with randomly selected parameter sets, then uses the scores to guide later generations. An untested combination can still score higher.
Count the combinations before choosing
Suppose your strategy has six possible entry lengths, from 5 to 30 in steps of 5, and four possible exit lengths, from 2 to 8 in steps of 2. Each entry length pairs with each exit length. Default runs all 24 combinations on the selected historical data.
The illustration shows one possible Genetic search on that grid. Filled circles identify tested pairs. The empty circles have no score. Add a third input with ten possible values and the full search grows from 24 combinations to 240. That multiplication is what makes the choice matter.
Set the search method and scoring rule
In Strategy Analyzer, set Backtest type to Optimization. Under Optimizer, choose Default or Genetic. Use Optimize on to choose the fitness measure that ranks the results. For example, selecting Profit Factor tells NinjaTrader which score to compare across settings.
Keep best # results controls how many top results appear in the Optimizer tab. If you run Default on the 24-pair grid and keep five results, Default still evaluates all 24. The five rows are the settings that ranked highest for the chosen measure.
What a Genetic run evaluated
Under GO properties, Generation size sets the number of candidates per generation, and Generations sets how many generations to run. A size of 20 over five generations allows 100 candidate evaluations. Repeated candidates and early stopping can leave fewer than 100 distinct settings tested.
- Convergence threshold can stop the search when a generation produces too many combinations that have already been tested. Repeats tell you the search is revisiting settings. A better score may still exist elsewhere in the grid.
- Minimum performance can end the search as soon as a candidate reaches your chosen fitness target. A value of zero turns this stopping condition off.
How to check the winning settings
To find out whether a nearby setting scores higher, narrow the ranges around the Genetic result and rerun Default with the same data, fill assumptions and fitness measure. Default then checks every combination in that smaller grid. Its top row gives you the highest score within those bounds.
To see how those settings behave on later data, use a separate test period. A high score on the dates used to choose the settings answers only how the strategy performed on those dates.
Official sources
Platform monitoring
Get an email when NinjaTrader goes offline
Ninja Watchdog monitors the Windows desktop or VPS running NinjaTrader and can email you if the platform goes offline.
