Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Alert '.wav' file not playing

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

    Alert '.wav' file not playing

    I am trying to use the ninjascript Alert function in NT 8 (used it many times in NT 7 code).
    However, it is not playing the sound.
    I have a print statement showing the sound file it should be playing (Alert1.wav) and that looks good in the output window.
    I see the line show up in the Alerts Log window with proper color and warning level so that proves the Alert method is firing correctly.
    But I do not hear the wav file playing.
    I can hear other NT 8 sounds like 'Order Filled', etc.

    Here is the block of code:
    Code:
    if (arrowDirection > 0)
    {
      Print(Time[0] + ", playing audio alert: Alert1.wav");
      Alert("audioAlert", Priority.Low, "Potential LONG", "Alert1.wav", 20, Brushes.LightSkyBlue, Brushes.Black);
    }
    else
    {
      Print(Time[0] + ", playing audio alert: Alert1.wav");
      Alert("audioAlert", Priority.Low, "Potential SHORT", "Alert1.wav", 20, Brushes.PaleVioletRed, Brushes.Black);
    }
    Any suggestions?

    Gary

    #2
    Hi Gary,

    Thanks for your post.

    In NinjaTrader8 you will need to provide a string with the sound file name and location. Please see the example in the helpguide: http://ninjatrader.com/support/helpG...-us/?alert.htm

    Comment


      #3
      Oops, I missed that in the code breaking changes list.

      Thanks Paul.

      Gary

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      607 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      353 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