Hi, I'm trying to ue TWS from IB as a RT data feed, but is not working,
TWS:
Build 10.19.2o, Jun 12, 2024 3:57:31 PM
Jolt Build 1.18.10, Oct 24, 2023 05:27:26 PM
Nia Build 2.24.5, Feb 27, 2024 06:10:01 PM
ModelNav Build 1.13.2, Jan 24, 2022 04:59:21 PM
Riskfeed Build 2.45.9, Mar 4, 2024 06:02:50 PM
My Amibroker is version PROFESSIONAL EDITION (64-bit)
6.30.5, Built date: mar 18 2019
I created a demo account with IB and downloaded the TWS so.
in the API -configuration activated the activeX and Socket Clients ( mine its in spanish I don't know if thats the english name of it )
Socket Port 7496
and added Trusted IP
127.0.0.1
in Amibroker
Created a new DB
with local data storage enable (recomended)
10000 number of bars
base time interval of 1 minute
in configure made sure the TWS host name its 127.0.0.1
and TWS socket port its 7496 ( to match the TWS socket port )
then I created a new symbol
EUR.USD-IDEALPRO-CASH
but everytime I tried to open it, Amibroker crashed, so looking in the forum Tomas sent a new IB.dll to replace the existing one in the plugins folder, after doing that amibroker doesn't crash anymore, but I don't get any quotes coming.
I still can't believe the Owner himself responds to stupid messages ( yeah mine xD, really appreciate it ) oh and I replaced the IB.dll in Plugins already, According to what I read in other posts demo account was enough for live quotes, it changed?
Yes in the past (many years ago) DEMO was enough, but last time I checked they did not feed the data thru API for symbols that are not subscribed with real accounts. Please send a screenshot so we can see at least the status indicator.
Ok after a few months I opened a real account just to try to test this out. everything seems to work ok, I can see the 5 days 1M data, its quite easy actually, but I have one little question, when I try to compare the 1H chart in the TWS with the Amibroker one they're different, ( I think its because in TWS the market opens at 9:30 ) so that very first candle has just 30 minutes of data, and from there every candle its gonna have 1 hour data but in amibroker if I set in the database settings / intraday settings the starting at 9:30 and end at 16:00 my 1H candles are from 9:30, then the next candle would be 10:30, the nextone would be 11:30 etc, is there a way so I can see the exact same 1H timeframe chart in TWS and in Amibroker?
another question about the intraday settings about the RTH and ETH
As far as I understand RTH its from 9:30 am to 16:00 pm
and ETH has 2 different sets, after hours and pre-market ( after hours from 16:00 pm to 20:00 pm and pre-market from 4:00 am to 9:30 am ) but in amibroker there is only 2 sets ( RTH and ETH ) shouldn't have 3 sets? RTH and ETH-pre-market and ETH-after Market?
I know those are basic questions, please don't bully me