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 sidlercom80, 10-28-2023, 08:49 AM
      168 responses
      2,262 views
      0 likes
      Last Post sidlercom80  
      Started by Barry Milan, Yesterday, 10:35 PM
      3 responses
      10 views
      0 likes
      Last Post NinjaTrader_Manfred  
      Started by WeyldFalcon, 12-10-2020, 06:48 PM
      14 responses
      1,429 views
      0 likes
      Last Post Handclap0241  
      Started by DJ888, 04-16-2024, 06:09 PM
      2 responses
      9 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by jeronymite, 04-12-2024, 04:26 PM
      3 responses
      41 views
      0 likes
      Last Post jeronymite  
      Working...
      X