Why do my hotkeys not always work?

 
I have an EA/Indicator setup which is just a position sizing tool however there's a script which allows me to place an order. Through MT5's normal properties function, you can set it be a hotkey. I've set it up to be Ctrl+W.

The issue I have is that it doesn't always work. If I press the two buttons too quick, it won't register, if I press it too slow, it won't register. I have to get it just right or it doesn't happen. This issue is beyond frustrating.

I've tested different keyboards, different hotkeys, nothing helps, i'm 99% sure it's MT5.

Any advice or ideas would be amazing!
 
Redrose_45: set it up to be Ctrl+W.
Try a key not already defined in the terminal.
          Hot Keys - For Advanced Users - Getting Started - MetaTrader 5 Help
 
Redrose_45:
I have an EA/Indicator setup which is just a position sizing tool however there's a script which allows me to place an order. Through MT5's normal properties function, you can set it be a hotkey. I've set it up to be Ctrl+W.

The issue I have is that it doesn't always work. If I press the two buttons too quick, it won't register, if I press it too slow, it won't register. I have to get it just right or it doesn't happen. This issue is beyond frustrating.

I've tested different keyboards, different hotkeys, nothing helps, i'm 99% sure it's MT5.

Any advice or ideas would be amazing!

If you program doesn't do what it should start the debugger, here are the HowTos:

https://www.metatrader5.com/en/metaeditor/help/development/debug // Code debugging
https://www.mql5.com/en/articles/2041 // Error Handling and Logging in MQL5
https://www.mql5.com/en/articles/272 // Tracing, Debugging and Structural Analysis of Source Code
https://www.mql5.com/en/articles/35 // scroll down to: "Launching and Debuggin"

Code debugging - Developing programs - MetaEditor Help
Code debugging - Developing programs - MetaEditor Help
  • www.metatrader5.com
MetaEditor has a built-in debugger allowing you to check a program execution step by step (by individual functions). Place breakpoints in the code...
Reason: