1) I've written a lot of indicators and strategies. But this weekend I took on the challenge of writing my first add-on. I used as a model the AddonShellExample.cs code, which was written by someone at Ninjatrader. I got a lot done and have a working prototype. There are a couple of problems. One is that, the property persistence code doesn't work. It doesn't even work in the example. Try it yourself. Change one of the properties, close the window and reopen it. The value of the property will revert to the original value. I'm not using tabs, so I'm trying to use the window properties. But they don't get saved, but the tab properties didn't, either, Save() and Restore() for both don't even get called. What's missing?
2) I want only one instance of my add-on window to appear. I've tried semaphores and mutexes, but haven't had much success. What is the best way to make sure for when a user tries to open another copy of the add-on, it does not open and even sends focus to the already existing instance?
As always, thanks for your help.

Comment