This forum is in read-only mode now. You may discuss your questions on forums of MQL4.community and MQL5.community

MT4 expert closes orders without a reason


Back to topics list
avatar
9
borko 2005.04.14 16:33 
MT4 expert closes orders without a reason. Here is a ticket number:503690
I have an expert running for a month but this week it closed several times without any reason.
OrderClose is based on time, maybe you are playing with the time this week:

if (Hour()>=CloseHour)
{
if (OrderType()==OP_SELL)
OrderClose(OrderTicket(),OrderLots(),Ask,Slippage,Red);
else
OrderClose(OrderTicket(),OrderLots(),Bid,Slippage,Red);
}
return(0);
avatar
5
RubenIbarrientos 2005.04.14 19:50 
avatar
9
borko 2005.04.14 22:29 
Thanks Ruben Ibarrientos,
I experience the same problem.
The problem is since 12.01.05 and it haven't been fixed?
avatar
9
borko 2005.04.15 10:24 
I have the same problem today, several position closed when starting MT4.
avatar
4464
Slawa 2005.04.15 10:50 
please see last topics on the forum. there is beta-testing.
avatar
13
simi 2005.04.28 01:17 
I have quite a similar problem, but not exactly the same. I have an expert sending market orders and conditional stop orders. It works fine, but sometimes pending positions are cancelled without any reason. Slava, FYI: my acct nr 48242, today nearly all stop orders were cancelled at exactly 21.15 (CET time).

Is it a bug in beta version client / server ?

Simi


avatar
4464
Slawa 2005.04.28 13:19 
I have quite a similar problem, but not exactly the same. I have an expert sending market orders and conditional stop orders. It works fine, but sometimes pending positions are cancelled without any reason. Slava, FYI: my acct nr 48242, today nearly all stop orders were cancelled at exactly 21.15 (CET time).

Is it a bug in beta version client / server ?

if You was connected to our server then send mail to supportATmetaquotesDOTru with details
avatar
44
FrankC 2005.04.30 04:25 
Has this issue being resolved?
Back to topics list  
Download MetaTrader 5 (450 Kb, web installer) — a new terminal for financial markets