Thanks for the info with this post. This is exactly what I need. The only thing is, that it I do not want to press a Button on the keyboard. Maybe someone knows how to code it.
It should be possible in MT4. In the attachement is a screenshot of an MT4-Screen with some buttons. You could click on every button and something will happen then.
I do not want to open an order by pressing a key on the keyboard. I want to open the order by clicking with the mouse on a graphical button. I do not know how to create such a graphical button. Sorry, when I have been misunderstood.