How can I get the last result of a closed position?
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?
Replies
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?
Need help? Join us on Telegram
Need premium support? Trade with us
@baolinhhk9
PanagiotisChar
29 Nov 2022, 08:58
Hi there,
Check Positions.Closed event.
Need help? Join us on Telegram
Need premium support? Trade with us
@PanagiotisChar
baolinhhk9
29 Nov 2022, 18:03
RE thanks you.
PanagiotisChar said:
Hi there,
Check Positions.Closed event.
@baolinhhk9
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