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 Segwin, 05-07-2018, 02:15 PM
      14 responses
      1,789 views
      0 likes
      Last Post aligator  
      Started by Jimmyk, 01-26-2018, 05:19 AM
      6 responses
      838 views
      0 likes
      Last Post emuns
      by emuns
       
      Started by jxs_xrj, 01-12-2020, 09:49 AM
      6 responses
      3,294 views
      1 like
      Last Post jgualdronc  
      Started by Touch-Ups, Today, 10:36 AM
      0 responses
      13 views
      0 likes
      Last Post Touch-Ups  
      Started by geddyisodin, 04-25-2024, 05:20 AM
      11 responses
      63 views
      0 likes
      Last Post halgo_boulder  
      Working...
      X