OnCalculatePerformanceValue()

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Optimization Fitness >

OnCalculatePerformanceValue()

Previous page Return to chapter overview Next page

Definition

This method calculates the value for the Optimization Fitness.

 

Syntax

protected override void OnCalculatePerformanceValue(StrategyBase strategy)
{

 
}

 

 

Examples

ns

protected override void OnCalculatePerformanceValue(StrategyBase strategy)

{

    Value = strategy.SystemPerformance.AllTrades.TradesPerformance.Percent.Drawdown;

}