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.
    BertrandNinjaTrader Customer Service

    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 josh18955, 03-25-2023, 11:16 AM
          6 responses
          435 views
          0 likes
          Last Post Delerium  
          Started by FAQtrader, Today, 03:35 PM
          0 responses
          3 views
          0 likes
          Last Post FAQtrader  
          Started by rocketman7, Today, 09:41 AM
          5 responses
          18 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by frslvr, 04-11-2024, 07:26 AM
          9 responses
          127 views
          1 like
          Last Post caryc123  
          Started by selu72, Today, 02:01 PM
          1 response
          14 views
          0 likes
          Last Post NinjaTrader_Zachary  
          Working...
          X