Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 945 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 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: 27,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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 | 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