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 Geovanny Suaza, 02-11-2026, 06:32 PM
|
0 responses
597 views
0 likes
|
Last Post
|
||
|
Started by Geovanny Suaza, 02-11-2026, 05:51 PM
|
0 responses
343 views
1 like
|
Last Post
|
||
|
Started by Mindset, 02-09-2026, 11:44 AM
|
0 responses
103 views
0 likes
|
Last Post
by Mindset
02-09-2026, 11:44 AM
|
||
|
Started by Geovanny Suaza, 02-02-2026, 12:30 PM
|
0 responses
556 views
1 like
|
Last Post
|
||
|
Started by RFrosty, 01-28-2026, 06:49 PM
|
0 responses
555 views
1 like
|
Last Post
by RFrosty
01-28-2026, 06:49 PM
|

Comment