I'm opening a thread here, although I've also been exchanging emails with NT support. It's hard having a consistent conversation over email, and I'm desperate.. so I'll give this a try.
I've had 2-3 good weeks with IB and NT, but now bugs are popping up to make the platform unusable.
The symbols are this:
- I opened stock and (wrote) option positions in the last few days; everything worked fine, strategy worked fine.
- now, upon connecting to IB, I get this warning in the log:
[code] 3/19/2009 3:11:48 PM Default Error validating request:-'xb' : cause - When the local symbol field is empty, please fill all option fields (right, strike, expiry) ServerValidateError[/quote]
- looking into the TWS log file, I find this:
MF 06:38:15:428 JTS-EServerSocket-40: SECDEF Sending reqId=FixSecDefReqBySymbol38 symbol=FSYS 0 SMART MF 06:38:15:475 JTS-EServerSocket-40: [0:20:42:1:0:0:0:ERR] -'wb' : cause - When the local symbol field is empty, please fill all option fields (right, strike, expiry) MF 06:38:15:475 JTS-EServerSocket-40: Anticipated error MF jextend.d: When the local symbol field is empty, please fill all option fields (right, strike, expiry) at jextend.wb.d(wb.java:300) at jextend.y.h(y.java:233) at jextend.pd.L(pd.java:800) at jextend.pd.run(pd.java:660) at java.lang.Thread.run(Unknown Source)
- the NinjaTrader trace shows this:
2009-03-19 15:11:43:421 (xIB2) Cbi.Connection.ProcessEventArgs.PositionUpdateEventArgs1: Instrument='FSYS' Account='' Avg price=10.17374705 Quantity=1,500 Market position=Long Operation=Insert Currency=UsDollar 2009-03-19 15:11:43:468 in OnUnhandledThreadException 2009-03-19 15:11:43:546 ********* exception trapped ********* 2009-03-19 15:11:43:546 The changes you requested to the table were not successful because they would create duplicate values in the index, primary key, or relationship. Change the data in the field or fields that contain duplicate data, remove the index, or redefine the index to permit duplicate entries and try again. 2009-03-19 15:11:43:546 at System.Data.OleDb.OleDbCommand.ExecuteCommandTextErrorHandling(OleDbHResult hr) at System.Data.OleDb.OleDbCommand.ExecuteCommandTextForSingleResult(tagDBPARAMS dbParams, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommandText(Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteCommand(CommandBehavior behavior, Object& executeResult) at System.Data.OleDb.OleDbCommand.ExecuteReaderInternal(CommandBehavior behavior, String method) at System.Data.OleDb.OleDbCommand.ExecuteNonQuery() at Wilson.ORMapper.Internals.Connection.TransactionCommand(Guid transactionId, Type entityType, CommandInfo commandInfo, IDbTransaction transaction, String sqlStatement, Parameter[] parameters) at Wilson.ORMapper.Internals.Instance.InsertObject(Transaction transaction) at Wilson.ORMapper.Internals.Instance.PersistChanges(Transaction transaction, PersistDepth persistDepth, Boolean parentDeleted) at Wilson.ORMapper.Transaction.PersistChanges(ICollection entityObjects, PersistDepth persistDepth) at Wilson.ORMapper.ObjectSpace.PersistChanges(ICollection entityObjects, PersistDepth persistDepth) at Wilson.ORMapper.ObjectSpace.PersistChanges(Object entityObject) at NinjaTrader.Cbi.Connection.CreateInstrument(String name, InstrumentType instrumentType, Exchange exchange, DateTime expiry, Double strikePrice, Right right) at NinjaTrader.IB.Adapter.Convert(Contract contract, Currency currency, Double tickSize, Double pointValue, Exchange[] exchanges) at NinjaTrader.IB.AccountUpdatesRequest.ProcessPortfolioUpdateNow(Adapter adapter, PortfolioUpdate portfolioUpdate)
- final result: I get no bars. If I launch a live strategy, nothing. If I open up strategy analyzer and run a strategy, no bars. If I restart NinjaTrader, strategy analyzer works fine until I connect to IB... at which point this repeats itself.
This problem originally started with NT .8 and the previous version of TWS (889..?). I've just updated to NT .9 and TWS 892, and the problem still exists.
HELP.
Comment