OnCalculatePerformanceValue()

View as Markdown

Definition

This method calculates the value for the Optimization Fitness.

Syntax

protected override void OnCalculatePerformanceValue(StrategyBase strategy)

Examples

protected override void OnCalculatePerformanceValue(StrategyBase strategy)
{
Value = strategy.SystemPerformance.AllTrades.TradesPerformance.Percent.Drawdown;
}