LOGIN

Join & EARN

For the ' if's ' in life £€$¥د.إ
enjoy possibilities with Us
FOREX ALGOS { }

What We Do BlackBox Backtest Results How It Works Full Refund Promise Supported Brokers Income Targets

Robots Glossary

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.