A few days ago, I added this single parameter to several of my indicators, exactly as shown
[Display(Name = "Minimum price change to recalculate", Description="", GroupName = "Performance", Order = 20)] public double MinPriceChange { get; set; }
This works fine. I have MinPriceChange = 0 in state.setdefautls, too. I noticed however on an NT restart, that the setting was missing. This was after I'd spent a while prior day setting the option on each indie and saving the workspace. So, I did it again. Today, I note the setting when I go into the indicator properties on the chart is missing, again. Am I going mad!? I check the code. No, it is there. I recompile and check again, it is there.
I have now repeated this process multiple times with the same result.
Start ninatrader - Parameter is missing from all the indicators that I added it to and saved the workspace on.
Open the editor. Recompile. Check again - The parameter is back and I can set options.
Save the workspace and close NT8.
Open NT8 again, the parameter is missing from the indie settings. Repeat process, same result! It comes back after compiling and without restarting.
I've never come across this one before. Any clues as to what might be going on?
[edit] Just to add - If I were to get NT8 to recompile on startup, as per a re-isntall/upgrade, the settings are there in the indies and work. If I then shut down NT8 and restart it, they are gone again. So, same as per manual open, recompile fixes, shutdown, they are gone.
Further update as I am trying to resolve this. Found that NinjaTrader.Custom.dll in the NinjaTrader 8\bin\Custom folder was actually 4-5 days old, which is odd, given I know it rebuilds when I recompile. So, I removed it, started NT, and then did a recompile. I now see the new NinjaTrader.Custom.dll with a current date, which is what I would expect. Shut down NT and restart, but now have zero custom indicators. It is as if NT cannot load the NinjaTrader.Custom.dll, yet in the trade log, I see it is and there are not errors I can see
2022-06-20 13:57:13:917 Copying custom assemblies...
2022-06-20 13:57:13:924 Loading custom assemblies...
2022-06-20 13:57:13:924 Loading E:\Paulhome\Documents\NinjaTrader 8\bin\Custom\NinjaTrader.Custom.dll...
2022-06-20 13:57:14:014 Loading E:\Paulhome\Documents\NinjaTrader 8\bin\Custom\NinjaTrader.Vendor.dll...
2022-06-20 13:57:14:036 Deleting temporary files...
Comment