MT5 one-click-btn through code

To add comments, please log in or register
Anthony Garot
1864
Anthony Garot  

MT5 templates have the following settings:

one_click=0
one_click_btn=1

With the settings of 0 and 1 as I have above, it will show the buttons of the Trade Panel, but with the panel hidden.

Programmatically, I can do one_click as:

ChartSetInteger(chart_ID,CHART_SHOW_ONE_CLICK,0,true);
- or -
ChartSetInteger(chart_ID,CHART_SHOW_ONE_CLICK,0,false);

This hides/shows the entire Trade Panel and buttons.

Is there a way to emulate one_click_btn, which shows/hides only the buttons?

Anthony Garot
1864
Anthony Garot  

FYI, this will not be possible programmatically.

Per the service desk:

Dear Anthony.

Thank you for your suggestion.

We do not have plans to implement it in the nearest future. Probably, we will return to them.

Beas regards, MQL5.com support team.


kypa
981
kypa  
Generating a mouse click on the button might help.
Anthony Garot
1864
Anthony Garot  
kypa:
Generating a mouse click on the button might help.

It's a good thought.

I had also considered stuffing ALT-T into the keyboard buffer.

For now, I will probably just use a template.

kypa
981
kypa  

Alt+T is a far better solution. In fact it can actually be called a "solution" and not "ugly and dangerous workaround" like the mouseclick.

To add comments, please log in or register