For the test I have used the strategy that I attach and whose code is based on this indicator:
The strategy has two custom parameters:
- Myvalue (Custom Type)
- Mylistvalues (Collection of Custom Type)
1.- First I open the strategy (for example from the Strategies Tab of Control Center) and fill the data for Myvalue and Mylistvalues, and save a template.
I can open new instances of the strategy, load that template and check that serialization and deserialization work right at this time. I can also edit the values and save new templates, and serialization/deserialization continue to work right.
2.- Now I open the NinjaScript Editor and push the Compile button.
3.- Return to the Strategies tab of the ControlCenter, load a new instance of the strategy and load a previously saved template: now Mylistvalues deserializes right, but Myvalue does not.
Even if I now save/load new templates, the deserialization of Myvalue does not work, although the Mylistvalues collection does.
4.- I have to restart NinjaTrader so that the templates will work right again.
Maybe I'm missing something but it seems that there is a bug in the process.
Thanks
Comment