Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alert sound doesnt work

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

    Alert sound doesnt work

    HI
    I have this line where i want to make sure audio alert is producing sound but its not.
    Alert("Alert" + unique, Priority.High, "Up trend line broken", "Alert2.wav", 100000, Brushes.Black, Brushes.Red);

    I try to modify it but there is an error and i cant figure out how to resolve it
    Alert("Alert" + unique, Priority.High, "Up trend line broken", "NinjaTrader.Core.Globals.InstallDir + @"\sounds\Alert1.wav"", 100000, Brushes.Black, Brushes.Red);

    #2
    Hello tkaboris,

    If you see an error you need to include that in your post so we know how to assist.

    To make an alert with a sound you need to format the alert command and path like shown in the help guide. You can copy and paste code from the help guide to test different concepts.

    Code:
    Alert("myAlert", Priority.High, "Reached threshold", NinjaTrader.Core.Globals.InstallDir+@"\sounds\Alert1.wav", 10, Brushes.Black, Brushes.Yellow);
    https://ninjatrader.com/support/helpGuides/nt8/alert.htm

    Comment


      #3
      Its asking for absolute path. Where do sounds located?
      soundLocation A string representing the absolute file path of the .wav file to play

      Comment


        #4
        Hello tkaboris,

        an absolute path is the full path to the file. Did you try using the sample from the help guide? That shows the correct code to use.

        Comment


          #5
          I am sorry it worked, i had extra double quotes placed...

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          605 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          351 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          105 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          560 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          561 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X