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 f.saeidi, Today, 05:56 AM
          1 response
          2 views
          0 likes
          Last Post Jltarrau  
          Started by Jltarrau, Today, 05:57 AM
          0 responses
          4 views
          0 likes
          Last Post Jltarrau  
          Started by Stanfillirenfro, Yesterday, 09:19 AM
          7 responses
          51 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Started by TraderCro, 04-12-2024, 11:36 AM
          4 responses
          70 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Mindset, Yesterday, 02:04 AM
          1 response
          15 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X