MT5 one-click-btn through code
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.
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.
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.
MT5 templates have the following settings:
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:
This hides/shows the entire Trade Panel and buttons.
Is there a way to emulate one_click_btn, which shows/hides only the buttons?