Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unmanaged, On Execution Reset IOrder

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

    Unmanaged, On Execution Reset IOrder

    I am working with a simple example with onexecution and onorderupdate with unmanaged orders on and CABC=false.

    I have one mmstop order being placed upon the execution of a single entry order.

    my second order is located within the onbarupdate() method as well as the logic that determines when the order is placed.

    I can enter the market fine, however if my exit located within onbarupdate() is triggered instead of the mmstop, the Iorder object will not reset even though i have logic placed within onexecution referencing the exit.

    If the mmstop order executes the reset logic which is the same as the onbarupdate located exit - resets correctly and will allow orders to continue.

    Problem: Without Both orders resetting to null, One initiated from onbarupdate and the other from onexecution i cannot reenter the market as my entry is contingent upon both exit iorder objects being null.

    I tried to use onorderupdate to reset the order located within onbarupdate but its also not resetting.

    Print statements show the exits cancelled and filled after the onbarupdate() exit is filled however there state never changes....Do i need to handle this from onbarupdate() instead of onexecution?

    ^Thanks for ideas.

    #2
    neb, can you please post the code you're using we can take a closer look?
    AustinNinjaTrader Customer Service

    Comment


      #3
      Can i email it to you?

      Comment


        #4
        Sure, please send it to support [at] ninjatrader [dot] com, with Attn: Austin - ticket 443058 in the subject line.
        AustinNinjaTrader Customer Service

        Comment


          #5
          Hello there, thanks for the email. We'll get back to you tomorrow.
          AustinNinjaTrader Customer Service

          Comment


            #6
            Thanks...it appears that orders generated outside of onexecution cannot be reset back to null from within onexecution. I am hoping this is something i am doing wrong. I have noticed i can reset the orders from onorderupdate but still seems i should be able to reset the orders from onexecution.

            Comment


              #7
              Sorry for our late follow up and thanks for the file Ben, we're testing it here and get back to you.

              Comment


                #8
                Please also run with TraceOrders = true - I believe the issue is the BL limit entry price in your calcs, currently TF trades at 824 currently and I just get a working entry order about 19 pts away - is this expected?

                Comment


                  #9
                  Did You Get A Resolution

                  Neb,
                  I am having some issues with unmanaged orders as well and was wondering if you had gotten any resolution? If so could you post it or pm it if available?

                  Comment


                    #10
                    Welcome to our forums here : could you please post your issue with the unmanaged approach as a new post?

                    Thanks,

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                    0 responses
                    648 views
                    0 likes
                    Last Post Geovanny Suaza  
                    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                    0 responses
                    369 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by Mindset, 02-09-2026, 11:44 AM
                    0 responses
                    108 views
                    0 likes
                    Last Post Mindset
                    by Mindset
                     
                    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                    0 responses
                    572 views
                    1 like
                    Last Post Geovanny Suaza  
                    Started by RFrosty, 01-28-2026, 06:49 PM
                    0 responses
                    573 views
                    1 like
                    Last Post RFrosty
                    by RFrosty
                     
                    Working...
                    X