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 DynamicTest, Today, 11:18 PM
          0 responses
          2 views
          0 likes
          Last Post DynamicTest  
          Started by dcriador, Today, 01:43 AM
          3 responses
          19 views
          0 likes
          Last Post dcriador  
          Started by smartromain, Today, 10:50 PM
          0 responses
          3 views
          0 likes
          Last Post smartromain  
          Started by popecapllc, 08-09-2023, 07:42 PM
          10 responses
          1,366 views
          0 likes
          Last Post BartMan
          by BartMan
           
          Started by jbays87, Today, 09:46 PM
          0 responses
          6 views
          0 likes
          Last Post jbays87
          by jbays87
           
          Working...
          X