Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can't play Sounds

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

    Can't play Sounds

    I’m trying to play sounds but for some reason its not working. I’ve been searching for a solution but can't find an answer. I'm using:

    Alert("AlertOSStoch", NinjaTrader.Cbi.Priority.High, "OverSold Stochastic", "Connected.wav", 10, Color.Black, Color.Yellow);

    I’ve verified that the sound file is located in the Sound folder:
    Program Files(x86) /NinjaTrader7/Sounds
    I’ve tried Alert1.wav, Alert2.wav and now as you see Connected.wav.
    I can play the sound manually by clicking on it in the sounds folder and it works fine.
    I’ve verified using Visual Studio that the code loop is being exercised
    The alerts to show up in the Alerts window as expected.

    So What could I be missing?

    Regards,
    taddypole...

    #2
    Hello Taddypole,

    Thank you for your post.

    Do the normal sounds in NinjaTrader play? Such as the Compile sound when compiling in the NinjaScript Editor? Or the Connected sound when you actually connect to a data feed provider?

    Do you see an error listed in the Log tab of the NinjaTrader Control Center when this sound should play? If so what does this error list?

    I look forward to assisting you further.

    Comment


      #3
      Under Tools/Options/General/Sounds I had all boxes unchecked so I decided to check them all.

      I then tried compiling and found if the "Debug Mode" is checked, I get a sound when the Warning pops up about Debug being on. If I don't have the "Debug Mode" turned on, then there is no sound when compiling.

      I then tried connecting and unconnecting several times, but no sound.

      Again, if I go to the Sound folder and click on any sound .wav file, it plays that sound correctly.

      taddypole...

      Comment


        #4
        Hello Taddypole,

        Thank you for your response.

        Please go to your Windows Task Bar > locate the speaker icon for Volume > right click on this option > select Open Volume Mixer > when the Volume Mixer opens disconnect and reconnect in NinjaTrader to your data feed again to generate what should be a sound, at this point the NinjaTrader Icon should appear in the Volume Mixer > if the volume is turned down or muted turn it up to the desired level and test again for your sounds.

        Comment


          #5
          Thank you Patrick,

          That worked. But I don't understand why.
          Can you explain how it got that way?
          I put in quite a few hours trying to figure this out.
          Is it something I may have done?


          regards,
          taddypole...

          Comment


            #6
            Hello Taddypole,

            Thank you for your response.

            It can be that the volume was muted or turned down at one point.

            Comment


              #7
              So are you saying that at some point I may have muted Ninja Trader and that would cause the Icon not to show up in the Mixer in the future?

              I had checked the Mixer many times during troubleshooting and there was no Ninja Trader Icon. I was surprised to see the icon show up when I had the Mixer open and disconnected and reconnected Ninja Trader.

              Comment


                #8
                Hello Taddypole,

                Thank you for your response.

                Manual muting of the volume is usually what occurs. The Volume Mixer does not display an application until it makes a sound after the Volume Mixer is opened.

                Comment


                  #9
                  Thanks again Patrick,

                  Is this documented anywhere?
                  I did a lot of searching and didn't see anyone else having this problem.
                  Just wondering if I missed it somewhere.

                  taddypole...

                  Comment


                    #10
                    Hello Taddypole,

                    Thank you for your response.

                    I am not familiar with any documentation on this, for information on the Volume Mixer please visit the following link: http://windows.microsoft.com/en-us/w...-your-computer

                    Please let me know if I may be of further assistance.

                    Comment

                    Latest Posts

                    Collapse

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