Results 1 to 5 of 5
 1 Attachment(s)    

Thread: Add a sound alert to an indicator

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

    Default Add a sound alert to an indicator

    After extern parameters, add :

    Code:
    extern bool SoundAlert = true;
    Add this, in-line in the conditions for long signal and short signal :

    Code:
     && (SoundAlert == "true")
    Then where the signal is generated :

    Code:
    PlaySound("alert.wav");
    PLAYSOUND will play a wave file. You can add any .wav file you want to the SOUND folder in your MT4 files and call it up from the indicator.

  2. #2
    Member
    Join Date
    Jan 2009
    Location
    Germany
    Posts
    227

    Default

    Hi funyoo.

    can you in these Indicator integrate an alert ( sound )?
    The rule: if the M5, M15, M30 and H1 together have the signal " all buy" or "all sell" then start the alert.

    Best thanks
    J_l

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

    Default

    Quote Originally Posted by j_l View Post
    Hi funyoo.

    can you in these Indicator integrate an alert ( sound )?
    The rule: if the M5, M15, M30 and H1 together have the signal " all buy" or "all sell" then start the alert.

    Best thanks
    J_l
    Hi j_l,

    I'm not a fan of alerts,

    You should ask on TSD : Indicators with alert/signal - Page 222 - Forex Trading

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

    Talking

    Quote Originally Posted by funyoo View Post
    Hi j_l,

    I'm not a fan of alerts,

    You should ask on TSD : Indicators with alert/signal - Page 222 - Forex Trading
    What if the indicator does not have a long or buy signal defined?

    Can you add an alert when all the time frames in this indicator are green for long and red for short?

    TIA
    Attached Files Attached Files

  5. #5

    Default

    Hi funyoo,

    Could you show us a alert code, where by, when the TP or SL is hit a sound and pop alert appears and perhaps an option for the alert to reoccur until user acknowleges. Thanks in advance.

    Cheers.
    Quote Originally Posted by funyoo View Post
    After extern parameters, add :

    Code:
    extern bool SoundAlert = true;
    Add this, in-line in the conditions for long signal and short signal :

    Code:
     && (SoundAlert == "true")
    Then where the signal is generated :

    Code:
    PlaySound("alert.wav");
    PLAYSOUND will play a wave file. You can add any .wav file you want to the SOUND folder in your MT4 files and call it up from the indicator.

Similar Threads

  1. Program sound/pop up alert for this indicator
    By ppw123 in forum MQL programming
    Replies: 0
    Last Post: 05-30-2013, 03:49
  2. Force indicator with sound alert?
    By nirim123 in forum Ideas for expert advisors
    Replies: 1
    Last Post: 09-28-2012, 20:37
  3. Adding sound and email alert to Zig and Zag indicator
    By dsrtradefx in forum MQL programming
    Replies: 1
    Last Post: 05-22-2010, 17:05
  4. (Request) Sound/Pop up Alert
    By 94315jim in forum Indicators
    Replies: 1
    Last Post: 01-18-2010, 17:52
  5. Sound alert needed, please.
    By newboy in forum Indicators
    Replies: 0
    Last Post: 06-17-2009, 23:21

Tags for this Thread

add, forex, forex trading, indicator, indicators, metatrader, mt4, signal, time, trading

Posting Permissions

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