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 CarlTrading, 03-31-2026, 09:41 PM
                  1 response
                  67 views
                  0 likes
                  Last Post NinjaTrader_ChelseaB  
                  Started by CarlTrading, 04-01-2026, 02:41 AM
                  0 responses
                  36 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CaptainJack, 03-31-2026, 11:44 PM
                  0 responses
                  60 views
                  1 like
                  Last Post CaptainJack  
                  Started by CarlTrading, 03-30-2026, 11:51 AM
                  0 responses
                  62 views
                  0 likes
                  Last Post CarlTrading  
                  Started by CarlTrading, 03-30-2026, 11:48 AM
                  0 responses
                  53 views
                  0 likes
                  Last Post CarlTrading  
                  Working...
                  X