I was originally suspect that the problem was coming from my sound file path.
I have the following code
string _soundRootPath; string _alarmOpenSession = "zSessionOpen.wav"; _soundRootPath = NinjaTrader.Core.Globals.InstallDir + @"\sounds\" ; string sndFile = _soundRootPath + _alarmOpenSession; Alert("id", Priority.High, "message", sndFile, 30, Brushes.Blue, Brushes.White);
"C:\\Program Files (x86)\\NinjaTrader 8\\\\sounds\\zSessionOpen.wav"
With the above code, I do not receive an alert in my alert window, nor do I hear a sound. To see if this is associated with a bad sound path, I replaced the Alert() statement above with the following ...
Alert("id", Priority.High, "message", "Alert1.wav", 30, Brushes.Blue, Brushes.White);
This is being implemented in a strategy
Comment