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

Will audio work for data feed providers(CQG)

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

    Will audio work for data feed providers(CQG)

    I having audio part in my indicator.
    But when I connect to data feed providers(CQG), why the audio part cannot work.

    Can i know why ??

    #2
    Hello Nick123,

    Yes audio should work, What audio are you referring to, is that PlaySound or one of the default sounds configured in the options menu?

    If this is an audio you are playing yourself, are you using a Print or some means to know the condition to play the audio was true?

    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Alert("Down Alert " + CurrentBar, Priority.High, "Down Alert at Bar " + CurrentBar, SoundFile, 10, Brushes.Black, Brushes.Yellow);

      Sound folder is a path,
      ** It was correct one, dont worry about that.

      Just curious when connect to data feed providers(CQG), then it cannot work already,

      any idea about it ??

      Comment


        #4
        Hello Nick123,

        From the given detail I couldn't say what may be wrong. I would likely suggest making a test script that uses hard coded variables like the help guide sample and then test that.

        Code:
        Alert("myAlert", Priority.High, "Reached threshold", NinjaTrader.Core.Globals.InstallDir+@"\sounds\Alert1.wav", 10, Brushes.Black, Brushes.Yellow);
        You could try placing this in OnBarUpdate with no conditions on a 10 second chart to make sure that works. If it does not we could further review the situation. You can otherwise try adding Prints around the alert to make sure your script is reaching that point in logic.




        I look forward to being of further assistance.

        JesseNinjaTrader Customer Service

        Comment


          #5
          I have made sure it reach that point as i have a draw arrow in that condition together with the audio.

          Comment


            #6
            Code:
            if (condition)
            {
            Draw arrow here
            Alert("Down Alert " + CurrentBar, Priority.High, "Down Alert at Bar " + CurrentBar, SoundFile, 10, Brushes.Black, Brushes.Yellow);
            }
            The arrow show in the right place, just the audio part didnt work.

            Comment


              #7
              Hello soon123,

              Thanks for that detail.

              Did you also try the sample from the help guide with a default sound or a test script on a 10 second chart to check if this somehow relates to your alert syntax?


              Please let me know if I may be of further assistance.
              JesseNinjaTrader Customer Service

              Comment


                #8
                pop over | my response
                Last edited by TyraNoah; 11-14-2021, 12:02 PM.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by helpwanted, Today, 03:06 AM
                1 response
                10 views
                0 likes
                Last Post sarafuenonly123  
                Started by Brevo, Today, 01:45 AM
                0 responses
                9 views
                0 likes
                Last Post Brevo
                by Brevo
                 
                Started by aussugardefender, Today, 01:07 AM
                0 responses
                5 views
                0 likes
                Last Post aussugardefender  
                Started by pvincent, 06-23-2022, 12:53 PM
                14 responses
                242 views
                0 likes
                Last Post Nyman
                by Nyman
                 
                Started by TraderG23, 12-08-2023, 07:56 AM
                9 responses
                387 views
                1 like
                Last Post Gavini
                by Gavini
                 
                Working...
                X