Is it possible to expose a value that is calculated in a strategy, so that it is accessible by a custom optimization type? This is what I tried, but it was just a guess and did not work.
In the strategy:
// expose the SQN result for optimisation???
[Browsable(false)]
public double SQN
{
get { return sQN; }
}
The optimization type:
namespace NinjaTrader.Strategy
{
/// <summary>
/// System Quality Number
/// </summary>
[Gui.Design.DisplayName("SQN")]
public class SQN : OptimizationType
{
public override double GetPerformanceValue(SystemPerformance systemPerformance)
{
return( this.Strategy.SQN );
}
}
}
Cheers
Tony

Comment