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!
See more
See less

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);
        }
        BertrandNinjaTrader Customer Service

        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 ghoul, Today, 06:02 PM
                    3 responses
                    14 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by jeronymite, 04-12-2024, 04:26 PM
                    3 responses
                    44 views
                    0 likes
                    Last Post jeronymite  
                    Started by Barry Milan, Yesterday, 10:35 PM
                    7 responses
                    20 views
                    0 likes
                    Last Post NinjaTrader_Manfred  
                    Started by AttiM, 02-14-2024, 05:20 PM
                    10 responses
                    180 views
                    0 likes
                    Last Post jeronymite  
                    Started by DanielSanMartin, Yesterday, 02:37 PM
                    2 responses
                    13 views
                    0 likes
                    Last Post DanielSanMartin  
                    Working...
                    X