• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

PlaySound not playing?

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

    PlaySound not playing?

    Hi there, sounds are not working through the PlaySound command. My little program is:

    protected override void Initialize()
    {
    CalculateOnBarClose = true;
    ClearOutputWindow();
    }

    protected override void OnBarUpdate()
    {
    Print("On bar close");
    PlaySound(@"C:\Program Files (x86)\NinjaTrader 7\sounds\Alert3.wav");
    }

    I get the print statement, but not the sound. Furthermore, I'm watching YouTube videos and playing sounds on my computer, so I know that sounds certainly coming out.

    Any thoughts? Thanks

    #2
    Hello timmbbo, and thank you for your question. When you attempt to play a sound, do you see any output in your log tab? I look forward to assisting further.
    Jessica P.NinjaTrader Customer Service

    Comment


      #3
      In light of information we learned in another thread, I am providing an excerpt from the help guide. Please let us know if there are any other ways we can help.

      Originally posted by http://ninjatrader.com/support/helpGuides/nt7/playsound.htm
      * Calls to this method are ignored on historical data, it will only work in real-time.

      Jessica P.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by uiwislth, Yesterday, 11:25 PM
      0 responses
      4 views
      0 likes
      Last Post uiwislth  
      Started by Steve L, Yesterday, 10:04 PM
      0 responses
      3 views
      0 likes
      Last Post Steve L
      by Steve L
       
      Started by marianfed, Yesterday, 09:47 PM
      0 responses
      5 views
      0 likes
      Last Post marianfed  
      Started by hir04068, Yesterday, 09:29 PM
      0 responses
      5 views
      0 likes
      Last Post hir04068  
      Started by iq200, 03-11-2018, 07:49 PM
      24 responses
      1,022 views
      0 likes
      Last Post mrlucky1x  
      Working...
      X