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 CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    51 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    30 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    99 views
    0 likes
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    177 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    170 views
    0 likes
    Last Post CarlTrading  
    Working...
    X