Here is the problem:
Every time a compile the indicator and then reload the the indicator I get an error in the Ninjatrader log that says " Failed to set property 'MyTestType' for indicator 'TestTypeConverter': Object of type 'MyNamespace.TestType' cannot be converted to type 'MyNamespace.TestType'.
However, the property is being set properly.
This error will only be displayed once. If I reload the indicator again I do not get the error message.
I can even close the NinjaTrader application and then reopen it and the error message will not display again.
So basically the indicator works fine. However, my concern is that if a person is using this indicator on their charts and then they decide to recompile any other indicator, then whenever they load my indicator for the first time or even refresh an existing indicator of mine then this error will appear in the log and the user may think something is wrong.
Does anyone know why this error is only happening after a compile?
Thanks
P.S. I have included the source code below. You should be able to just copy it directly.
Comment