In Ninja7, an exception is thrown whe accessing any Bars related data.
How should I determine the difference between being called from the dialog verses from the indicator initialization? I'd prefer to not have to use FindWindow() to look for the dialog because it uses a pretty generic forms class and the title itself "Indicators" is also pretty generic.
I suspect you're going to ask me why I need this. I'm doing something which I know is not supported.
I save our indicator settings in an XML file on the first bar OnBarUpdate(). And the next time the user creates a new chart, I load their previous settings from the XML file in OnInitialize() ... but this is a little tricky because we only want to load the settings when using the "Indicators" dialog, otherwise, the default settings will overwrite the indicator settings.
We've found this more intuitive than using templates, plus it allows us to easily carry settings forward from 6.5 to 7.
Thanks!
Doug
---
ZoneTrader(c), available from TraderUSA.net, is a complete indicator package with multitime frame Zones of support and resistance, ABC and Fibonacci pivots, projections, and retracements, real time news, and our proprietary balance lines, triggers, and trend points. Visit our website to learn more.

Comment