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.
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
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.