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

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'.
    BertrandNinjaTrader Customer Service

    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'.
        BertrandNinjaTrader Customer Service

        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 Spiderbird, Today, 12:15 PM
          0 responses
          4 views
          0 likes
          Last Post Spiderbird  
          Started by lorem, Yesterday, 09:18 AM
          3 responses
          13 views
          0 likes
          Last Post lorem
          by lorem
           
          Started by cmtjoancolmenero, Yesterday, 03:58 PM
          12 responses
          42 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by FrazMann, Today, 11:21 AM
          0 responses
          6 views
          0 likes
          Last Post FrazMann  
          Started by geddyisodin, Yesterday, 05:20 AM
          8 responses
          52 views
          0 likes
          Last Post NinjaTrader_Gaby  
          Working...
          X