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 dward123, 01-02-2024, 09:59 PM
      3 responses
      159 views
      0 likes
      Last Post bjunaid
      by bjunaid
       
      Started by ETFVoyageur, Today, 04:00 PM
      1 response
      7 views
      0 likes
      Last Post ETFVoyageur  
      Started by AaronKTradingForum, Today, 03:44 PM
      1 response
      8 views
      0 likes
      Last Post AaronKTradingForum  
      Started by Felix Reichert, 04-26-2024, 02:12 PM
      11 responses
      77 views
      0 likes
      Last Post Felix Reichert  
      Started by junkone, 04-28-2024, 02:19 PM
      7 responses
      83 views
      1 like
      Last Post junkone
      by junkone
       
      Working...
      X