Download MetaTrader 5

How do I calculate the profit based on MODE_SWAPTYPE?

To add comments, please log in or register
Track Market top sellers!
Anton Nel
37074
Anton Nel 2013.11.19 05:50 
MODE_SWAPTYPE: 0 - in points; 1 - in the symbol base currency; 2 - by interest; 3 - in the margin currency.

How do I calculate the profit based on MODE_SWAPTYPE in MQL4?

Does anyone know where can I find a method with parameters and return values in profit?

Thanks.

whroeder1
14519
whroeder1 2013.11.19 12:41  

Swap only comes in when you keep the order open past 4pm NY time.

OrderSelect followed by profit = OrderProfit() + OrderSwap() + OrderCommission()

Anton Nel
37074
Anton Nel 2013.11.19 12:51  

Thank you for your replied.

I mean I need to work out before open the trade.

Thanks.

Ian Flanagan
549
Ian Flanagan 2013.11.19 13:40  

Search for it, I've made a long explanation before

To add comments, please log in or register