PDA

View Full Version : Sound file for "NinjaTrader must close" error dialog


saltminer
03-05-2009, 08:14 AM
Hi guys,
when NinjaTrader announces it has detected an error and needs to close, there is a sound alert that is not one of the standard sounds in the Sounds folder.

I'd like to do something with that sound, as I want it to wake me up in the middle of the night (I'm auto-trading from Australia).
I'm technically fine with the sound manipulation, that's not a problem. I just need to know which sound file you are using and where it is.
Thanks,
saltminer

NinjaTrader_Dierk
03-05-2009, 08:36 AM
Unfortunately we do not support manipulation of NT sounds nor would we recommend it. However here is a hint: take a look at <installDir>/NinjaTrader6.5/sounds

saltminer
03-05-2009, 04:42 PM
Yes I'm familiar with this folder, and of the 17 sounds in there (and there are no hidden sounds that I can locate) the sound is not one of those.
After doing some listening to every wav file on my drive, I'm going to take a punt that the sound is "Windows Critical Stop" in C:\Windows\Media

I know you don't support me changing a system file, and good on you for it. However, I'm taking responsibility for my own actions here. A simple "yes, that's the file" from you will allow me do something about this audio alert noise upon a NinjaTrader crash. The current noise isn't enough to alert you if you are in the next room, yet I need it to wake me up from down the hall. All I'll do is replace the sound with an equally named file that is much longer and louder. Simple.

So, is this the sound triggered? (Please?)
saltminer

NinjaTrader_Dierk
03-05-2009, 04:45 PM
NT only controls the sounds in the folder mentioned in my previous post. All other sounds are .NET/windows sounds and not controled by NT.

zeller4
07-10-2009, 04:47 AM
dierk, or anybody else,

I have these possible pointers to the audio sound files:


PlaySound(Environment.GetFolderPath(Environment.Sp ecialFolder.MyDocuments) + "\\NinjaTrader 6.5\\Sounds\\Train.wav");
//



PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\OrderFilled.wav");


how do I use "getfolderpath" to find a sound file whether it's MyDocuments or ProgramFiles or ? <installDir>/NinjaTrader6.5/sounds

please indicate the correct syntax since one is using "\", the other uses "\\" and the other is "/" ?

thanks,
kirk

NinjaTrader_Bertrand
07-10-2009, 05:09 AM
Kirk, I would suggest checking into this thread here - http://www.ninjatrader-support2.com/vb/showthread.php?t=18152

zeller4
07-10-2009, 05:50 AM
Thanks Bertrand,

Now I'm using

Cbi.Core.UserDataDir.ToString()

which finds the correct NinjaTrader 6.5 directory.

What else do I need to add to find the sound or sounds directory in case there's a spelling difference from one machine to another?

Kirk

NinjaTrader_Josh
07-10-2009, 07:09 AM
Kirk,

Nothing will be different from there on out. The sounds folder will always be named the same and the actual .wav file will be whatever wav file you want to use.

zeller4
07-10-2009, 11:12 AM
Thanks Josh

bbj_anchor
08-19-2009, 02:00 PM
Assume standard set up/installation directories where do *.wav files go? Is there supposed to be a "sounds" subdirectory somewhere? please send me the pat that NT looks for. Thanks Jim

NinjaTrader_Bertrand
08-19-2009, 02:04 PM
Yes, it's in the default install directory - C:\Program Files\NinjaTrader 6.5\sounds