Join & EARN

CLUB Member For the ' if's ' in life £€$₹د.إ
enjoy possibilities with Us
LOGIN FX Learner LOGIN FOREX ALGOS { }

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.