Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
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
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, rki), 390 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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