+ Reply to Thread
Results 1 to 6 of 6
 1 Attachment(s)    

Thread: Add an email alert to an indicator

  1. #1
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,455

    Default Add an email alert to an indicator

    Where the signal is supposed to appear, you have simply to add this line code at the next line :

    For buy alert :

    Code:
    SendMail ("Name of the indicator: ",Symbol()+" "+Period()+": Buy Alert @ "+DoubleToStr(Bid,Digits));
    For sell alert :

    Code:
    SendMail ("Name of the indicator: ",Symbol()+" "+Period()+": Sell Alert @ "+DoubleToStr(Bid,Digits));
    SENDMAIL will send out email alerts, as long as you have your platform setup to access your email account and use it to send alerts.

  2. #2
    Junior Member
    Join Date
    Jan 2009
    Posts
    4

    Default

    Hello Funyoo, thanks for that codes. They are working pritty good. They sent me hundrets of mails.
    Question, is there a trick that only one emails is sent?

  3. #3
    Administrator funyoo's Avatar
    Join Date
    Sep 2008
    Posts
    7,455

    Default

    Quote Originally Posted by trade-ws View Post
    Hello Funyoo, thanks for that codes. They are working pritty good. They sent me hundrets of mails.
    Question, is there a trick that only one emails is sent?
    Hi trade-ws,

    See here to limit the number of emails : http://www.tradingsystemforex.com/3287-post2.html

  4. #4
    Junior Member
    Join Date
    Jan 2009
    Posts
    4

    Default

    Dear funyoo, thanks for the quick reply. trade-ws

  5. #5
    Junior Member
    Join Date
    May 2010
    Posts
    1

    Default

    Quote Originally Posted by funyoo View Post
    Where the signal is supposed to appear, you have simply to add this line code at the next line :

    For buy alert :

    Code:
    SendMail ("Name of the indicator: ",Symbol()+" "+Period()+": Buy Alert @ "+DoubleToStr(Bid,Digits));
    For sell alert :

    Code:
    SendMail ("Name of the indicator: ",Symbol()+" "+Period()+": Sell Alert @ "+DoubleToStr(Bid,Digits));
    SENDMAIL will send out email alerts, as long as you have your platform setup to access your email account and use it to send alerts.
    thanks funyoo for the great work! but please how do i set up my platform to access my email account so that I can receive mails from SENMAIL alerts.

  6. #6
    Junior Member
    Join Date
    Jan 2009
    Location
    germany
    Posts
    9

    Default

    can you help me

    attached indicator send an popup and changing "alert" to "sendmail" wont work compiling

    do you know the solution ?
    Attached Files

+ Reply to Thread

Similar Threads

  1. Add a pop-up alert to an indicator
    By funyoo in forum MQL programming
    Replies: 6
    Last Post: 04-25-2011, 22:01
  2. Add a sound alert to an indicator
    By funyoo in forum MQL programming
    Replies: 4
    Last Post: 08-29-2009, 07:05
  3. Rsi-ema Alert
    By TREND RIDER in forum Indicators
    Replies: 10
    Last Post: 03-01-2009, 21:44
  4. Add Alert to AlaskanPipAssassinMod
    By TREND RIDER in forum Indicators
    Replies: 6
    Last Post: 02-05-2009, 12:25
  5. Demark Lines Indicator + Email Alert
    By bnbb2004 in forum Indicators
    Replies: 0
    Last Post: 12-03-2008, 12:40

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts