https://docs.mql4.com/trading/OrderSelect then check Bid vs https://docs.mql4.com/trading/OrderOpenPrice if > 20 pips https://docs.mql4.com/trading/OrderModify to set the new SL
rozirozi:
Hi guys, i need help with set of stoploss in my EA. I need code for this:
Hi guys, i need help with set of stoploss in my EA. I need code for this:
- Large, colored, posts will NOT get you quicker or better answers. Just the opposite, we don't like to be SHOUTED at.
- No Slaves here, learn to code or pay someone. We're not going to code it FOR you. We are willing to HELP you.

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
Hi guys, i need help with set of stoploss in my EA. I need code for this: if the current price is 20 pips greater than the opening price of current trade, set stoploss to the opening price of current trade.
Thank you