Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 730 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

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

Chief Engineer
jcl  Offline

Chief Engineer

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

Joined: Jul 2017
Posts: 784
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