Thanks
Announcement
Collapse
Looking for a User App or Add-On built by the NinjaTrader community?
Visit NinjaTrader EcoSystem and our free User App Share!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less
Partner 728x90
Collapse
NinjaTrader
custom alarm
Collapse
X
-
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
-
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
-
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
-
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 ghoul, Today, 06:02 PM
|
3 responses
14 views
0 likes
|
Last Post Today, 06:43 PM | ||
Started by jeronymite, 04-12-2024, 04:26 PM
|
3 responses
44 views
0 likes
|
Last Post
by jeronymite
Yesterday, 10:10 PM
|
||
Started by Barry Milan, Yesterday, 10:35 PM
|
7 responses
20 views
0 likes
|
Last Post Today, 06:16 PM | ||
Started by AttiM, 02-14-2024, 05:20 PM
|
10 responses
180 views
0 likes
|
Last Post
by jeronymite
Today, 06:11 PM
|
||
Started by DanielSanMartin, Yesterday, 02:37 PM
|
2 responses
13 views
0 likes
|
Last Post Today, 05:26 PM |
Comment