Values
<< Click to Display Table of Contents >> Values |
The Values array holds an 5 values corresponding to each Cbi.PerformanceUnit. NinjaTrader will then access the Values property to display the calculated performance metric in the UI. You can also access these performance metrics for a NinjaScript strategy.
public double[] Values
{ get; private set; }
protected override void OnAddTrade(Cbi.Trade trade) { Values[(int)Cbi.PerformanceUnit.Currency] += trade.ProfitCurrency; }
// The attribute determines the name of the performance value on the grid |
// The attribute determines the name of the performance value on the grid get { return /*Your custom math here*/ }
private set; } |