Value

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Optimization Fitness >

Value

Previous page Return to chapter overview Next page

Definition

The value an optimization would be calculating against when using this Optimization Fitness.

 

Property Value

A double value.

 

Syntax

Value

 

 

Examples

ns

protected override void OnCalculatePerformanceValue(StrategyBase strategy)

{

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

}