I created a custom OptimizationFitness using some variables in NinjaScript. Everything works as expected as long I add public class variables and then set them in OnStateChange().
However, I'm wondering if it is possible to expose these variables to user input (in Strategy Analyzer Optimization).
Can it somehow be done and if "Yes", how?
The user should not need to open the NinjaScript if he wanted to edit these custom OptimizationFitness input variables. For clarification: I expect these variables to be changed based on individual preference. I tried to add the variables in region properties of the OptimizationFitness script, but the below (illustrative example) does not seem to do the trick.
#region Properties
[NinjaScriptProperty]
[Range(0.1, 5)]
[Display(Name = "CustomOptimizationFitnessVariable", Order = 1, GroupName = "OptimizationFitness")]
public double dCustomOptimizationFitnessVariable
{ get; set; }
Thanks for letting me know.
NT-Roland
Comment