Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Is there something like a "Mute" command?

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

    Is there something like a "Mute" command?

    Hello

    I'm running two automated strategies in parallel, one that produces a couple of signals a day and the other that produces only one signal a day on average. Both trigger visual (arrows on the chart) and acoustic (sound files) alerts when there's an entry signal. Now here's the question: Is there an equivalent to the TV "mute" button within NinjaScript? I'd like to let both strategies run even while I'm sleeping, but I don't want to be disturbed by the sound alerts of the one that produces a couple of signals a day, only by the other one.

    I can of course //comment the part of the code that triggers the sound alert, but I've more than 15 different signals within that strategy which means that this approach is a bit of a hassle.

    Thanks for letting me know if there's an easier way.

    #2
    laocoon, I would unfortunately not be aware of another way than either commenting the call out for the signal in question, or for example pointing to a 'muted' soundfile.

    Comment


      #3
      That's what I thought, thanks for replying Bertrand.
      The muted soundfile is a creative approach, but it would mean switching between unmuted soundfiles during the day and muted files during the night, so it wouldn't result in a time gain vs commenting the call out.

      Thanks

      Comment


        #4
        Originally posted by laocoon View Post
        Hello

        I'm running two automated strategies in parallel, one that produces a couple of signals a day and the other that produces only one signal a day on average. Both trigger visual (arrows on the chart) and acoustic (sound files) alerts when there's an entry signal. Now here's the question: Is there an equivalent to the TV "mute" button within NinjaScript? I'd like to let both strategies run even while I'm sleeping, but I don't want to be disturbed by the sound alerts of the one that produces a couple of signals a day, only by the other one.

        I can of course //comment the part of the code that triggers the sound alert, but I've more than 15 different signals within that strategy which means that this approach is a bit of a hassle.

        Thanks for letting me know if there's an easier way.
        Just use a "time filter" on the Alert() or PlaySound(), whichever you are using, so that it only sounds between the times that you wish it to sound.

        Comment


          #5
          That's clever, hadn't thought about it that way, thanks a lot koganam!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          88 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          48 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          30 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Started by TheRealMorford, 03-05-2026, 06:15 PM
          0 responses
          34 views
          0 likes
          Last Post TheRealMorford  
          Started by Mindset, 02-28-2026, 06:16 AM
          0 responses
          68 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Working...
          X