PlaySound("alert.wav");
instead of
void PlaySound("alert.wav");
BTW
WHRoeder:
Volume==1 is not reliable. Volume can skip numbers
high==open&& high=close... isn't reliable. Start is called when anything changes not just price, like spread, MarketInfo(Symbol(), MODE_STOPLEVEL), etc
Bars == bars.prev isn't reliable. Bars stops changing once max bars in chart is reached.
Time[0] is reliable
int start(){ static datetime Time0; bool newBar = Time0 < Time[0]; if (!newBar) return(0); Time0 = Time[0];

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
This is the first sound Alert I have ever put in a code. The simple things always turn out to be a bug for me.
I looked at an example but I didn't see any variable for Playsound. Would help if I could make this work. I have
some other issues that I will Post later.
Thanks,
JimTrader1