Mt4 Alerts

I have recently found out about mt4 Alerts and was wondering if if I would be able to set my mt4 platform so that I receive an email/alert whenever my EA places a trade on my account.

If someone could please tell me how I would go about doing this it would be greatly appreciated.

Thank you,

Turtle

you would have to edit the actual source code, meaning the MQ4 file.

how would I go about doing that? Is it easy?’

Is there any Ea I could run on my mt4 platform to send me an email/alert?

Hmmm, it’s easy if you know how.

Unfortunately my MQL skills are rather limited, so hopefully an expert on this thread can supply the code.

Here is a little EA I wrote that sends you the info when a trade is made.

Multiupload.com - upload your files to multiple file hosting sites!

I can’t find the link but I asked youtube and found a 5 minute tutorial that shows you how.

kennyhubbard - thank you so much for the EA!!! This is exactly what I needed.

I haven’t tested it out yet because its the weekend and there are no market movements.

Could you possibly briefly explain - how I can set the EA up to email me whenever a trade is placed?

I managed to set up my email so that it receives alerts. Now im wondering how I can set up the Ea to forward the “placed trade information” to the email.

Settings are as follows :-

Show_Screen_FeedBack…comments on the chart showing EA activity & settings.
Show_Account_Detail…places broker, account number and account name in the email subject line. Helps if you trade multiple accounts.
Show_Equity…will provide balance and equity info whenever a trade is closed.

The following 5 settings allow you to select which types of trades you recieve an email about(should be pretty self-explanatory) :-
Show_Market
Show_Pending
Show_Executed_Pend
Show_Modified
Show_Closed
Show_Deleted

Expanded_Order_Info…provide some extra data like ticket number and datetime stamp.
Show_Trade_Result…shows number of pips on trade close.
Show_Profit…shows the profit/loss in account currency. Is forced to false if Show_Trade_Result is false.
Mail_Retry…if there is an error sending the email, it will try this many times before giving up. This one may be subject to future revision as I am uncertain how MT4 treats failed email, whether it ‘stores’ them for future sending, or just ignores it.
Delay…this is how long after the trade is made the EA will wait before sending the order. This is for the situation where you use an ECN broker and the stops are entered after the initial order. By waiting a few seconds you will receive an email that includes the stops.

Watch out for using the Show_Modified function together with something like a trailing stop EA…you will get a lot of emails.

Also make sure that your platform is configured to send emails. Select <Tools> <Options> and then <Email> tab. Enter the required info in the boxes and thats it.

Thank you so much kennyhubbard for the detailed explanation!

If I have the EA setup properly and my email settings with mt4 set up properly will it it automatically send me emails notifying me of all the changes BECAUSE I have the EA running or do I have to do something to the EA or the email settings so that the EA knows to alert the smtp server etc.

Thank you again

Nope, nothing further to be done.

The EA detects the change in order state and then checks if you want an email(the settings that you setup) and if so, sends the email…providing the email options are correctly setup in the terminal.

Perfect! Thank you so much for all your help. Ill let you know how it goes once the market open.

Good Luck Trading!

Hey kennyhubbard,

I have been getting text messages and emails alerts about my trades and everything works perfectly.

I was wondering if my computer was off would I still receive the “alerts” of would I only receive them once my mt4 is connected to the internet (computer on).

Thank you

Hi turtle,

Lol, so how would your EA be placing trades if the computer is off?

But seriously, if your computer is off the EA will not be running and therefore not send you emails.

If you are going to be using an EA to trade you should really consider using a VPS which runs 24/7.

K.

Yes your right - my head hasnt been thinking lately. Im just going to be leaving the computer on 24/7 lol. Hopefully I will only get good alerts and not bad ones from the EA :slight_smile:

Just curious - do you know of any vps that are free/easy to use? or do they all cost money?

Thank you for all your help

Hi turtle,

I think many brokers are offering free VPS as a perk. These would typically be subject to minimum deposits or trade volumes.

I also use a non-broker affiliated VPS which is SWVPS because it only costs me about $180 per year.

I use a higher end VPS through my broker(MB Trading) which they re-imburse me for provided I meet the trade volume requirements. This is about $70 per month and since the broker re-imburses me, I use this as a free way of funding my trading account on a monthly basis(like a savings plan).

Bottomline is you will have to scratch around and you will get 1001 opinions. I am pretty happy with my setup, so I don’t look around too much.

Hey there,
I tried to download the file you had on this article and it no longer exists. Could you upload it again?

Thanks!

wheres the ea please? this link is for a download manager I dont want to install thanks