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

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 drnoggin, Today, 12:19 PM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by synthhokie, Today, 12:00 PM
      1 response
      16 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by moneyexe, Today, 11:22 AM
      1 response
      12 views
      0 likes
      Last Post NinjaTrader_Jesse  
      Started by stevec1824, Today, 11:00 AM
      2 responses
      8 views
      0 likes
      Last Post stevec1824  
      Started by sofortune, Today, 10:05 AM
      2 responses
      14 views
      0 likes
      Last Post sofortune  
      Working...
      X