Code in the State=State.SetDefaults gets run during that operation, which made me think it is also running a lot of AddPlot statements, etc...
So I am wondering why not use a type of registry storage concept, to hold a list of all active Indicators, to build the list a lot faster without invoking an instance of each indicator just to get it's "name" ? To clarify, I don't mean using the Windows Registry, but storing the list of Indicators (and other custom objects) in a simple List, stored in the SQLite database or even a local file.
The list would only need to be "Rebuilt" after a compile / import operation.
That seems like it would save some time in building the list when configuring Indicators.
Then when an Indicator is selected from the list, only that single Indicator needs to have an instance invoked, so it's properties can be set in the UI, and then cloned / attached to the chart.
I'm sure there is other things happening behind the scenes and you can't reveal the secret sauce of the Platform, etc. I'm just trying to shut down the nagging voice in the back of my head for an hour.
Comment