Virtual StopLoss

 

Hello traders,

i wanted to know if there is any EA to put sl only when the level is reached not before. I'am aware of stop hunting. It's not so easy, because during high volatility, the stop order could be not executed if there is no counterpart, at this moment the EA have to close at the market price .

Any solution ??

Thanks.

 

I use some type of code like this:

if(OrderSelect(ticketa,SELECT_BY_TICKET)==true)

{

if(OrderOpenPrice()-sl1*Point>Bid)// sl1=stop loss in pips

{

OrderClose(OrderTicket(),OrderLots(),MarketInfo(OrderSymbol(),MODE_BID),999,Red);

}

}

Maybe a bad example, but yes it is possible.

Reason: