OrderProfit

 

Hi

Couple of simple questions:


1) Is order profit always in the account currency ?

2) To calculate actual (net) profit = OrderProfit() + OrderCommission() + OrderSwap() ?


THANKS


Paul

 
paul murfin:

Hi

Couple of simple questions:

1) Is order profit always in the account currency ?

2) To calculate actual (net) profit = OrderProfit() + OrderCommission() + OrderSwap() ?


  1. yes.
  2. Loop through OrderHistoryTotal().

 

great thanks :)

 
  1. Supposed to be
  2. Some brokers do not use the commission/swap fields but instead add balance entries in history.
Reason: