Order Status: Pending vs Open

How to create strategies and indicators
Message
Author
32Deuce
Posts: 1
Joined: Sat May 08, 2010 11:07 am
Location: Everywhere

Order Status: Pending vs Open

#1 Postby 32Deuce » Sat Sep 11, 2010 11:25 pm

Hello,

Does anyone know of a way to tell the difference between a pending order and an open order? If my understanding is correct orderhandle and orderstotal will give the same result.

For example if I have just created 3 pending orders then,

Orderhandle1 = 1
Orderhandle2 = 1
Orderhandle3 = 1
Orderstotal = 3

If one pending order has opened then,

Orderhandle1 = 1
Orderhandle2 = 1
Orderhandle3 = 1
Orderstotal = 3

and there is no difference.


Thank you in advance

User avatar
Terranin
Site Admin
Posts: 833
Joined: Sat Oct 21, 2006 4:39 pm

Re: Order Status: Pending vs Open

#2 Postby Terranin » Sun Sep 12, 2010 9:46 am

32Deuce wrote:Hello,

Does anyone know of a way to tell the difference between a pending order and an open order? If my understanding is correct orderhandle and orderstotal will give the same result.

For example if I have just created 3 pending orders then,

Orderhandle1 = 1
Orderhandle2 = 1
Orderhandle3 = 1
Orderstotal = 3

If one pending order has opened then,

Orderhandle1 = 1
Orderhandle2 = 1
Orderhandle3 = 1
Orderstotal = 3

and there is no difference.


Thank you in advance


You need to go through the orders list with OrderSelect and check then OrderType.
Hasta la vista
Mike


Return to “FT API”

Who is online

Users browsing this forum: No registered users and 23 guests