Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy error in Log -- what is it?

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

    #16
    Just send me the file you'll find in <my documents>/NinjaTrade6.5/bin/Custom/Strategy.

    Comment


      #17
      Email sent, thanks!

      Comment


        #18
        For those following this thread, Dierk said that he found a bug in the core NT code, which will be corrected soon.

        One question though, Dierk: You said the error happened with the CancelOrder event. Did the error prevent the CancelOrder code from executing an OnOrderUpdate call? Because if that's the case and that will be corrected in the next release, then my strategy should work again after the release. If not, then I have another problem with something not calling OnOrderUpdate properly.

        Thanks!
        Bryan
        Last edited by cassb; 04-23-2008, 09:05 PM.

        Comment


          #19
          CancelOrder does not work properly. Please be patient until next release comes out.

          Comment


            #20
            Hey... I just discovered something. What's this order state mean:

            Order='e...f/Sim101' Name='TestShort' New State=PendingChange Instrument='YM 06-08' Action=SellShort Limit price=0 Stop price=12908 Quantity=4 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''

            It seems like when I already have an accepted order, and then place another order with the same IOrder name, it comes up with this order state and then automatically cancels the old older and places the new one. So I don't need to cancel the old order manually at all! What a revelation. I guess I don't need to wait for the fix to CancelOrder after all.

            Bryan

            Comment


              #21
              I suggest you use TraceOrders = true to see if anything else is happening behind the scenes that may detract from what you are expecting. Just in case there are wider implications.
              Josh P.NinjaTrader Customer Service

              Comment


                #22
                OK, I'll put that in the strategy... in the Initialize tag? Then where does the trace go -- to the Output window?

                Comment


                  #23

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by Geovanny Suaza, 02-11-2026, 06:32 PM
                  0 responses
                  662 views
                  0 likes
                  Last Post Geovanny Suaza  
                  Started by Geovanny Suaza, 02-11-2026, 05:51 PM
                  0 responses
                  376 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by Mindset, 02-09-2026, 11:44 AM
                  0 responses
                  110 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Started by Geovanny Suaza, 02-02-2026, 12:30 PM
                  0 responses
                  574 views
                  1 like
                  Last Post Geovanny Suaza  
                  Started by RFrosty, 01-28-2026, 06:49 PM
                  0 responses
                  580 views
                  1 like
                  Last Post RFrosty
                  by RFrosty
                   
                  Working...
                  X