To run my EA/script when alert notification comes

 

Hi All,

I am a noob in programming.
My question is once I received notification alert from another EA/script externally, I want to run my own Ea/script in my MT4 accordingly

Example: 
I am running my MT4 when an alert notification for BUYS for this pair pops up on my screen.
This alert notification is not from my MT4 account.

It is from another MT4 account running on server to pop up BUY notification.


I want to run automated trading when the notification pops up.


1.) Can this be done?

2.) If yes, can show/bring me to where i can get more info or the program code to be used?

3.) Any limitations?

4.) If no, is there a workaround? Say through an external program?



Regards,

 
raihanonly:

I want to run automated trading when the notification pops up.

1.) Can this be done?

2.) If yes, can show/bring me to where i can get more info or the program code to be used?

3.) Any limitations?

4.) If no, is there a workaround? Say through an external program?

1. yes
2. short version of answer : ask someone to do it.
3. depends on the trigger you're depended on. (an alert?)
4. if I had to do what you're gonna do, i'd do it this way. (an external program). but that's totally personal preference.

the process you're intended to do is supposed to be done the right way, using signals service (copy signals...).

 
Code2219 or probably 2319:

1. yes
2. short version of answer : ask someone to do it.
3. depends on the trigger you're depended on. (an alert?)
4. if I had to do what you're gonna do, i'd do it this way. (an external program). but that's totally personal preference.

the process you're intended to do is supposed to be done the right way, using signals service (copy signals...).

Thanks for the short detailed reply.
Yes that the direction I can move on next after hearing from a coder himself.
I do want to hear more about number 4. if possible.

 
raihanonly:

Thanks for the short detailed reply.
Yes that the direction I can move on next after hearing from a coder himself.
I do want to hear more about number 4. if possible.

Step 1: Use the winapi to copy the current log from ./MT4/logs to ./MT4/MQL4/Files

Step 2: Parse the log file for alert strings

Step 3: ???

Step 4: Profit!

Reason: