How can an EA Execute Script in the....

 

Hi Guys,

How can I make an EA to excute the script file in the script folder...

Thanks

Babar

 

Send Keyboard keys to MetaTrader!

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)

 

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

Reason: