I followed 2008 setup instructions and set up JBookTrader in Eclipse Luna (java version jre7). I got 12 warnings in Problems and an additional warning message appeared in Console after running the project: "WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5". The JBookTrader started only with one Strategy "SAMPLE" and symbol "ES".I read the topics but couldn't find a solution. Any advice would be great appreciated!
--
You received this message because you are subscribed to the Google Groups "JBookTrader" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbooktrader...@googlegroups.com.
To post to this group, send email to jbook...@googlegroups.com.
Visit this group at http://groups.google.com/group/jbooktrader.
For more options, visit https://groups.google.com/d/optout.
--
LongDefender and ShortDefender strategies all had the same model with different Parameters.
LongDefender and ShortDefender strategies all had the same model with different Parameters.
--
08/11/14 | 07:21:39.994 | JBookTrader | Running mode changed to: Forward Testing |
08/11/14 | 07:21:41.117 | JBookTrader | Connecting to TWS |
08/11/14 | 07:21:41.127 | JBookTrader | Connected to TWS |
08/11/14 | 07:21:41.128 | IB API | 2104: Market data farm connection is OK:usfarm.us |
08/11/14 | 07:21:41.128 | IB API | 2104: Market data farm connection is OK:usfarm |
08/11/14 | 07:21:41.129 | IB API | 2106: HMDS data farm connection is OK:ushmds |
08/11/14 | 07:21:41.131 | Account | AvailableFunds: 25000.00 |
08/11/14 | 07:21:41.164 | IB API | 2100: API client has been unsubscribed from account data. |
08/11/14 | 07:21:41.167 | JBookTrader | Monitoring server started |
08/11/14 | 07:21:41.169 | Sample_NQ | Strategy started. Trading schedule: 08:00 to 16:30 (America/New_York) |
08/11/14 | 07:21:41.169 | JBookTrader | Requested contract details for instrument NQ-NYSE-STK |
08/11/14 | 07:21:41.170 | JBookTrader | Requested book data for instrument NQ-NYSE-STK |
08/11/14 | 07:21:41.170 | JBookTrader | Requested market data for instrument NQ-NYSE-STK |
08/11/14 | 07:21:41.206 | IB API | Contract details: ID: 2 Trading class: NQ Exchanges: SMART,NYSE,ISE,CHX,ARCA,ISLAND,IBSX,DRCTEDGE,BEX,BATS,EDGEA,LAVA,CSFBALGO,JEFFALGO,BYX,IEX,PSX Long name: NQ MOBILE INC - ADR Market name: NQ Minimum tick: 0.01 Contract month: null Time zone id: EST5EDT Trading hours: 20140811:0930-1600;20140812:0930-1600 Liquid hours: 20140811:0930-1600;20140812:0930-1600 |
08/11/14 | 07:21:41.348 | IB API | 354: Requested market data is not subscribed.NQ NYSE/DEEP (for id 2) |
My guess is that you were using a "demo" IB account. To get real time market data, you need to use either a paper-trading IB account, or a real IB account.
--
This should work:Contract contract = ContractFactory.makeStockContract("MSFT", "SMART");
Let us know if it does not.
--
08/14/14 | 20:47:39.286 | JBookTrader | Monitoring server started |
08/14/14 | 20:47:39.287 | Sample_TSLA | Strategy started. Trading schedule: 09:30 to 16:30 (America/New_York) |
08/14/14 | 20:47:39.287 | JBookTrader | Requested contract details for instrument TSLA-USD-SMART-STK |
08/14/14 | 20:47:39.288 | JBookTrader | Requested book data for instrument TSLA-USD-SMART-STK |
08/14/14 | 20:47:39.288 | JBookTrader | Requested market data for instrument TSLA-USD-SMART-STK |
08/14/14 | 20:47:39.327 | IB API | Contract details: ID: 4 Trading class: NMS Exchanges: SMART,ISE,CHX,ARCA,ISLAND,IBSX,DRCTEDGE,BEX,BATS,EDGEA,LAVA,CSFBALGO,JEFFALGO,BYX,IEX,PSX Long name: TESLA MOTORS INC Market name: NMS |
Minimum tick: 0.01 Contract month: null Time zone id: EST5EDT |
Trading hours: 20140814:0400-2000;20140815:0400-2000 Liquid hours: 20140814:0930-1600;20140815:0930-1600 | |||
08/14/14 | 20:47:39.409 | IB API | 10092: Deep market data is not supported for this combination of security type/exchange (for id 4) |
08/14/14 | 20:47:40.390 | JBookTrader | org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465 at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1401) at org.apache.commons.mail.Email.send(Email.java:1428) at com.jbooktrader.platform.email.Notifier.send(Notifier.java:61) at com.jbooktrader.platform.email.Notifier.send(Notifier.java:41) at com.jbooktrader.platform.trader.Trader.error(Trader.java:212) at com.ib.client.EClientSocket.error(EClientSocket.java:1890) at com.ib.client.EReader.processMsg(EReader.java:331) at com.ib.client.EReader.run(EReader.java:69) Caused by: javax.mail.AuthenticationFailedException: 535-5.7.8 Username and Password not accepted. Learn more at 535 5.7.8 http://support.google.com/mail/bin/answer.py?answer=14257 z4sm503580igm.2 - gsmtp at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:826) at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:761) at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:685) at javax.mail.Service.connect(Service.java:317) at javax.mail.Service.connect(Service.java:176) at javax.mail.Service.connect(Service.java:125) at javax.mail.Transport.send0(Transport.java:194) at javax.mail.Transport.send(Transport.java:124) at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1391) ... 7 more |
08/14/14 | 20:53:43.299 | JBookTrader | Monitoring server started |
08/14/14 | 20:53:43.300 | Sample_TSLA | Strategy started. Trading schedule: 09:30 to 16:30 (America/New_York) |
08/14/14 | 20:53:43.301 | JBookTrader | Requested contract details for instrument TSLA-USD-ISLAND-STK |
08/14/14 | 20:53:43.301 | JBookTrader | Requested book data for instrument TSLA-USD-ISLAND-STK |
08/14/14 | 20:53:43.302 | JBookTrader | Requested market data for instrument TSLA-USD-ISLAND-STK |
08/14/14 | 20:53:41.337 | IB API | Contract details: ID: 4 Trading class: NMS Exchanges: SMART,ISE,CHX,ARCA,ISLAND,IBSX,DRCTEDGE,BEX,BATS,EDGEA,LAVA,CSFBALGO,JEFFALGO,BYX,IEX,PSX Long name: TESLA MOTORS INC Market name: NMS |
Minimum tick: 0.01 Contract month: null Time zone id: EST5EDT |
Trading hours: 20140814:0400-2000;20140815:0400-2000 Liquid hours: 20140814:0930-1600;20140815:0930-1600 |
1. The contract multiplier should be set to 1 for stocks (it's only applicable to futures)
2. The EmailException is thrown because you have not configured the email user name and password. You can simply turn off the email notification service from preferences.
3. In your second try, the error was swallowed. To enable the error reporting, replace this:// 200: bad contractif (errorCode == 200) {traderAssistant.volumeResponse(id, -1);}with this// 200: bad contractif (errorCode == 200) {eventReport.report(JBookTrader.APP_NAME, errorMsg);traderAssistant.volumeResponse(id, -1);}
08/14/14 | 22:49:22.049 |
IB API | 2104: Market data farm connection is OK:usfarm.us |
4. How does your market data subscription age looks like. Do you have both the "US Securities Bundle" and "Nasdaq TotalView" checked? I've attached mine for reference.
08/15/14 | 06:59:03.765 | Sample_TWTR | Strategy started. Trading schedule: 05:00 to 16:30 (America/New_York) |
08/15/14 | 06:59:03.765 | JBookTrader | Requested contract details for instrument TWTR-USD-NYSE-STK |
08/15/14 | 06:59:03.766 | JBookTrader | Requested book data for instrument TWTR-USD-NYSE-STK |
08/15/14 | 06:59:03.767 | JBookTrader | Requested market data for instrument TWTR-USD-NYSE-STK |
08/15/14 | 06:59:03.805 | IB API | Contract details: ID: 5 Trading class: TWTR Exchanges: SMART,NYSE,ISE,CHX,ARCA,ISLAND,IBSX,DRCTEDGE,BEX,BATS,EDGEA,LAVA,CSFBALGO,JEFFALGO,BYX,IEX,PSX Long name: TWITTER INC Market name: TWTR |
Minimum tick: 0.01 Contract month: null Time zone id: EST5EDT |
Trading hours: 20140815:0930-1600;20140818:0930-1600 Liquid hours: 20140815:0930-1600;20140818:0930-1600 | |
08/15/14 | 06:59:04.745 |
IB API | 2104: Market data farm connection is OK:usfarm.us |
08/15/14 | 06:59:22.936 |
Sample_TSLA | Strategy started. Trading schedule: 09:30 to 16:30 (America/New_York) |
08/15/14 | 06:59:22.936 |
JBookTrader | Requested contract details for instrument TSLA-USD-ISLAND-STK |
08/15/14 | 06:59:22.937 |
JBookTrader | Requested book data for instrument TSLA-USD-ISLAND-STK |
08/15/14 | 06:59:22.938 |
JBookTrader | Requested market data for instrument TSLA-USD-ISLAND-STK |
08/15/14 | 06:59:22.974 | IB API |
Contract details: ID: 4 Trading class: NMS Exchanges: SMART,ISE,CHX,ARCA,ISLAND,IBSX,DRCTEDGE,BEX,BATS,EDGEA,LAVA,CSFBALGO,JEFFALGO,BYX,IEX,PSX Long name: TESLA MOTORS INC Market name: NMS Minimum tick: 0.01 Contract month: null Time zone id: EST5EDT |
Trading hours: 20140815:0400-2000;20140818:0400-2000 Liquid hours: 20140815:0930-1600;20140818:0930-1600 |