• 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

Invalid stop and unmanaged logic

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

    Invalid stop and unmanaged logic

    Hello,

    using unmanaged logic I receive "invalid stop" and this behavior is absolutely right considering the current price and the stop price.
    When NT receive an "invalid stop" error the strategy aborts.

    I would like to manage the "invalid stop" error and transform my wrong order into a market order. Substantially I want to replicate the logic of Ninja simulated stop=true
    only when I receive an "invalid stop" error.

    Any hint?

    Thanks for the help

    #2
    gbulle, you could check into the little example attached as coutesy, it would set the realtime error handling in NT to TakeNoAction > meaning even if we see a reject > the script will not be terminated and you can do something about it in your code. Here the original stop entry is resend as market then if we see it reject - which we will of course as the script's first entry in OnBarUpdate() is designed to get rejected - doing a EnterLongStop order 10 ticks below the current bar close. This is just to show the process of how the rejection can be custom managed in OnOrderUpdate() for your scripts.

    Simulated just means NT is monitoring the price and sending the order only when triggered, it would not rest on any servers > thus you would not 'show' it to the book / market.
    Attached Files
    BertrandNinjaTrader Customer Service

    Comment


      #3
      Thank you very much for your courtesy.
      GB

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by GussJ, Today, 01:30 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by GARZONJ, Today, 12:25 PM
      3 responses
      13 views
      0 likes
      Last Post NinjaTrader_PaulH  
      Started by RandanAL, Today, 11:53 AM
      1 response
      13 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by yeshujbp, 07-21-2019, 02:40 PM
      2 responses
      35 views
      0 likes
      Last Post omololu
      by omololu
       
      Started by seagraph, Yesterday, 03:27 PM
      2 responses
      29 views
      0 likes
      Last Post seagraph  
      Working...
      X