Good evening... Could you please tell me how to find the penultimate open buy order? Let's say there are 5 open buy orders... I know how to find the last one, but how to find the penultimate one?
On 4K screens, does terminal operation give any advantage?
Post a screenshot of what it looks like.
Also interesting. Apparently you have to change the DPI, and that's fraught. Today my friend asked me on Skype why I have not checked "optimization" in MT4 tester. Later it turned out that he has 12" screen and everything is too small for his eyesight. He changed DPI and the checkmark is out of sight - this is a known effect.
Advised him to write to servicedesk, this is what they replied, this is from our correspondence :
[Thu 16.06.16 17:03:53] Aleksey Smirnov: Posted screenshots, described the problem... Wrote them "I wish interface elements were not lost when working with resolutions other than 96 dpi".
:( So, I will have to get used to small letters or look for tweaks in the registry to make everything readable on the screen...
[Thu 16.06.16 17:04:41] Alexey Volchanskiy: I see... what kind of monitor is it?
Apparently a parenthesis or an inverted comma needs to be drawn somewhere, I don't understand ............. I looked at similar examples, it seems to be the same ,,,,,,,,,,,
specify the function and its constant DeleteOrder(ticket) if you need it and it should work
How to correctly write a constant in a call to another function
For example, here is a function:
void DeleteOrder(ulong ticket)
{
//--- проверим наличие ордера if(!OrderSelect(ticket))
{
Print("Ордер #",ticket," не найден");
return;
}
//--- все готово, делаем попытку удалить ордерif(!trade.OrderDelete(ticket))
{
//--- сообщим о неудачеPrint("Метод OrderDelete() потерпел неудачу. Код возврата=",trade.ResultRetcode(),
". Описание кода: ",trade.ResultRetcodeDescription());
}
else
{
Print("Метод OrderDelete() выполнен успешно. Код возврата=",trade.ResultRetcode(),
" (",trade.ResultRetcodeDescription(),")");
}
//---
}
then I write another
// проверка условия на удаление лимитного ордераbool bLimitDeleteSignal=false;
//if(OrderSelect(ticket) ==true)if(OrderGetInteger(ORDER_TYPE)==ORDER_TYPE_BUY_LIMIT)
bLimitDeleteSignal=LimitDelBuySignal();
//if(OrderSelect(ticket) ==true)if(OrderGetInteger(ORDER_TYPE)==ORDER_TYPE_SELL_LIMIT)
bLimitDeleteSignal=LimitDelSellSignal();
// если есть сигнал на закрытие позиции - закрываем и выходимif(bLimitDeleteSignal==true)
{
Print("Удаляем ордер!!!");
вот здесь вызываю верхнею функцию чтобы удалить ордер по тикеру , и не знаю как записать чтобы компилятор неругался
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.
I didn't find one
Here's a search:
Here's a search:
Ahhhh, I know. I couldn't find an owl like that.
where to find the "trailing stop" script (EA) and how to insert it into the soventic
Forum on trading, automated trading systems and trading strategy testing
Questions from Beginners
Karputov Vladimir, 2016.06.13 14:29
The standard delivery includes an Expert Advisor ...\MQL5\Experts\Examples\MACD\MACD Sample.mq5. Check out the function implementation ****Modified.Carried over:
Anton Zverev:On 4K screens, does terminal operation give any advantage?
Post a screenshot of what it looks like.
Carried over:
Anton Zverev:On 4K screens, does terminal operation give any advantage?
Post a screenshot of what it looks like.
Also interesting. Apparently you have to change the DPI, and that's fraught. Today my friend asked me on Skype why I have not checked "optimization" in MT4 tester. Later it turned out that he has 12" screen and everything is too small for his eyesight. He changed DPI and the checkmark is out of sight - this is a known effect.
Advised him to write to servicedesk, this is what they replied, this is from our correspondence :
[Thu 16.06.16 17:03:53] Aleksey Smirnov: Posted screenshots, described the problem... Wrote them "I wish interface elements were not lost when working with resolutions other than 96 dpi".
:( So, I will have to get used to small letters or look for tweaks in the registry to make everything readable on the screen...
[Thu 16.06.16 17:04:41] Alexey Volchanskiy: I see... what kind of monitor is it?
[Thu 16.06.16 17:07:02] Alexei Smirnov: 12" 1366x768
specify the function and its constant DeleteOrder(ticket) if you need it and it should work
How to correctly write a constant in a call to another function
For example, here is a function:
then I write another