A call to MessageBox() make subsequent calls to TerminalInfoInteger(TERMINAL_KEYSTATE_*) return incorrect result? - page 2
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I can confirm that on MetaTrader 4 build 1356 that the behaviour you have described is happening on my setup as well.
However, since I have never used these terminal states before and don't know the meaning of the returned values (-128,-127, 0, 1) I can offer no comment on whether it is the expected behaviour or not.
All I can do is confirm that the behaviour you observe has been replicated on my end with your code.