Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Problem with sounds... no sound.

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

    Problem with sounds... no sound.

    I've been trying to get PlaySound(); to work with little success.



    After trying to put it into a few custom indicators which were working otherwise, I wanted to see if it worked and just left it in the OnBarUpdate() section without any qualifiers to see if it would make a noise with a new bar but no luck.

    protectedoverridevoid OnBarUpdate()
    {

    PlaySound(
    @"C:\Program Files (x86)\NinjaTrader 6.5\sounds\Alert1.wav");
    }

    It seems to make the chart that I apply it to hang also (the bartimer stops).

    Any help would be appreciated.

    #2
    Hello,

    Thank you for your forum post.

    Are you on a 64 bit PC?

    Also, what version of NinjaTrader are you using? This is found in the Control Center->Help->About to the right of the NinjaTrader logo.


    I look forward to assisting you further.
    BrettNinjaTrader Product Management

    Comment


      #3
      Here is the info.

      Thanks again.

      Originally posted by NinjaTrader_Brett View Post
      Hello,

      Thank you for your forum post.

      Are you on a 64 bit PC?

      yes

      Also, what version of NinjaTrader are you using? This is found in the Control Center->Help->About to the right of the NinjaTrader logo.

      6.5.1000.16
      .NET Version: 2.0.50727.4952


      I look forward to assisting you further.

      Comment


        #4
        Hello,

        When you run this can you please check the log tab in the control center are any errors listed here?

        Also, just to double check this will no sound on historical data and must run on live data.
        BrettNinjaTrader Product Management

        Comment


          #5
          Thanks Brett.
          I figured it out.
          I was testing using real time data outside regular trading hours.
          This made the stream of ticks really slow.
          The alerts were triggering but sometimes on a serious delay because it seems as though the next tick has to come in in order for the bar to close and the alert to trigger. In after hours, there can be quite a space between each new event.

          Thanks for your help.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          595 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