It seems that the strategy analyzer has a "memory" of which variable names I used when I first started working with it.
If I add a property to my strategy the optimizer doesn't add the option to iterate over the new variable.
For example, I have "Contracts" and "Reversal" properties which are iterable and and I add a new one "TrailingStop" and there is no option to iterate over it. I tried changing the name or adding other properties but the only ones that I can use are the first 2.
I tried restarting the strategy analyzer and it didn't help.
The Properties code:
[Range(1, int.MaxValue)] [NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name="Contracts", Description="Amount of contracts", Order=1, GroupName="NinjaScriptStrategyParameters")] public int Contracts { get; set; } [Range(1, int.MaxValue)] [NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name="TrailingStop", Description="Kagi reverse after x ticks", Order=2, GroupName="NinjaScriptStrategyParameters")] public int TrailingStopTicks { get; set; } [Range(0, int.MaxValue)] [NinjaScriptProperty] [Display(ResourceType = typeof(Custom.Resource), Name="Reversal", Description="Trailing Stop Ticks", Order=3, GroupName="NinjaScriptStrategyParameters")] public int RevTicks { get; set; }
Comment