I wanted to report a bug I found while working in the Strat Analyzer. If you have an input parameter that was one variable type and then you change to another while the Strat Analyzer Optimization is open, the Optimization gets confused. After the error condition happens, it won't correct until you restart Ninjatrader.
Steps to duplicate:
1. Create/open a test script.
2. Create an input parameter (i.e. double). For example:
[NinjaScriptProperty]
[Range(1.0, 10.0)]
[Display(ResourceType = typeof(Custom.Resource), Name="Test1", Description="Test1", Order=1, GroupName="NinjaScriptStrategyParameters")]
public double Test1
{ get; set; }
3. Compile.
4. In Strategy Analyzer, select your script and Backtest type (Optimization).
5. Put in some valid values and Run.
6. Go back to your script and change the input parameter to an Int with a range of 1-100 or something.
7. Compile.
8. Note the Strat Analyzer field changed to a single field and the drop down is no longer available.
9. If you change the Backtest type from Standard back to Optimization, it doesn't fix itself. If you close out and restart Strat Analyzer, it doesn't fix itself.
Comment