Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 715 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Stock CFD Trading with Interactive Brokers #464441
02/13/17 17:27
02/13/17 17:27
Joined: Aug 2016
Posts: 95
Wien
T
trenki2 Offline OP
Junior Member
trenki2  Offline OP
Junior Member
T

Joined: Aug 2016
Posts: 95
Wien
I want to trade stock CFDs with Interactive Brokers. For this I have setup my AssetList file like this:

Code:
GOOG,50,0.01,0,0,0.01,0.01,0,10,1,0,GOOG-CFD-SMART-USD
FB,50,0.01,0,0,0.01,0.01,0,10,1,0,FB-CFD-SMART-USD
AGN,50,0.01,0,0,0.01,0.01,0,10,1,0,AGN-CFD-SMART-USD
UNH,50,0.01,0,0,0.01,0.01,0,10,1,0,UNH-CFD-SMART-USD
SBUX,50,0.01,0,0,0.01,0.01,0,10,1,0,SBUX-CFD-SMART-USD
AAPL,50,0.01,0,0,0.01,0.01,0,10,1,0,AAPL-CFD-SMART-USD



When Zorro tries to get the asset history it prints the following error:

Code:
!CFD market data is not provided; please submit a market data request on the underlying stock: GOOG@ISLAND



This is because Interactive Brokers does not give asset history for stock CFDs but one should rather subscribe the underlying stock history.

---------

I contacted support. Currently the only way to go around this problem it to write your own Broker Plugin which wraps the IB.dll and adapts the parameters accordingly.

I have attached my solution for this.

--------

I also now have another problem, I get this warning:

Code:
!Order Event Warning:Attribute 'Outside Regular Trading Hours' is ignored based on the order type and destination. PlaceOrder is now being processed.



I am unsure what I am supposed to do with this warning? Will opening and closing trades work as expected? Can I suppress this warning somehow?

Re: Stock CFD Trading with Interactive Brokers [Re: trenki2] #464446
02/14/17 16:55
02/14/17 16:55
Joined: Jul 2000
Posts: 27,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,982
Frankfurt
AFAIK you get this warning when you trade outside trading hours, but the trade is nevertheless processed, as is the case with some assets such as options.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1