Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Controlling Sounds in a Programmed Strategy

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

    Controlling Sounds in a Programmed Strategy

    Hello.

    Is there any way to control the sounds under a programmed strategy?

    I see the NT supplied sounds that are designed to work using an ATM strategy. But if I turn those off, is there a way to point, or link commands like ExitLongStop() or EnterShort() to a custom sound file?

    Also there is a jarring sound associated with the Disable() command. Can I control that as well?

    #2
    Hello rcsingleton,
    You can turn on or off a custom sound from the Options menu.
    In Control Center menu bar goto Tools>Options>General tab
    In the General tab check/uncheck the options under Sound to turn on/off a specific sound.

    Yes, you can use the PlaySound method to play a custom wav file. Please refer to our help guide to know more about it.


    The Disable command does not invoke any sound by default. Are you assigning any sound files while disabling the strategy?
    JoydeepNinjaTrader Customer Service

    Comment


      #3
      Originally posted by rcsingleton View Post
      Hello.

      Is there any way to control the sounds under a programmed strategy?

      I see the NT supplied sounds that are designed to work using an ATM strategy. But if I turn those off, is there a way to point, or link commands like ExitLongStop() or EnterShort() to a custom sound file?

      Also there is a jarring sound associated with the Disable() command. Can I control that as well?
      Why not just save the original sound to another name, and name your custom sound to what is linked to the correct action?

      Comment


        #4
        I've turned off some standard NT sounds and will use PlaySound() for the custom sounds.

        But I'm still getting an annoying sound when I use ..

        Log("Daily Goal Achieved: " + RealizedPnL.ToString("C"), NinjaTrader.Cbi.LogLevel.Alert);

        Is the message popup sound generated by Windows7 or NT?

        How can I change that sound?

        Comment


          #5
          Hello rcsingleton,
          The message box is generated by NinjaTrader and unfortunately the sound cannot be changed.

          You can choose send the log as an information and use your own message box and sound.

          Code:
          Log("Daily Goal Achieved: " + RealizedPnL.ToString("C"), NinjaTrader.Cbi.LogLevel.Information);
          System.Windows.Forms.MessageBox.Show("Hello world");
          PlaySound(..);
          Please let me know if I can assist you any further.
          JoydeepNinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by cmoran13, 04-16-2026, 01:02 PM
          0 responses
          42 views
          0 likes
          Last Post cmoran13  
          Started by PaulMohn, 04-10-2026, 11:11 AM
          0 responses
          25 views
          0 likes
          Last Post PaulMohn  
          Started by CarlTrading, 03-31-2026, 09:41 PM
          1 response
          162 views
          1 like
          Last Post NinjaTrader_ChelseaB  
          Started by CarlTrading, 04-01-2026, 02:41 AM
          0 responses
          98 views
          1 like
          Last Post CarlTrading  
          Started by CaptainJack, 03-31-2026, 11:44 PM
          0 responses
          157 views
          2 likes
          Last Post CaptainJack  
          Working...
          X