How to select and get position attributes by label?
How to select and get position attributes by label?
08 May 2015, 02:15
Hello People
I need help regarding this issue, I have many positions with a single label id, I would like to get the unrealized profit/loss for those positions.
There is Symbol.UnrealizedNetProfit, however that's for a Symbol. I also have Position.GrossProfit but that's only for the last executed order.
I found an indirect way to do this which is simple arithmetic for the entry point and the current price, however it may be a little inaccurate due to swap/spreads and commissions.
Any help/ideas are appreciated.
Replies
Spotware
17 Jun 2015, 17:46
Dear Trader,
We do not provide coding assistance services. We more than glad to assist you with specific questions about cAlgo.API. You also can contact one of our Partners or post a job in Development Jobs section for further coding assistance.
@Spotware
SwXavi
08 May 2015, 11:41
RE:
8053143 said:
Sorry I'm new to calgo it was easy, heres the code:
@SwXavi