Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Autotrade throws an exception on startup

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

    Autotrade throws an exception on startup

    NT8 8.0.0.8 will not load after turning on autotrade. This is from trace:

    2016-01-14 09:58:29:037 *************** unhandled exception trapped ***************
    2016-01-14 09:58:29:037 The type initializer for 'NinjaTrader.Cbi.AutoTrade' threw an exception.
    2016-01-14 09:58:29:037 System.TypeInitializationException: The type initializer for 'NinjaTrader.Cbi.AutoTrade' threw an exception. ---> System.Data.SqlServerCe.SqlCeException: A duplicate value cannot be inserted into a unique index. [ Table name = Accounts,Constraint name = Accounts_ui0 ]
    at System.Data.SqlServerCe.SqlCeCommand.ProcessResult s(Int32 hr)
    at System.Data.SqlServerCe.SqlCeCommand.ExecuteComman dText(IntPtr& pCursor, Boolean& isBaseTableCursor)
    at System.Data.SqlServerCe.SqlCeCommand.ExecuteComman d(CommandBehavior behavior, String method, ResultSetOptions options)
    at System.Data.SqlServerCe.SqlCeCommand.ExecuteNonQue ry()
    at NinjaTrader.Cbi.Account.DbAdd(Boolean persist)
    at NinjaTrader.Cbi.DB.Init(Boolean updateAll, Boolean updateInstruments, Boolean updateInstrumentLists)
    at NinjaTrader.Cbi.DB.get_Current()
    at NinjaTrader.Cbi.Account.DbLoad()
    at NinjaTrader.Cbi.Account.get_Accounts()
    at NinjaTrader.Cbi.Account.add_AccountStatusUpdate(Ev entHandler`1 value)
    at NinjaTrader.Cbi.AutoTrade..ctor()
    at NinjaTrader.Cbi.AutoTrade..cctor()
    --- End of inner exception stack trace ---
    at NinjaTrader.Core.Globals.ApplicationStart(Action`1 splashMessageCallback, Action`1 errorCallback, Func`2 userFeedbackCallbackYesNoAll)
    at NinjaTrader.AppHelper.<>c__DisplayClass0_3.<OnStar tup>b__0(Object o)
    at System.Threading.ExecutionContext.RunInternal(Exec utionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionCon text executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.QueueUserWorkItemCallback.System. Threading.IThreadPoolWorkItem.ExecuteWorkItem()
    at System.Threading.ThreadPoolWorkQueue.Dispatch()
    2016-01-14 09:58:31:916 Starting server message polling timer with interval 300 seconds...

    #2
    Hello,

    I have not been able to reproduce this by just enabling the ATI interface.
    Can you provide the strategy that you were using?
    I look forward to your reply.
    Cody B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    669 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    378 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
    575 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