API Support Forum
OEC API > Order Execution > Order offset pairing
Author Topic: Order offset pairing
(3 messages, Page 1 of 1)
Moderators: VPfau
PArnoldson
Posts: 154
Joined: Oct 03, 2007


Posted: Jul 31, 2008 @ 01:49 PM             Msg. 1 of 3
I've noticed that often times you will close out orders in order of "smallest profitable position" first, and that's great, but then, sometimes, for some reason, you stray away from that rule and start closing out most profitable positions first, is there a way to specify that we always want to close out/mach up most profitable orders or least profitable orders first?

what is the formula you are using and explain why do what you are doing?
Edited by PArnoldson on Jul 31, 2008 at 01:50 PM
RVinicky
-Administrator-
Posts: 62
Joined:


Posted: Aug 01, 2008 @ 11:14 AM             Msg. 2 of 3
If you are refering to how positions are offset in the software, this is based on FIFO (first-in-first-out).

Robert Vinicky
jlanawalt
Posts: 88
Joined: Feb 12, 2009


Posted: Mar 26, 2009 @ 07:55 PM             Msg. 3 of 3
The FIFO statement here seems to be in conflict with the statements in "Close by ticket #"* in suggestions where they talk about the cost averaging of positions. Our experience seems to match that description. I wanted to point future browsers to the other information to get the bigger picture.

* https://www.openecry.com/cfbb/index.cfm?page=topic&topicID=206