• 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 Kovalev, Today, 02:07 AM
      0 responses
      2 views
      0 likes
      Last Post Kovalev
      by Kovalev
       
      Started by kunkun80, Today, 01:37 AM
      0 responses
      1 view
      0 likes
      Last Post kunkun80  
      Started by Mykro, Yesterday, 02:51 PM
      2 responses
      12 views
      0 likes
      Last Post Dan_D_Trader  
      Started by Dan_D_Trader, Today, 12:41 AM
      0 responses
      3 views
      0 likes
      Last Post Dan_D_Trader  
      Started by jtrading82, Yesterday, 04:05 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Working...
      X