When viewing the generated code, the OnInit() function always contains the code shown below.
What is the purpose of it? It seems the code stops the initializing process if the init reason is a change of symbol or change of timeframe.
Well that seems appropriate for most cases, but why the else statement? Now the init is stopped in any case, right?
The problem: Lets say a project contains some graphical objects on the OnInit() tab, and some boolean constant input determines if those objects should be drawn or not.
If the user changes this boolean while the EA is running, the changes will not take effect because the OnInit() is stopped before those blocks are executed.
I often delete that else statement manually to make those objects inputs work properly, but I'd rather have this code changed for good.
Example: https://fxdreema.com/shared/pd9JF900c
