Forex Factory
  • Login

  • Username: Password:
  • 10:04am

  • Search
  • Home

  • Forums

  • Trades

  • Calendar

  • News

  • Market

  • Brokers

Options

Search

Subscribe to Thread

Bookmark Thread

First Page First Unread Last Page Last Post

Printable Version

Similar Threads

alert e-mail. 11 replies

E-mail alert.. 1 reply

e-mail alert 1 reply

Help me programing mail alert. 5 replies

E-mail Alert for EA 2 replies

  • Platform Tech
  • /
  • Reply to Thread

EA trade e-mail alert?

  • Post# 1
  • Quote
  • First Post: Feb 10, 2007 8:52pm
  • slide
    Joined Nov 2006 | 294 Posts | Status: HI/LO
Hi,
I've been looking for this thing lately, and i'm getting frustrated, as I thought this should be something basic, but still cannot figure it out:

How can I get an e-mail alert or a *beep* on my MT4 mobile, when my EA enters a trade on MT4 desktop? Same for closing a trade, but opening is my main concern now, there must be a way to get notified..;
"Everybody needs money. That's why they call it money" - Danny De Vito
  • Post# 2
  • Quote
  • Feb 10, 2007 9:40pm
  • PabloPL
    Joined Feb 2007 | 18 Posts | Status: Used Cars DLR - Seriously
Yes there is a way.

On the desktop run your trading script without any modification.
In thesame time on your mobile run something like that:

Inserted Code
int lastNumOfTrades=-1;
 
int start() {
   if (lastNumOfTrades==-1)
      lastNumOfTrades=OrdersTotal();
 
   if (lastNumOfTrades!=OrdersTotal()) {
      PlaySound("alert5.wav");
      lastNumOfTrades=OrdersTotal();
   }
}
Should work fine

If You want different sound for closing and opening trade You can do a little modification:

Inserted Code
int lastNumOfTrades=-1;
int start() {
   if (lastNumOfTrades==-1)
      lastNumOfTrades=OrdersTotal();
   if (lastNumOfTrades!=OrdersTotal()) {
      if (lastNumOfTrades<OrdersTotal())
         PlaySound("close.wav");
      else
         PlaySound("open.wav");
      lastNumOfTrades=OrdersTotal();
   }
}
  • Post# 3
  • Quote
  • Feb 10, 2007 10:04pm
  • slide
    Joined Nov 2006 | 294 Posts | Status: HI/LO
Thanks Pablo, but I don't think that scripts on mobile is possible How would you compile/run it?

I would rather look for a similar script that would set a trade e-mail alert on MT4 desktop, which then I can receive on mobile/pDA.
"Everybody needs money. That's why they call it money" - Danny De Vito
  • Post# 4
  • Quote
  • Feb 10, 2007 10:21pm
  • PabloPL
    Joined Feb 2007 | 18 Posts | Status: Used Cars DLR - Seriously
Quoting slide
Thanks Pablo, but I don't think that scripts on mobile is possible How would you compile/run it?
Why ?? I havent run MT4 on mobile, but i think it could be possible to run it as a simple EAs - am I wrong?


On the other hand You can setup email notification in your desktop version of MT. Just add SendMail function after each ordered ticket. Of course first you must setup MT4 for sending emails: Tools->Options->EMail tab.
  • Post# 5
  • Quote
  • Feb 10, 2007 11:43pm
  • tesla
    Joined Oct 2006 | 532 Posts | Status: Friendly Neighborhood Programmer
I don't use MetaTrader Mobile, but my understanding is that it sucks the battery down pretty quickly. I'd suggest going the email/sms route, that's how I have my alerts set up.
  • Post# 6
  • Quote
  • Feb 10, 2007 11:48pm
  • slide
    Joined Nov 2006 | 294 Posts | Status: HI/LO
Quoting PabloPL
Why ?? I havent run MT4 on mobile, but i think it could be possible to run it as a simple EAs - am I wrong?

