Download MetaTrader 5
To add comments, please log in or register
Make profit on MQL5 services. It's easy!
MCorleone 2015.11.04 13:42 

Hi, everyone!

I just started programming ea in MQL4 and I've been trying to make a simple robot that opens the order when the market reaches a specific price. That is simple enough, however I want it to open the order again at the same price when the stop loss of the order is reached.

But I can't find the way to make that happen. When the stop loss is reached the order is closed and doesn't open again. So it would be great if someone could give some advice about how to code that or send me a link with a tutorial.


Siti Latifah
Siti Latifah 2015.11.04 19:00  

you can put sellstop / buystop when price almost hit stoploss.

if stoploss does not hit, delete the pending order.

To add comments, please log in or register