View Full Version : Alert()
Not sure what I'm doing wrong here. Can't seem to link the wave file properly.
Any help would be appreciated.
edit: Picture isn't coming out properly. The error msg is "Unrecognized escape sequence" in reference to the file location.
NinjaTrader_Ray
05-26-2007, 03:10 PM
Please paste in the code line that gives you the error.
Alert("YM_REVERSAL_1M_LONG", NinjaTrader.Cbi.Priority.High, "YM REVERSAL 1M GO LONG", "C:\Program Files (x86)\NinjaTrader 6\sounds\Alert4.wav" , 10, Color.Black, Color.Yellow);
NinjaTrader_Ray
05-26-2007, 08:18 PM
Please use:
Alert("YM_REVERSAL_1M_LONG", NinjaTrader.Cbi.Priority.High, "YM REVERSAL 1M GO LONG", "Alert4.wav" , 10, Color.Black, Color.Yellow);
Great thanks. It works now.
I think the documentation might need to be changed or maybe it doesn't?
Here's the example provided NT.
Examples
// Generates an alert
Alert("myAlert", NinjaTrader.Cbi.Priority.High, "Reached threshold", "C:\Program Files\MySounds\alert.wav", 10, Color.Black, Color.Yellow);
NinjaTrader_Ray
05-27-2007, 09:21 AM
Documentation has been updated for next release. Thanks for bringing this to our attention.