Announcement

Collapse
No announcement yet.

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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        576 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        334 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        101 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        553 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        551 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X