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

Is there a way to suppress orders placement error windows?

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

    Is there a way to suppress orders placement error windows?

    Hello.
    I working now with a strategy.

    It utilising manged approach and use SetStopLoss() and SetProfitTarget() protective orders.

    If to use tight Sl and Tp (like 1-2 ticks), one of protective orders can be rejected and the window with error message opens.

    May I suppress these windows?

    Attached Files
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.practic,

    At this time there is no way to suppress these messages as you should be notified that an error occurred.

    A rejection generally entails that something unexpected happened and some kind of action will be required. Although you may have programmed handling in the script this is still presented for the user to know about it. Even with the rejection handling enabled in the script it will produce this messages per design.

    You can look into using unsupported means to close the window though NinjaScript however there is no specific sample of this concept as this is not recommended to silence these messages. If you require closing these windows during testing or for your own uses and you are willing to actively monitor the platform while the script is running to ensure it is working you may be able to work toward that goal with the information in this post.

    I would still not suggest trying to handle these errors in code, if you happen to hide an error the user needs to know about that could end up costing a lot of money if gone unchecked. These messages are put in place as a safe guard for users to avoid being in an unknown situation, this brings to your attention that something has happened and gives you time to observe if the strategy has actually handled the problem.


    I look forward to being of further assistance.
    JesseNinjaTrader Customer Service

    Comment


      #3
      Thank you, Jesse
      The answer is clear, the politics is clear and the link is cool )
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by terkk, Today, 01:16 PM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Heath  
      Started by TraderElegante, Today, 12:14 PM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by dgee949, Today, 11:44 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_JustinD  
      Started by NinjaTrader_Kate, Today, 12:01 PM
      0 responses
      16 views
      0 likes
      Last Post NinjaTrader_Kate  
      Started by efeuvejota01, Today, 11:42 AM
      2 responses
      28 views
      0 likes
      Last Post efeuvejota01  
      Working...
      X