How can I get the last result of a closed position?

Created at 26 Nov 2022, 17:50
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

baolinhhk9

Joined 23.11.2022

How can I get the last result of a closed position?
26 Nov 2022, 17:50


I try many way to get the last result of a closed position (gross profit is higher or lower than 0)   but:

- "LastResult?.Position.GrossProfit" give me the gross profit of the position which doesn't close (still exitstence) 

- "History........." give me gross profit of all position before.

I also can't find how to determine when a position close to catch this time in OnTick();

How can I deal with this problem? 


@baolinhhk9
Replies

PanagiotisChar
28 Nov 2022, 09:27

Hi there,

Your question is not very clear. Are you looking for the gross profit of the last deal? Or of the last closed position?

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar

baolinhhk9
28 Nov 2022, 16:48

RE: last closed position pleased.

PanagiotisChar said:

Hi there,

Your question is not very clear. Are you looking for the gross profit of the last deal? Or of the last closed position?

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 

 


@baolinhhk9

baolinhhk9
29 Nov 2022, 18:03

RE thanks you.

PanagiotisChar said:

Hi there,

Check Positions.Closed event.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@baolinhhk9