Arpit T:
Count the press, then reset at 2 to zero.
I want to make it function like when case 57 or F key is pressed once it should trigger a = 1800, when it pressed again it should trigger a = 2200 when it pressed third time it should be 1800 again so it should be looping for these 2 values 1800 and 2200, I am wondering how can i do that?
![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 want to make it function like when case 57 or F key is pressed once it should trigger a = 1800, when it pressed again it should trigger a = 2200 when it pressed third time it should be 1800 again so it should be looping for these 2 values 1800 and 2200, I am wondering how can i do that?