Gamestudio Links
Zorro Links
Newest Posts
hello all
by jcl. 09/24/19 09:04
Right AssetsFix for trading Forex on IG?
by Andy60. 09/23/19 21:11
Converting fbx file to mdl7
by Dark_Light. 09/23/19 15:50
New system for Zorro S subscriptions
by jcl. 09/23/19 08:34
IG plugin initial release
by Andy60. 09/23/19 07:40
Any chance of PBR materials with A8?
by Dooley. 09/22/19 21:43
Levels, textures, etc for A8
by Dooley. 09/22/19 03:57
AUM Magazine
Latest Screens
The Space Between
Pogostuck: Rage With Your Friends
Worst Case Z
AckCon'18 - Lotter vs the World 2 - Preview Release
Who's Online Now
8 registered members (svenbob, Tamas, MatPed, Superku, kvm, jenGs, 3run, 1 invisible), 642 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Zylo, Hjuutgckk, Dark_Light, oxygenjoe, web20tpo
18292 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Error message : Closing Order Quantity #476645
03/18/19 21:07
03/18/19 21:07
Joined: Aug 2018
Posts: 87
O
OptimusPrime Offline OP
Junior Member
OptimusPrime  Offline OP
Junior Member
O

Joined: Aug 2018
Posts: 87
Hi Team:

Does anyone have any experience with this Interactive Brokers error message and possible causes/remedies?

" !The closing order quantity is greater than your current position." It's typically followed by Error 075

Much appreciated.


Thanks so much,

OptimusPrime

Re: Error message : Closing Order Quantity [Re: OptimusPrime] #476649
03/19/19 10:44
03/19/19 10:44
Joined: Jul 2000
Posts: 27,010
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,010
Frankfurt
The IB API has no command for closing. How did you get that message? Was it an asset that cannot be shorted?

Re: Error message : Closing Order Quantity [Re: jcl] #476650
03/19/19 15:21
03/19/19 15:21
Joined: Jul 2017
Posts: 400
Z
Zheka Offline
Senior Member
Zheka  Offline
Senior Member
Z

Joined: Jul 2017
Posts: 400
You will get this from IB when you are reversing a position (i.e. short 2 when long 1). However, this is normally a "warning", not something that actually prohibits order placement.

You can (AFAIK) suppress it by "bypass Order precautions for API orders" in IBG/TWS and/or disable the "Cross Side Warning"

That Zorro does not actually place an order is most probably because of how Zorro handles this warning.

Last edited by Zheka; 03/20/19 01:59.
Re: Error message : Closing Order Quantity [Re: Zheka] #476656
03/20/19 07:59
03/20/19 07:59
Joined: Jul 2000
Posts: 27,010
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,010
Frankfurt
Warnings won't matter, but error 075 means that the position could really not be opened. Check the log, maybe there is another error or the asset cannot be shorted.

Re: Error message : Closing Order Quantity [Re: jcl] #476659
03/20/19 11:49
03/20/19 11:49
Joined: Aug 2018
Posts: 87
O
OptimusPrime Offline OP
Junior Member
OptimusPrime  Offline OP
Junior Member
O

Joined: Aug 2018
Posts: 87
Thanks JCL and Zheka.. I am testing on the USD/JPY (or any FX pair really).


Thanks so much,

OptimusPrime

Re: Error message : Closing Order Quantity [Re: OptimusPrime] #476755
03/29/19 09:44
03/29/19 09:44
Joined: Jul 2017
Posts: 400
Z
Zheka Offline
Senior Member
Zheka  Offline
Senior Member
Z

Joined: Jul 2017
Posts: 400
Did you manage to resolve the issue?

Re: Error message : Closing Order Quantity [Re: Zheka] #476780
03/31/19 19:25
03/31/19 19:25
Joined: Aug 2018
Posts: 87
O
OptimusPrime Offline OP
Junior Member
OptimusPrime  Offline OP
Junior Member
O

Joined: Aug 2018
Posts: 87
Hi Zheka: thanks for the followup! I have been working on various parts of the script and did not notice what I changed specifically to remove the warning. I no longer get the warning.

I will retrace my steps and see what change(s) removed the warning.


Thanks so much,

OptimusPrime


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