Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Error messages and exception handling

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

    Error messages and exception handling

    While running automated strategies, error messages may pop-up from time to time.

    I have been trying to handle these exceptions at code level so I could manage them and log them down properly. Some of the strings I have seen are "..current price is outside the price limits", "..can't be placed above", "..can't be placed below", "..place order outside of market hours".

    Some questions:
    1) Where can I see the list of possible Ninjatrader error messages string?
    2) Is there any way to suppress such error message box, so that there is no need for a human to click on 'ok' ?

    #2
    Hello elirion,

    Unfortunately, there is not a publicly available list of all order error messages or codes, and this will be custom to each brokerage.

    Also, it is not currently possible to suppress error message popups, as we want our users to see and confirm they have seen these messages as this can relate to an unwanted position that needs to be managed.
    However, I will add your vote to the existing request SFT-671 for the option to suppress error popups.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hi Chelsea,

      Appreciate your reply =)
      I guess I'll just have to work around the constraints.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by futtrader, 04-21-2024, 01:50 AM
      6 responses
      57 views
      0 likes
      Last Post futtrader  
      Started by sgordet, Today, 11:48 AM
      0 responses
      1 view
      0 likes
      Last Post sgordet
      by sgordet
       
      Started by Trader146, Today, 11:41 AM
      0 responses
      2 views
      0 likes
      Last Post Trader146  
      Started by jpapa, 04-23-2024, 07:22 AM
      2 responses
      16 views
      0 likes
      Last Post rene69851  
      Started by funk10101, Today, 11:35 AM
      0 responses
      1 view
      0 likes
      Last Post funk10101  
      Working...
      X