Developing an indicator which adds buttons to the tool bar which toggles all Indicator visibility.
In my Dispose() method I loop through all indicators.IsVisible = true; to restore all indicators visibility upon my own being removed from the chart.
1)
Toggling visibility works as expected. Until removing my indicator while indicators remain hidden on the chart. It LOOKs like the PanelIndex position gets ignored as the Indicator is next rendered on the price panel? The ControlPanel PanelIndex was showing a count of 2 during State.Terminated though?
2)
When the volume indicator visibility is set to false. My understanding from posts the forum is the chart is intended to treat the Indicator as if "removed" and the expected behaviour is the Price Panel expand to fill the whole window? Which it does not?
I have attached my indicator. You can see in the method restoreIndicatorsVisabiility() I am only setting IsVisible to true.
Is this a bug? Or am I doing this in the wrong place?
Thanks
Comment