Alert(CurrentBar.ToString()+VolumeThreshold.ToString()+Bars.Period.ToString()+Instrument.FullName, NinjaTrader.Cbi.Priority.Medium, Instrument.MasterInstrument.Name+" "+Bars.Period.Value+Bars.Period.Id+": Volume Alert "+VolumeThreshold, "C:\Program Files (x86)\NinjaTrader 7\sounds\newalert.wav", int.MaxValue, Color.Black, Color.Yellow);
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
Alerts and path to sound files
Collapse
X
-
Alerts and path to sound files
I'm wanting to set the following alert, however NT will not compile the WAV file path and reports the error: Unrecognized escape sequence CS1009:
I didn't used to require the path with the 32 bit version, but with the 64 bit version, NT can't locate the sound files.Code:Tags: None
-
Hello dsfalc,
You can add @ character in front of path here:
Code:Alert(CurrentBar.ToString()+VolumeThreshold.ToString()+Bars.Period.ToString()+Instrument.FullName, NinjaTrader.Cbi.Priority.Medium, Instrument.MasterInstrument.Name+" "+Bars.Period.Value+Bars.Period.Id+": Volume Alert "+VolumeThreshold, @"C:\Program Files (x86)\NinjaTrader 7\sounds\newalert.wav", int.MaxValue, Color.Black, Color.Yellow);
Ryan M.NinjaTrader Customer Service
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by kinfxhk, 07-14-2026, 09:39 AM
|
0 responses
110 views
0 likes
|
Last Post
by kinfxhk
07-14-2026, 09:39 AM
|
||
|
Started by kinfxhk, 07-13-2026, 10:18 AM
|
0 responses
96 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 10:18 AM
|
||
|
Started by kinfxhk, 07-13-2026, 09:50 AM
|
0 responses
73 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 09:50 AM
|
||
|
Started by kinfxhk, 07-13-2026, 07:21 AM
|
0 responses
93 views
0 likes
|
Last Post
by kinfxhk
07-13-2026, 07:21 AM
|
||
|
Started by kinfxhk, 07-11-2026, 02:11 AM
|
0 responses
70 views
0 likes
|
Last Post
by kinfxhk
07-11-2026, 02:11 AM
|

Comment