Hi,
First of all, happy New-Year to all the support team, full of new projects and easy-to-fix small bugs...
I have a question about strategies programming. Let assume this situation :
A BuyLimit order with an attached TakeProfit is hit, and the order is partially filled.
Then the price goes back up and hit the TP, which is unfortunally also partially filled so the order is partially closed.
Thus my order spilts in 3 parts:
1) the still pending unfilled part
2) the filled and not closed part
3) the closed part
The order is still one and only one object, so I do not have any access to those parts.
From the "CLOSED" state, I can know that the TP was hit.
Unfortunally, there is no such thing as "filledAmount", nor "closedAmount"
What wil be returned by getAmount() ? (the size of the closed part, the size of the unclosed part, or the size of the filled part before the partial closing ?)
How can I know that the TP was partially filled ?
Is it right that requestedAmount remains always the size of the initial pending order ?, even when some part is filled or closed ?
Thank you very much for your help,
Michel