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

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 RubenCazorla, 08-30-2022, 06:36 AM
      3 responses
      77 views
      0 likes
      Last Post PaulMohn  
      Started by f.saeidi, Yesterday, 12:14 PM
      9 responses
      23 views
      0 likes
      Last Post f.saeidi  
      Started by Tim-c, Today, 03:54 AM
      0 responses
      3 views
      0 likes
      Last Post Tim-c
      by Tim-c
       
      Started by FrancisMorro, Today, 03:24 AM
      0 responses
      5 views
      0 likes
      Last Post FrancisMorro  
      Started by Segwin, 05-07-2018, 02:15 PM
      10 responses
      1,772 views
      0 likes
      Last Post Leafcutter  
      Working...
      X