HELP Needed Please with delay in playing soundfile.

 

I would like to add code in the indicator below so it delays the playing of the soundfile so that it doesnt sound like a stuck record.


https://c.mql5.com/3/137/Horizontal_Alert_Lines.mq4


Thanks in advance

 
  1. Don't double post! You already had this thread open.
              General rules and best pratices of the Forum. - General - MQL5 programming forum 2017.07.19

  2. Please use the link button Use the link button (Control+K) See the difference? https://c.mql5.com/3/137/Horizontal_Alert_Lines.mq4
              Messages Editor

  3. You don't want a delay. Stop triggering on a signal. Act on a change of signal.
              MQL4 (in Strategy Tester) - double testing of entry conditions - MQL5 programming forum #1 2017.12.12

  4. Or stop using that script and just set an alert at the price(s) you want. Chart → Right-click → TradingAlert.

  5. You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your problem.
              No free help 2017.04.21

    Or pay someone. Top of every page is the link Freelance.
              Hiring to write script - General - MQL5 programming forum 2018.05.12

 

add

      Sleep(500);
<ex4 file deleted>
 
Samuel Akinbowale: add

Indicator's can not sleep.

dmdacosta: I would like to add code in the indicator below
 
dmdacosta:

I would like to add code in the indicator below so it delays the playing of the soundfile so that it doesnt sound like a stuck record.

Do not double post!

I have deleted your other posts.

 
Samuel Akinbowale:

add

<ex4 file deleted>

Thankyou!

Reason: