(Positions.Find(order.label) == null) Equivalent for Pending Orders
Created at 09 Nov 2015, 04:54
SI
(Positions.Find(order.label) == null) Equivalent for Pending Orders
09 Nov 2015, 04:54
Hi cTDN,
I am new to the forum and C-trader.
I need to be able to look through pending orders and see if a label already exists.
Or in simple terms how do I achieve this
(Positions.Find(order.label) == null)
But for pendingorders ?
Thanks so so much for your time, Cheers,
A
Spotware
09 Nov 2015, 18:13
Dear Trader,
Please have a look at the following code snippet. It loops through all pending orders and if a pending order has the label "NewLabel" it prints the word "Hello" to the log.
In addition, we recommend you to have a look at the API Reference and Guides section of cTDN.com
@Spotware