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

    Comment


      #3
      Thank you very much for your courtesy.
      GB

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      157 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      91 views
      1 like
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      143 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      130 views
      1 like
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      107 views
      0 likes
      Last Post CarlTrading  
      Working...
      X