Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

nT8- OnPreExitOnClose Event

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

    nT8- OnPreExitOnClose Event

    nT8- OnPreExitOnClose Event to allow developers to gracefully deal with dissapearing working orders and stuck unprotected positions
    MicroTrends
    NinjaTrader Ecosystem Vendor - micro-trends.co.uk

    #2
    Hello,

    Good thought I added suggestion #327. As a workaround (Which you may have already implemented) you could handle it yourself since the code in our handling is fairly straightforward.

    # Start a timer and check about every 1 second that the current time is not greater then or equal to exit on close time.

    You would likely trigger your logic for example 5 seconds ahead of the set exit on close time.
    BrettNinjaTrader Product Management

    Comment


      #3
      Originally posted by NinjaTrader_Brett View Post
      Hello,

      Good thought I added suggestion #327. As a workaround (Which you may have already implemented) you could handle it yourself since the code in our handling is fairly straightforward.

      # Start a timer and check about every 1 second that the current time is not greater then or equal to exit on close time.

      You would likely trigger your logic for example 5 seconds ahead of the set exit on close time.
      Yes i know - but as you are already doing this - its nothing for you to add an event that fires when it actually happens.... and will help many 10000s of people with their code...


      Your solution. work for bakctesting and yes i do know how to code for that...
      the point is its better to have an event :-)
      MicroTrends
      NinjaTrader Ecosystem Vendor - micro-trends.co.uk

      Comment


        #4
        For sure, understood and I wrote down the suggestion to our list. I was just providing you a workaround to use immediately.

        Thanks for reporting this.
        BrettNinjaTrader Product Management

        Comment


          #5
          Originally posted by NinjaTrader_Brett View Post
          For sure, understood and I wrote down the suggestion to our list. I was just providing you a workaround to use immediately.
          Thanks for reporting this.
          Ah ok sorry i am multitaksing - that always cuases issues :-)
          MicroTrends
          NinjaTrader Ecosystem Vendor - micro-trends.co.uk

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by Geovanny Suaza, 02-11-2026, 06:32 PM
          0 responses
          672 views
          0 likes
          Last Post Geovanny Suaza  
          Started by Geovanny Suaza, 02-11-2026, 05:51 PM
          0 responses
          379 views
          1 like
          Last Post Geovanny Suaza  
          Started by Mindset, 02-09-2026, 11:44 AM
          0 responses
          111 views
          0 likes
          Last Post Mindset
          by Mindset
           
          Started by Geovanny Suaza, 02-02-2026, 12:30 PM
          0 responses
          577 views
          1 like
          Last Post Geovanny Suaza  
          Started by RFrosty, 01-28-2026, 06:49 PM
          0 responses
          582 views
          1 like
          Last Post RFrosty
          by RFrosty
           
          Working...
          X