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 algospoke, 04-17-2024, 06:40 PM
          6 responses
          49 views
          0 likes
          Last Post algospoke  
          Started by arvidvanstaey, Today, 02:19 PM
          4 responses
          11 views
          0 likes
          Last Post arvidvanstaey  
          Started by samish18, 04-17-2024, 08:57 AM
          16 responses
          61 views
          0 likes
          Last Post samish18  
          Started by jordanq2, Today, 03:10 PM
          2 responses
          9 views
          0 likes
          Last Post jordanq2  
          Started by traderqz, Today, 12:06 AM
          10 responses
          21 views
          0 likes
          Last Post traderqz  
          Working...
          X