Quote:
|
Originally Posted by babarmughal
Hi Guys,
How can I make an EA to excute the script file in the script folder...
Thanks
Babar
|
There'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)