Send Keyboard keys to MetaTrader!
babarmughal:
Hi Guys,
Hi Guys,
How can I make an EA to excute the script file in the script folder...
Thanks
BabarThere's no code to execute a script file in MQL4, but there's a trick:
1- Assign a hot key to the script (Right click the script in the Navigator window and from the context menu choose "Set hotkey").
2- download Send Keyboard keys to MetaTrader!
3- In your EA use the functions:
void SendKey(int key,bool release = false)
void ReleaseKey(int key)
Thanks codersguru,
how can I amend an EA so that on certain time like "if time is 23:00 close all open and pending orders"
Thanks
Babar
![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
Hi Guys,
How can I make an EA to excute the script file in the script folder...
Thanks
Babar