Thanks
Announcement
Collapse
No announcement yet.
Partner 728x90
Collapse
NinjaTrader
custom alarm
Collapse
X
-
Hello Ryan,Originally posted by NinjaTrader_RyanM View PostHello futuros,
You can edit the indicator and add a PlaySound() command during certain conditions.
http://www.ninjatrader.com/support/h.../playsound.htm
This indicator came with this alert:
{
Alert("Bear Alert", Priority.High, "Bear Breakout", "Alert2.wav", 100000, Color.White, Color.Blue);
}
and I'm trying to change with my own sound like this:
{
Alert("Bull Alert", Priority.High, "BullBreakout", "C:\users\DELL\Documents\ufoup.wav", 100000, Color.White, Color.Blue);
}
but I got an error: Unrecognized escape sequence
what I'm doing wrong?
Thanks
Comment
-
I made the changes, compile and got NO error, but the alert keeps playing the previuos sound, do I need to close NT and reopen?Originally posted by NinjaTrader_Bertrand View PostWould you get the same error reported if you tried the below snippet?
Code:{ Alert("Bull Alert", Priority.High, "BullBreakout", @"C:\users\DELL\Documents\ufoup.wav", 100000, Color.White, Color.Blue); }
Comment
-
Ryan, I got the signal but the alert did not play ANY sound.Originally posted by eDanny View PostYou would need to refresh (F5) your chart for the change to take place.
Dan
Question: the original code just says "Alarm2.wav", so when you dont have the path (like C:\whatever\Documents\*.wav) where (in what folder) does NT looks for the wav file? May be I should put there the wav file.
Comment
-
Sorry but in Program files there isn't any "NinjaTrader" folder, in Documents there is a NinjaTrader 6.5 folder but there isn't any "sounds" folder, may be some place else?Originally posted by NinjaTrader_RyanM View PostIf you don't specify a path, the default sound path is C:\Program Files\NinjaTrader\sounds
You can place the sound file in this directory, or specify the whole path in this field.
Comment
Latest Posts
Collapse
| Topics | Statistics | Last Post | ||
|---|---|---|---|---|
|
Started by Hwop38, 05-04-2026, 07:02 PM
|
0 responses
166 views
0 likes
|
Last Post
by Hwop38
05-04-2026, 07:02 PM
|
||
|
Started by CaptainJack, 04-24-2026, 11:07 PM
|
0 responses
321 views
0 likes
|
Last Post
by CaptainJack
04-24-2026, 11:07 PM
|
||
|
Started by Mindset, 04-21-2026, 06:46 AM
|
0 responses
246 views
0 likes
|
Last Post
by Mindset
04-21-2026, 06:46 AM
|
||
|
Started by M4ndoo, 04-20-2026, 05:21 PM
|
0 responses
350 views
0 likes
|
Last Post
by M4ndoo
04-20-2026, 05:21 PM
|
||
|
Started by M4ndoo, 04-19-2026, 05:54 PM
|
0 responses
179 views
0 likes
|
Last Post
by M4ndoo
04-19-2026, 05:54 PM
|

Comment