Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 08/22/26 08:44
Max Number of Strategies in /Strategy folder
by Martin_HH. 08/17/26 07:54
Pause button for evaluation shell?
by AndrewAMD. 08/13/26 17:16
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 08/10/26 12:46
phantom() not defined in indicators.c
by jcl. 08/07/26 11:45
Accepting new programming clients
by AndrewAMD. 08/06/26 21:25
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 1,191 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
riggi89, shuhari, KD1990, Student_64151, Koti
19230 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: 102
O
OptimusPrime Offline OP
Member
OptimusPrime  Offline OP
Member
O

Joined: Aug 2018
Posts: 102
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: 28,132
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,132
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: 787
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 787
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: 28,132
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,132
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: 102
O
OptimusPrime Offline OP
Member
OptimusPrime  Offline OP
Member
O

Joined: Aug 2018
Posts: 102
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: 787
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 787
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: 102
O
OptimusPrime Offline OP
Member
OptimusPrime  Offline OP
Member
O

Joined: Aug 2018
Posts: 102
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


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