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

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
    Paul H.NinjaTrader Customer Service

    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 yertle, Yesterday, 08:38 AM
      7 responses
      28 views
      0 likes
      Last Post yertle
      by yertle
       
      Started by bmartz, 03-12-2024, 06:12 AM
      2 responses
      20 views
      0 likes
      Last Post bmartz
      by bmartz
       
      Started by funk10101, Today, 12:02 AM
      0 responses
      4 views
      0 likes
      Last Post funk10101  
      Started by gravdigaz6, Yesterday, 11:40 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by MarianApalaghiei, Yesterday, 10:49 PM
      3 responses
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Working...
      X