mcs wrote:
Probably too late, but anyway.
No, getProfitLossInUSD() method does not include swaps (or maybe it calculates those fees incorrectly).
Moreover, I'm not aware of any method to get swaps (shame on you JForex API developers).
I usually (over)estimate swaps by multiplying order commission by 1.5, so in my code there is something like this:
profitSum = o.getProfitLossInAccountCurrency() - o.getCommission() * 1.5;
where o is IOrder object.
Thanks You