On the other hand You can setup email notification in your desktop version of MT. Just add SendMail function after each ordered ticket. Of course first you must setup MT4 for sending emails: Tools->Options->EMail tab.
Unfortunately no scripts or custom indicators can be run on mobile;
SendMail sounds promising, could this function be included in the EA in a piece of codesimilar to your sound example above?
I do have my terminal able to send e-mail;
"Everybody needs money. That's why they call it money" - Danny De Vito
  • Post# 7
  • Quote
  • Feb 11, 2007 12:04am | Edited at 12:09am – addition
  • slide
    Joined Nov 2006 | 294 Posts | Status: HI/LO
Quoting tesla
I don't use MetaTrader Mobile, but my understanding is that it sucks the battery down pretty quickly. I'd suggest going the email/sms route, that's how I have my alerts set up.
That's what i am looking for also, I want to be alerted when a ticket is opened, while I am away from the terminal. The mobile MT then comes handy, because I cannot stay by computer all the time, and so I can quickly close or modify a trade on the run (EA babysitting, sorta). Yes MT mobile it does suck a lot of power, but you don't have to keep it running all the time, just when you get the alerts . Big thanks for your trend alert EA, btw!!
"Everybody needs money. That's why they call it money" - Danny De Vito
  • Post# 8
  • Quote
  • Feb 11, 2007 12:16am
  • tesla
    Joined Oct 2006 | 532 Posts | Status: Friendly Neighborhood Programmer
Quoting slide
Big thanks for your trend alert EA, btw!!
You're very welcome. I'm glad it was such a hit. Makes me feel all warm and fuzzy.
  • Post# 9
  • Quote
  • Apr 27, 2007 1:18pm
  • richy
    Joined Mar 2006 | 168 Posts | Status: Member
Quoting tesla
I don't use MetaTrader Mobile, but my understanding is that it sucks the battery down pretty quickly. I'd suggest going the email/sms route, that's how I have my alerts set up.

hello tesla

could you please show me how to set up the sms alerts?

thanks so much.
  • Post# 10
  • Quote
  • Apr 27, 2007 1:35pm
  • tradeigel
    Joined Jun 2006 | 385 Posts | Status: Trader and Programmer
sms alerts would be an Email alert sent to your cell. Of course, you have to set up the emailContacts in MT4.
  • Post# 11
  • Quote
  • Apr 27, 2007 2:14pm
  • richy
    Joined Mar 2006 | 168 Posts | Status: Member
i see thanks... so there's no direct way to send sms
  • Post# 12
  • Quote
  • Last Post: Dec 14, 2009 9:07am
  • cooltrader28
    Commercial Member | 97 Posts | Joined Mar 2008
Just add SendMail function after each ordered ticket.#

hi can you please explain this to me ....
_also it will be easy to create indicator email send funktions, right ?


1. SendMail function to order ticket =?
( Ea opens a trade send email to : )

2.
SendMail function to indicator value =?
Standard Indicator MAcd crosses 0 Line )

since i cant code please tell the whole procedure will help a lot of traders....!
Thread Tools Search this Thread
Show Printable Version Show Printable Version
Email This Thread Email This Thread
Search this Thread:

Advanced Search

  • Platform Tech
  • /
  • EA trade e-mail alert?
  • Reply to Thread
0 traders viewing now

©2013 Forex Factory, Inc. / Terms of Use / Privacy Policy

Forex Factory® is a registered trademark.

Connect

  • Facebook
  • Twitter
  • RSS

Company

  • About FF
  • FF Blog
  • Careers at FF
  • Advertising
  • Contact FF

Products

  • Forums
  • Trades
  • Calendar
  • News
  • Market
  • Brokers
  • Trade Explorer

Website

  • Homepage
  • Search
  • User Guide
  • Member List
  • Online Now
  • Report a Bug