Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Exception Trapped

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

    Exception Trapped

    any idea why this happened.
    here is the log and trace file.
    do i need to restart ninja after this?
    1/9/2009 10:31:02 AM|1|32|Order='5292803/26294!Dorman!Dorman' Name='External' New State=Cancelled Instrument='GC 02-09' Action=Buy Limit price=0 Stop price=864 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''
    1/9/2009 10:50:25 AM|1|1|AT, 'PLACE;Sim101;ES 03-09;SELL;1;LIMIT;892.00;0;DAY;oco1clightES;idname1; clightes;stratidclightES1' processing



    2009-01-09 10:31:02:928 (PETER) Cbi.OrderStatusEventArgs.Process: Order='5292803/26294!Dorman!Dorman' Name='External' New State=Cancelled Instrument='GC 02-09' Action=Buy Limit price=0 Stop price=864 Quantity=1 Type=Stop Filled=0 Fill price=0 Error=NoError Native error=''
    2009-01-09 10:50:25:288 in OnUnhandledApplicationException
    2009-01-09 10:50:25:288 ********* exception trapped *********
    2009-01-09 10:50:25:288 Item has already been added. Key in dictionary: 'Sim101' Key being added: 'Sim101'
    2009-01-09 10:50:25:288 System.ArgumentException: Item has already been added. Key in dictionary: 'Sim101' Key being added: 'Sim101'
    at System.Windows.Forms.Control.MarshaledInvoke(Contr ol caller, Delegate method, Object[] args, Boolean synchronous)
    at System.Windows.Forms.Control.Invoke(Delegate method, Object[] args)
    at NinjaTrader.Cbi.SynchronizeInvoke.Invoke(Delegate method, Object[] args)
    at NinjaTrader.Cbi.AutoTrade.OnFswChanged(Object sender, FileSystemEventArgs e)
    at System.IO.FileSystemWatcher.OnChanged(FileSystemEv entArgs e)
    at System.IO.FileSystemWatcher.NotifyFileSystemEventA rgs(Int32 action, String name)
    at System.IO.FileSystemWatcher.CompletionStatusChange d(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
    at System.Threading._IOCompletionCallback.IOCompletio nCallback_Context(Object state)
    at System.Threading.ExecutionContext.runTryCode(Objec t userData)
    at System.Runtime.CompilerServices.RuntimeHelpers.Exe cuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData)
    at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state)
    at System.Threading._IOCompletionCallback.PerformIOCo mpletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)

    #2
    What did you happen to be doing when this occurred?
    Josh P.NinjaTrader Customer Service

    Comment


      #3
      a oif order ws written and that caused the crash.
      the order should have been similar to this one below
      (generated thought the oif generator)
      PLACE;SIM101;ES 03-09;SELL;1;LIMIT;899.00;0;DAY;oco1bclightES;idname5 ;clightes;stratidclightes1b

      this line below was written via tradestation file write.
      it causes the crash again.
      PLACE;Sim101;ES 03-09;SELL;1;LIMIT;898.75;0;DAY;oco1clightES;idname2; clightes;stratidclightES2
      the ts code used is below
      vars:ep(0),gmt(0),
      StrategyName("clightes"),Contractname("ES"),stratid(1),atm("clightes");
      ep=close+10;
      gmt=time*100;
      fileappend("t:\OIF-Se-"+numtostr(oifNo,0)+"-" +NUMTOSTR(DATE,0)+"-"+ NUMTOSTR(GMT,0)+"se"+StrategyName+Contractname+".t xt",
      "PLACE;"+ninjaaccount+";"+ninjaSymbol+";SELL;1;LIM IT;"+numtostr(ep,2)+";0;DAY;oco1"+StrategyName+con tractname+";idname"+numtostr(stratid,0)+";"+atm+"; stratid"+StrategyName+CONTRACTname+numtostr(strati d,0)+newline);
      later note, in comparing the lines they are idential in function.

      Last edited by kiwibird; 01-09-2009, 03:23 PM.

      Comment


        #4
        I have forwarded this to development. They should respond by Monday. Have a good weekend.
        Josh P.NinjaTrader Customer Service

        Comment


          #5
          Hi Josh,
          i added more to me 233pm post.
          I put in more ts code, and compared the lines of text.
          they are identical in function.
          the filename will be something like
          OIF-Se-1-1090109-153204seclightES.txt
          Last edited by kiwibird; 01-09-2009, 03:33 PM.

          Comment


            #6
            Thank you kiwibird. Development is off for the day already. They will respond after the weekend.
            Josh P.NinjaTrader Customer Service

            Comment


              #7
              later note.
              i tested this again from tradestation, and it worked perfectly.
              so i have only been able to reproduce the problem once

              Comment


                #8
                kiwibird,

                We will need a reproducible scenario before we can proceed. If you manage to find one please let us know. Thank you.
                Josh P.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                109 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                59 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                37 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                40 views
                0 likes
                Last Post TheRealMorford  
                Started by Mindset, 02-28-2026, 06:16 AM
                0 responses
                77 views
                0 likes
                Last Post Mindset
                by Mindset
                 
                Working...
                X