reembering the variables and locations are not easy and we are wasting several minutes on each case we want to code alerts/playsounds.
please make a shorthand function builtin, say method (inside NinjaScriptBase) which will have overloads:
SoundFileLocation(SoundFileNameEnum sName)
and
SoundFileLocation(string soundName)
so, instead of :
`PlaySound(NinjaTrader.Core.Globals.InstallDir + @"\sounds\Alert1.wav");`
we could easily call:
PlaySound( SoundFileLocation("Alert1") );
or
PlaySound( SoundFileLocation(SoundFileNameEnum.Alert1) );
Comment