OrderProfit() - This will return only Pips value or Final Profit/Loss after calculating swap and commission also.
Default Code :
Recently i founded in broker which charging Commission, P/L returning by this function is different than original P/L.
Should i try like this?
Should i have to use OrderProfit() + OrderCommission() + OrderSwap() or OrderProfit() is enough?
Total Profit is OrderProfit() + OrderSwap() + OrderCommission(). Some brokers don't use the Commission/Swap fields. Instead, they add balance entries. (Maybe related to Government required accounting/tax laws.)
"balance" orders in account history - Day Trading Techniques - MQL4 programming forum (2017)
Broker History FXCM Commission - «TICKET»
Rollover - «TICKET»>R/O - 1,000 EUR/USD @0.52 #«ticket» N/A OANDA Balance update
Financing (Swap: One entry for all open orders.)
Total Profit is OrderProfit() + OrderSwap() + OrderCommission(). Some brokers don't use the Commission/Swap fields. Instead, they add balance entries. (Maybe related to Government required accounting/tax laws.)
Then, what is the best approach to calculate P/L. Can you provide me sample code
"balance" orders in account history - Day Trading Techniques - MQL4 programming forum (2017)
URL is broken. Can you provide correct URL
One extra slash, missing quote. Try: "balance" orders in account history - Day Trading Techniques - MQL4 programming forum

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
OrderProfit() - This will return only Pips value or Final Profit/Loss after calculating swap and commission also.
Default Code :
Recently i founded in broker which charging Commission, P/L returning by this function is different than original P/L.
Should i try like this?
Should i have to use OrderProfit() + OrderCommission() + OrderSwap() or OrderProfit() is enough?