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
2 registered members (AndrewAMD, Nymphodora), 972 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
Error message : Closing Order Quantity #476645
03/18/19 21:07
03/18/19 21:07
Joined: Aug 2018
Posts: 98
O
OptimusPrime Offline OP
Junior Member
OptimusPrime  Offline OP
Junior Member
O

Joined: Aug 2018
Posts: 98
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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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: 783
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 783
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,977
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,977
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: 98
O
OptimusPrime Offline OP
Junior Member
OptimusPrime  Offline OP
Junior Member
O

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

Joined: Jul 2017
Posts: 783
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: 98
O
OptimusPrime Offline OP
Junior Member
OptimusPrime  Offline OP
Junior Member
O

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