You may use CheckStopLoss_Takeprofit function from this link:
https://www.mql5.com/en/articles/2555
Although it is MQL4 it could be helpful.
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