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 PaulMohn, Today, 03:49 AM
          0 responses
          7 views
          0 likes
          Last Post PaulMohn  
          Started by inanazsocial, Today, 01:15 AM
          1 response
          9 views
          0 likes
          Last Post NinjaTrader_Jason  
          Started by rocketman7, Today, 02:12 AM
          0 responses
          10 views
          0 likes
          Last Post rocketman7  
          Started by dustydbayer, Today, 01:59 AM
          0 responses
          4 views
          0 likes
          Last Post dustydbayer  
          Started by trilliantrader, 04-18-2024, 08:16 AM
          5 responses
          23 views
          0 likes
          Last Post trilliantrader  
          Working...
          X