Get Aggregated Pips for a pair in positions
Get Aggregated Pips for a pair in positions
05 Aug 2016, 14:26
Hello,
If I have 3 positions, GBPUSD (0.01), AUDNZD (0.01) and another GBPUSD (0.04), how can I get the aggrigated pips for GBPUSD?
Thanks,
Chris
Replies
cousens
06 Aug 2016, 13:13
RE:
Thanks croucrou but if you add them up manually, they don't = the aggregated pip total.
I think that the lot size has something to do with it?
Thanks
croucrou said:
Hi,
if noone gives you a better answer, try to:
1. find all positions by Symbol with Positions.Find,
2. measure each positions' pips by calculating difference between current price and entry price,
3. add up the pips of the all found positions for the Symbol.
@cousens
croucrou
05 Aug 2016, 17:35
Hi,
if noone gives you a better answer, try to:
1. find all positions by Symbol with Positions.Find,
2. measure each positions' pips by calculating difference between current price and entry price,
3. add up the pips of the all found positions for the Symbol.
@croucrou