Page 1 of 1

Can I add a clickable button to the status line of a chart?

Posted: May 03 2013
by HPF
Hi,

I know that we can use System.Windows.Forms functions in order to display custom alerts and other dialog windows. I wonder whether it is possible to add a clickable button to the status line of a chart and to have one of my own functions called when the button is clicked.

Any hints on how to implement this would be appreciated.

Kind regards,

HPF

Re: Can I add a clickable button to the status line of a cha

Posted: May 03 2013
by Henry MultiŠ”harts
Hello HPF,

Yes that is possible to implement that.
Check out Chart ToolBar section of our Programming Guide to learn how to do that. A pre-built indicator _Chart_ToolBar_Example_ and a signal _ChartToolBar_Trading_ may be used as examples.

Re: Can I add a clickable button to the status line of a cha

Posted: May 06 2013
by HPF
Thank you! Can I ask a (stupid) follow up question?

How do I control whether some given chart window shows a tool bar at all?

HPF

Re: Can I add a clickable button to the status line of a cha

Posted: May 06 2013
by Henry MultiŠ”harts
How do I control whether some given chart window shows a tool bar at all?
HPF, you can place it under condition and show it for a certain name or resolution only like that. Here is a complete list: Properties of the Data Series, which a study is applied to

Re: Can I add a clickable button to the status line of a cha

Posted: May 07 2013
by HPF
Thanks.

I also figured out that you can hide and show the tool bar of the current chart window by

Code: Select all

ChartToolBar.Visible = false;
HPF