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 kinfxhk, 07-14-2026, 09:39 AM
          0 responses
          91 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 10:18 AM
          0 responses
          92 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 09:50 AM
          0 responses
          70 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-13-2026, 07:21 AM
          0 responses
          87 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Started by kinfxhk, 07-11-2026, 02:11 AM
          0 responses
          66 views
          0 likes
          Last Post kinfxhk
          by kinfxhk
           
          Working...
          X