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

Add Custom Sounds

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

    Add Custom Sounds

    I have seen other posts where we are discouraged from changing anything in the NinjaTrader directories under 'Program Files'. However, I want to add custom sounds to be used within an indicator, and I can't see a way to specify an alternative file location.
    So, my question - Is it acceptable for me to add additional .wav files to the 'Program Files/NinjaTrader/Sounds' directory ?

    thanks,

    #2
    I suppose you're referring to the PlaySound method.

    You can specify any file with absolute path name in PlaySound. This file then may reside anywhere on your PC.

    Comment


      #3
      Thanks Dierk,
      Could you give a code example for PlaySound(), as the help guide contains the following regarding the .wav file:
      "Files must exist in the C:\Program Files\NinjaTrader 6\sounds folder".

      Comment


        #4
        Try something like PlaySound(@"c:\<whereever-you-want-to-locate-your-file");

        Comment


          #5
          that worked for me, thank you.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Tim-c, Today, 02:10 PM
          1 response
          7 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Taddypole, Today, 02:47 PM
          0 responses
          2 views
          0 likes
          Last Post Taddypole  
          Started by chbruno, 04-24-2024, 04:10 PM
          4 responses
          50 views
          0 likes
          Last Post chbruno
          by chbruno
           
          Started by TraderG23, 12-08-2023, 07:56 AM
          10 responses
          400 views
          1 like
          Last Post beobast
          by beobast
           
          Started by lorem, Yesterday, 09:18 AM
          5 responses
          25 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Working...
          X