Detect partially closed positions

Created at 06 Jul 2015, 01:54
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
BA

bartcoop2

Joined 06.07.2015

Detect partially closed positions
06 Jul 2015, 01:54


Hi,

I'm creating a Position Manager that will implement Partial Closure after a certain amount of pips.

The problem i'm having is that there is no way to detect if a position has already been partially closed.

I had 3 different ideas but none of them seem to be implemented:

1- Check the realized commission or profit for the position, if it's > 0 then we know that i've already taken partial profit.

2- Modify comment to include a specific string that will indicate if it's already been partially closed

3- Directly find out if the position is full or partial

Any ideas?

thanks


@bartcoop2
Replies

Spotware
06 Jul 2015, 17:34

Dear Trader,

We suggest you to use a list where you can save the label and the status of the positions (partially closed or not).

When you partially close a position you can update the status of the position in the list.


@Spotware