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

Indicator 'Alert' Sound files not firing.

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

    Indicator 'Alert' Sound files not firing.

    Hi Ya'll,

    With the most recent update I'm having issues on alert sounds. The pathways on the previous install were of course different. The following file path is valid, the sound in question is there, yet doesn't fire on execution. Other OnBarUpdate executables are all working as expected...

    if (soundAlert == true)
    PlaySound(@"C:\Program Files\NinjaTrader 8\sounds\MomentumAlert.wav");


    Thank You
    JM

    #2
    Hello JM,

    Is NinjaTrader making other sounds? (Can you manually place an order and hear the order submitted / filled sounds?)
    If not, is the NinjaTrader application muted in the windows sound mixer?

    Are you able to place Alert1.wav? (This would confirm if it is an issue with the sound file)

    May I confirm this is real-time and not historical?
    If you call Alert() one line before PlaySound() do you see the alert appear in the Alerts Log window?
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Chelsea my apologies ... I just realized I posted this in the NT7! I have NT 8. Would you like me to repost??

      Comment


        #4
        Hello JM,

        I've moved the thread to the NinjaTrader 8 Indicator Development section of the forums.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Here is the container:

          {
          Draw.ArrowUp(this, "EntryPoint"+CurrentBar, false, 0, Low [0] - (TickDistance * TickSize), Brushes.Yellow); Alert[0] = 7; // yellow up

          if (soundAlert == true)
          PlaySound(@"C:\Program Files\NinjaTrader 8\sounds\MomentumAlert.wav");
          }

          Comment


            #6
            Arrow drawing is firing as expected, just no sound.

            Comment


              #7
              Apologies ... Yes. all other system sounds are working.

              Comment


                #8
                Hello johnMoss,

                Please address the clarifying questions in post # 2.

                Are you call PlaySound() with Alert1.wav? (This would confirm if it is an issue with the sound file)

                May I confirm this is real-time and not historical?
                If you call Alert() one line before PlaySound() do you see the alert appear in the Alerts Log window?​


                Drawing objects are not real-time only. I have not inquiried about drawing objects as this would not give us the information we need.
                Chelsea B.NinjaTrader Customer Service

                Comment


                  #9
                  OK placed 'Alert1.wav' and confirmed it doesn't fire either. Realtime confirmed.

                  The Alert Value you see is unrelated. That is there for strategies to use as a unique numerical value for 'OnBarUpdate if' conditional statements.

                  In properties [amongst others] I have:


                  [Display(Name = "Play Sound Alert", Description = "Sound alerts activated", Order = 2, GroupName = "Parameters")]
                  public bool SoundAlert
                  {
                  get { return soundAlert; }
                  set { soundAlert = value; }
                  }​

                  [XmlIgnore]
                  [Browsable(false)]
                  public Series<double> Alert
                  {
                  get { return Values[0];}

                  }​

                  Comment


                    #10
                    The construct as currently written worked until the latest update.

                    Comment


                      #11
                      I've also confirmed the audio file is not corrupted.

                      Comment


                        #12
                        Hello johnMoss,

                        If you call Alert() one line before PlaySound() do you see the alert appear in the Alerts Log window?​
                        Chelsea B.NinjaTrader Customer Service

                        Comment


                          #13
                          No. But then again it's set to browser ignore in properties and it does it's job. It's for calling in strategies only and is functioning properly.
                          In other news, the sound all of a sudden is working. Go figure

                          Thank you for your time .

                          JM

                          Comment

                          Latest Posts

                          Collapse

                          Topics Statistics Last Post
                          Started by dcriador, Today, 12:06 PM
                          0 responses
                          6 views
                          0 likes
                          Last Post dcriador  
                          Started by dcriador, Today, 12:04 PM
                          0 responses
                          4 views
                          0 likes
                          Last Post dcriador  
                          Started by cutzpr, Today, 08:54 AM
                          0 responses
                          11 views
                          0 likes
                          Last Post cutzpr
                          by cutzpr
                           
                          Started by benmarkal, Today, 08:44 AM
                          0 responses
                          16 views
                          0 likes
                          Last Post benmarkal  
                          Started by Tin34, Today, 03:30 AM
                          2 responses
                          28 views
                          0 likes
                          Last Post Tin34
                          by Tin34
                           
                          Working...
                          X