• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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 learningnt, Yesterday, 10:21 PM
      0 responses
      2 views
      0 likes
      Last Post learningnt  
      Started by GMiller64, Yesterday, 01:13 PM
      3 responses
      10 views
      0 likes
      Last Post GMiller64  
      Started by itrader46, Yesterday, 12:51 PM
      5 responses
      43 views
      0 likes
      Last Post rithikanth  
      Started by hemlock, Yesterday, 11:45 AM
      3 responses
      14 views
      0 likes
      Last Post NinjaTrader_PatrickG  
      Started by gbulle, Yesterday, 11:31 AM
      4 responses
      12 views
      0 likes
      Last Post gbulle
      by gbulle
       
      Working...
      X