Simply use OrderCalcProfit().

Documentation on MQL5: Trade Functions / OrderCalcProfit
- www.mql5.com
OrderCalcProfit - Trade Functions - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5

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.