GetFitness (Custom Optimization)
GetFitness - A method the cBot can override to define a custom fitness function for optimization. By default, optimization uses built-in criteria (e.g. maximize profit or minimize drawdown). Override
protected override double GetFitness(GetFitnessArgs args) to return a custom score (higher is better). The API docs note:
“Override this method to provide custom fitness value for Optimization”. In optimization settings, choosing a “Custom” criterion will use the value returned by
GetFitness.