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

Alert without sound?

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

    Alert without sound?

    I want to fire NT Alert function (to add alerts in Alert Log), however i dont want it to fire sound.

    Alert() function doesnt have an overload to accept the method without sound file.

    what i should do?

    i want exactly Alert() function (with all its functionality) just not sound to trigger.

    I tried to input the empty string as sound-file location, but in background that causes some C# errors.

    #2
    Hello TazoTodua,
    Thanks for your post.

    To not hear a sound from the Alert() method I would simply point to a 'mute' wave file that you placed for example in the \Program Files (x86)\NinjaTrader 8\sounds\ folder.
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Josh, yeah, i thought about that, but unfortunately its not solution. I have to attach sound files into my indicator, and distribute both files and etc, is not flexible.

      just should be available in code, i think , update (adding an overload in the backend for alert() function, to control the sound ON/OFF) , will be nice.
      you can submit that to developers.

      but if the empty string ("") for file-location does the trick (as i dont know if it causes any internal errors), then this will be enough too.

      Comment


        #4
        Hello TazoTodua,

        Thank you for your response.

        The empty string is the trick there. If you enter "" for the soundLocation string it will compile and still alert with no sound.

        Please let me know if you have any questions.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by algospoke, Yesterday, 06:40 PM
        2 responses
        19 views
        0 likes
        Last Post algospoke  
        Started by ghoul, Today, 06:02 PM
        3 responses
        14 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by jeronymite, 04-12-2024, 04:26 PM
        3 responses
        45 views
        0 likes
        Last Post jeronymite  
        Started by Barry Milan, Yesterday, 10:35 PM
        7 responses
        20 views
        0 likes
        Last Post NinjaTrader_Manfred  
        Started by AttiM, 02-14-2024, 05:20 PM
        10 responses
        180 views
        0 likes
        Last Post jeronymite  
        Working...
        X