Better get an orders current profit
OrderProfit
Returns profit of the currently selected order.
double OrderProfit(); |
Returned value
The net profit value (without swaps or commissions) for the selected order. For open orders, it is the current unrealized profit. For closed orders, it is the fixed profit.
You could check the documentation.
OrderProfit - Trade Functions - MQL4 Reference
- docs.mql4.com
OrderProfit - Trade Functions - MQL4 Reference
Not talking pips here.
But which formula is more accurate:
or