Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stumped.. Debug Suggestions?

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

    Stumped.. Debug Suggestions?

    This code block works if compiled v6.5 run in v6.5.

    Written as a new indicator, and compiled in v7 run in v7, only the else line works....

    the crossover lines never execute.

    trigger and trend are DataSeries that hold the values i have computed and set into the plots.

    if (CrossAbove(trigger, trend,1))
    {
    PlaySound(
    @"C:\Program Files\NinjaTrader 7\sounds\Attention_Cross.wav");
    }
    elseif (CrossBelow(trigger, trend,1))
    {
    PlaySound(
    @"C:\Program Files\NinjaTrader 7\sounds\Attention_Cross.wav");
    }
    else
    {
    PlaySound(
    @"C:\Program Files\NinjaTrader 7\sounds\A_Bar_Has_Closed.wav");
    }

    Any suggestions?

    #2
    If I change Attention_Cross.wav to Alert1.wav it works.

    I have checked spelling, location etc.... there is no reason I can see that it won't play.

    Is there a maximum file size that can be used here?

    Alert1 is 146KB

    Attention_Cross is 845KB... its longer so it will wake me up. It runs 27 seconds.

    Any ideas?

    Comment


      #3
      Hello Crassius,

      Check the log tab of control center when you run the indicator. If there are any issues playing a particular sound file, it should be noted here.
      Ryan M.NinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      576 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      334 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      553 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      551 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X