A little sniffing around showed that the reason is that any Parameter that has the DefaultValueAttribute set becomes ReadOnly in the Market Analyzer. Setting a DefaultValue for a parameter is not supposed to make the parameter ReadOnly. Indeed if the indicator is added to a chart, the parameter remains read/write, thus making the point. I have not checked what happens in any other parts of NinjaTrader.
To restrict the setting of DefaultValues for parameters in this way just does not seem to make sense in any context, so I conclude that we must have a bug.
See the two pictures, that I have posted, that demonstrate the issue.
I have also posted 2 files, which differ ONLY in marking a DefaultValue for the Period parameter by using a DefaultValue attribute. The file names tell the story.
Comment