in my indicator when I detect a signal, I have the following code :
PlaySound("test.wav");
Print(Instrument.MasterInstrument.Name+" - found 2TL");
Alert("2Tl", NinjaTrader.Cbi.Priority.High, "2TL Found", "test.wav", 1, Color.Black, Color.Yellow);
The print statement prints correctly in the output window, but there is no sound from Playsound() and the Alert seems to do nothing. There are no error messages in the output window. The sound files have been placed in the install/Sounds folder, and I have also tried using absolute path names.
What could I be doing wrong?
Thanks.
Comment