Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Added sound files are not playing ?!

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

    Added sound files are not playing ?!

    I downloaded two sound files (long.wav and short.wav) to C:\Program Files\NinjaTrader 6.5\sounds
    and included them in my existing indicator.
    (see extract hereunder)
    Then i clicked on "compile" and closed the edit-window.

    Now the sounds are not playing when the conditions are met ?
    What did i do wrong ?
    Programming fault ?

    The indicator is attached.

    PS. Please detailed instructions, i am not a programmer !

    Gilbert.


    double val = Low[bar+1] - ( TickSize * ArrowDisplacement );
    DrawArrowUp(CurrentBar.ToString(),1, val , barColorUp );
    //data[ data.Count - 1] = val * -1;
    //setData( data, bar, val * -1 );
    if (soundon && FirstTickOfBar){
    PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\long.wav");
    }
    }
    //else if( lastDirection > direction )
    else if (Signal[0] == -1 && Signal[1] != -1)
    {
    double val = High[bar+1] + ( TickSize * ArrowDisplacement );
    DrawArrowDown(CurrentBar.ToString(),1, val, barColorDown );
    if (soundon && FirstTickOfBar){
    PlaySound(@"C:\Program Files\NinjaTrader 6.5\sounds\short.wav");
    Attached Files

    #2
    Gilbert, welcome to the forums - did you reload the indicator fresh after this programming change? You could do so by right clicking on the chart and selecting 'Reload NinjaScript'.

    Comment


      #3
      Originally posted by NinjaTrader_Bertrand View Post
      Gilbert, welcome to the forums - did you reload the indicator fresh after this programming change? You could do so by right clicking on the chart and selecting 'Reload NinjaScript'.
      Originaly there was only this text i.s.o. my text :

      PlaySound(WaveLongFileName);
      and
      PlaySound(WaveShortFileName);

      and in the parameter setting window, it seemed that you simply had to put the name of your wav.file

      but that also did not result in a sound playing...?

      Am helpless !

      Comment


        #4
        Unfortunately I'm not familiar with your custom indicator(s), so best would be to contact the original author of those - do you see any errors in the log tab of the Control Center? Please also check if there's a toggle to turn sounds on / off and ensure it's set to 'enabled'.

        Comment


          #5
          Originally posted by NinjaTrader_Bertrand View Post
          Unfortunately I'm not familiar with your custom indicator(s), so best would be to contact the original author of those - do you see any errors in the log tab of the Control Center? Please also check if there's a toggle to turn sounds on / off and ensure it's set to 'enabled'.
          Thanks for helping but i contacted the author now.

          Gilbert.

          (Belgium)

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          568 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          330 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
          548 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          548 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X