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 benmarkal, Yesterday, 12:52 PM
      3 responses
      22 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by helpwanted, Today, 03:06 AM
      1 response
      17 views
      0 likes
      Last Post sarafuenonly123  
      Started by Brevo, Today, 01:45 AM
      0 responses
      11 views
      0 likes
      Last Post Brevo
      by Brevo
       
      Started by aussugardefender, Today, 01:07 AM
      0 responses
      6 views
      0 likes
      Last Post aussugardefender  
      Started by pvincent, 06-23-2022, 12:53 PM
      14 responses
      244 views
      0 likes
      Last Post Nyman
      by Nyman
       
      Working...
      X