I get this if I try to optimize a strategy. The strategy runs perfectly in real-time and in backtesting.
I am using try/catch blocks to forward the exception to Output window and this is what I get:
"Error in setting strategy parameters: Strategy 'MyStrategy' does not have a parameter 'ParameterA""
It appears that the problem is related to Browsable attribute of that parameter set to false.
The default value of Browsable attribute for ParameterA in the strategy is false. However, a certain parameter (ParameterSwitch) when changed to a specific enum value may set Browsable attribute of ParameterA to true/false. I do that when setting parameters before optimization. It seems that optimizer does not understand this and thinks that parameter is still not Browsable.
I changed default value for Browsable attribute to true and the issue had gone.
Please pass that to QA team.

Comment