Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

custom alarm

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    custom alarm

    How can I add a custom wav (sound) file as an alarm to an indicator?

    Thanks

    #2
    Hello futuros,

    You can edit the indicator and add a PlaySound() command during certain conditions.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      Hello futuros,

      You can edit the indicator and add a PlaySound() command during certain conditions.
      http://www.ninjatrader.com/support/h.../playsound.htm
      Hello Ryan,
      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


        #4
        Would 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


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Would 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);
          }
          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?

          Comment


            #6
            You would need to refresh (F5) your chart for the change to take place.

            Dan
            eDanny
            NinjaTrader Ecosystem Vendor - Integrity Traders

            Comment


              #7
              Originally posted by eDanny View Post
              You would need to refresh (F5) your chart for the change to take place.

              Dan
              Ryan, I got the signal but the alert did not play ANY sound.

              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


                #8
                If 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.
                Ryan M.NinjaTrader Customer Service

                Comment


                  #9
                  Originally posted by NinjaTrader_RyanM View Post
                  If 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.
                  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?

                  Comment


                    #10
                    If you're using a 64 bit system, it may be:
                    C:\Program Files (x86)\NinjaTrader 6.5\sounds
                    Ryan M.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    593 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    343 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    103 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    556 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    554 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X