I’ll be really thankful for some help and guidance. I’m building a custom indicator for which I need to take some actions when Chart Trader panel is opened or closed or hidden/collapsed by the user. I have been able to get and set the current status of the Chart Trader Panel through the use of property ChartTraderVisibility. I’m able to read whether the chart trader is Visible (Trader is ON), Collapsed (Trader is OFF), VisibleCollapsed (Trader is working but hidden). I’m also able to set the property status using
ChartCommands.ChartTrader.Execute(ChartTraderVisibility.Visible)
Now the problem is that I need to subscribe to an event which is fired whenever the chart trader visibility is switched between ON, OFF and Hidden. I have tried an event named as IsVisibleChanged but this event can not differentiate between the ON state and the hidden state. It works well for OFF state but it takes ON and hidden, both of these, states as same. So, I’m in need of an event/syntax which is executed whenever the visibility status is changed by the user through clicking the main menu on chart’s top row -> Chart Trader Menu -> Chart Trader sub menu ON or OFF or Hidden buttons. Alternatively, if I can get any event which is related to chart trader's sub menu buttons pressing to change the visibility, this would be equally good.
Best Regards
Mubeen Haider

Comment