I created an indicator and instantiated some classes in OnStartUp(). These instantiatons are used within public override Plot().
And here is a special situation when that causes a problem:
- I opened this indicator on a 5 minute chart with a data history (Days to load) set to 10 days.
-There is no January data available in the data repository for the selected instrument. That means, the chart window is blank, no bars painted.
I observed that in this situation OnStartUp() is not executed and Plot() throws an exception because my classes are not instantiated.
Question: Is this intended behavior, that OnStartUp() is not executed if there is no data availabe for the concerning instrument?
Regards
Ralph
Comment