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

Questions about MultiCharts .NET and user contributed studies.
HPF
Posts: 47
Joined: 02 Apr 2013
Has thanked: 11 times
Been thanked: 7 times

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

Postby HPF » 03 May 2013

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

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

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

Postby Henry MultiСharts » 03 May 2013

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.

HPF
Posts: 47
Joined: 02 Apr 2013
Has thanked: 11 times
Been thanked: 7 times

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

Postby HPF » 06 May 2013

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

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

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

Postby Henry MultiСharts » 06 May 2013

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

HPF
Posts: 47
Joined: 02 Apr 2013
Has thanked: 11 times
Been thanked: 7 times

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

Postby HPF » 07 May 2013

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


Return to “MultiCharts .NET”