Gamestudio Links
Zorro Links
Newest Posts
zorro with ccxt?
by opm. 03/03/26 03:17
ZorroGPT
by TipmyPip. 03/02/26 18:13
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
Camera always moves upwards?
by clonman. 02/21/26 09:29
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (AndrewAMD, Dooley, Quad), 5,234 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
IB live trading - negative prices #473192
06/20/18 09:03
06/20/18 09:03
Joined: Mar 2017
Posts: 65
G
Ger1 Offline OP
Junior Member
Ger1  Offline OP
Junior Member
G

Joined: Mar 2017
Posts: 65
I am testing futures trading via Zorro's IB API at the moment.

When I am closing trades negative prices are returned and due to this huge losses are recorded.

Below an example from the logfile:

Name,Type,Asset,ID,Lots,Open,Close,Entry,Exit,Profit,Roll,ExitType
TradeTest,Long,ES,18,1,14/06/2018 10:32.14/06/2018 10:32,2778.8,-2778.8,-277925,0,Sold

I entered and exited at the same price but a loss of $277k is shown.
Is this a common error? All it took was 5 trades and the shown demo-account size was negative.

I also tried various broker commands but could not solve it.

Re: IB live trading - negative prices [Re: Ger1] #473200
06/21/18 05:35
06/21/18 05:35
Joined: Jul 2000
Posts: 28,077
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,077
Frankfurt
Can you show that script, or send it to support?

Re: IB live trading - negative prices [Re: jcl] #473201
06/21/18 06:42
06/21/18 06:42
Joined: Mar 2017
Posts: 65
G
Ger1 Offline OP
Junior Member
Ger1  Offline OP
Junior Member
G

Joined: Mar 2017
Posts: 65
I tried various ones including TradeTest and all had the same results.

Okay, thanks I'll send it to the support.


Moderated by  Petra 

Gamestudio download | 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