Simply use OrderCalcProfit().
![Documentation on MQL5: Trade Functions / OrderCalcProfit Documentation on MQL5: Trade Functions / OrderCalcProfit](https://c.mql5.com/36/57/documentation-on-mql5-trade-functions__6.png)
Documentation on MQL5: Trade Functions / OrderCalcProfit
- www.mql5.com
OrderCalcProfit - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Its a MT5 Script if any one could turn it into an EA it would be very much appreciated.