It's better not to stop the process. Put everything back the way it was and add
//+-----------------------------------------------------------------------------------------------+//| Функция открытия ордера на покупку |//+-----------------------------------------------------------------------------------------------+void vOrderOpenBuy()
{
// Тикет ордераint iOTi = 0;
iOTi = OrderSend(Symbol(), OP_BUY, LOT(), Ask, Slippage, 0, 0, "", Magic, 0, clrNONE);
Print(bCheckOrders());// Проверим открылся ли ордерif(iOTi > 0)
// Есди да, то выставим уровни убытка и прибыли
vOrderModify(iOTi);
else// Если нет, то получим ошибку
vError(GetLastError());
}
//+-----------------------------------------------------------------------------------------------+//| Функция открытия ордера на продажу |//+-----------------------------------------------------------------------------------------------+void vOrderOpenSell()
{
// Тикет ордера int iOTi = 0;
iOTi = OrderSend(Symbol(), OP_SELL, LOT(), Bid, Slippage, 0, 0, "", Magic, 0, clrNONE);
Print(bCheckOrders());// Проверим открылся ли ордерif(iOTi > 0)
// Есди да, то выставим уровни убытка и прибыли
vOrderModify(iOTi);
else// Если нет, то получим ошибку
vError(GetLastError());
}
//+-----------------------------------------------------------------------------------------------+
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
Try this, remove bCheckOrders() from OnTick() and put it as highlighted.
I did. It had no effect.
I found function
voidSleep(
intmilliseconds// interval
);
is it possible to solve this problem?
I did. It had no effect.
I found a function
voidSleep(
intmilliseconds// interval
);
is it possible to use it to solve the problem?
It's better not to stop the process. Put everything back the way it was and add
then see what the log prints.
Inputs are constants. Extern apply or assign an instance variable to another instance.
I've never had a problem with it. I do it regularly.
It is better not to stop the process. Put everything back the way it was and add
then see what the magazine prints.
I did. It's exactly the same as the last one.
No errors, or anything else.
Never had a problem with that. I do it regularly.
And it shouldn't be!!! input can be compared. I think pribludilsa #: did not give out all the information
mql5 ?