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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      566 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      330 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      101 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      547 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      548 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X