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 sjsj2732, Yesterday, 04:31 AM
          0 responses
          33 views
          0 likes
          Last Post sjsj2732  
          Started by NullPointStrategies, 03-13-2026, 05:17 AM
          0 responses
          286 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          285 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          133 views
          1 like
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          91 views
          0 likes
          Last Post Deep42
          by Deep42
           
          Working...
          X