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 arvidvanstaey, Today, 02:19 PM
                4 responses
                11 views
                0 likes
                Last Post arvidvanstaey  
                Started by samish18, 04-17-2024, 08:57 AM
                16 responses
                61 views
                0 likes
                Last Post samish18  
                Started by jordanq2, Today, 03:10 PM
                2 responses
                9 views
                0 likes
                Last Post jordanq2  
                Started by traderqz, Today, 12:06 AM
                10 responses
                18 views
                0 likes
                Last Post traderqz  
                Started by algospoke, 04-17-2024, 06:40 PM
                5 responses
                48 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Working...
                X