Forum

Automatic stop loss EA for MT5

Hi all, I've been looking an EA to place a stop-loss order automatically for MT5. I tried to build myself, but my knowledge is not deep enough and neither I find any EA for MT5. (I found few for MT4 though). If anyone can provide a code or mql5 file, it would be very appreciated. Thank you so much

failed modify [Invalid request] error

My goal is place an automatic stop loss when I click either buy or sell, and below is the code I tried. It results two errors. 1st one "failed modify buy 0.00 sl: 0.0000, tp: 0.0000 -> sl: -100.000, tp:0.0000 [Invalid request] error" 2nd one "failed modify buy 0.00 sl: 0.0000, tp: 0.0000 -> sl