After selecting an order using OrderSelect() it's possible to get many details of an order from the order history but I can't see an option to get the swap value (as listed in account history). Is this possible?
I would calculate it using something like
Code: Select all
swapvalue := OrderProfit - (OrderProfitPips * OrderLots * PipValue);
but of course PipValue is not available either :-/
I would really like to see these functions available in the API.
Regards,
Steve