Alert(log(10)); log(10)=2.302585092994046. MathLog is a natural logarithm, just like simple Log. There is no decimal log in MQL. I wanted the decimal logarithm and through it the number of digits in the integer part of the number, the so-called number order. The decimal logarithm LG(X) can be obtained through any other logarithm. Here LG(X)=Log(X)/Log(10)
I don't understand where the answer is in there. You mean this: "The function has a built-in check for the status of the EA stop flag every 0.1 seconds"? If so, how can this flag be removed?
One of the reasons: after 10 seconds of slip, Bid gets old and there will be an error. Check logs. You can increase slip or RefreshRates(). In tester, slips glop and all is OK
First, put this at the end of the indicator. When you see the mark on the screen, figure out how to put what you need into it. Here you get advice, but you have to do it yourself.
int Число=25;
if(ObjectFind("Итог")<0) // Проверка наличия метки для вывода информации
{
ObjectCreate("Итог", OBJ_LABEL, 0, 0, 0); // Создание
ObjectSet("Итог", OBJPROP_CORNER, 1); // Правый верхний угол
ObjectSet("Итог", OBJPROP_XDISTANCE, 10); //X
ObjectSet("Итог", OBJPROP_YDISTANCE, 10); //Y
}
ObjectSetText("Итог", string(Число), 14,"Arial",Yellow); // Вывод в метку
rapid_minus: The function has a built-in check for the status of the EA's stop flag every 0.1 seconds. how do I remove this flag?
The flag raises the terminal to inform the Expert Advisor that it will be silenced in three seconds. Seeing the flag, the slip glows down and does not prevent the EA from collecting toys before escaping.
LRA: Alert(log(10)); log(10)=2.302585092994046. MathLog as simply Log is anatural logarithm. There is no decimal log in MQL. I wanted the decimal logarithm and through it the number of digits in the integer part of the number, the so-called number order. The decimal logarithm LG(X) can be obtained through any other logarithm. Here LG(X)=Log(X)/Log(10)
log(10) is really not 1, but the fact that mql has no decimal logarithm surprised me...
What is it then? https://docs.mql4.com/ru/math/mathlog10 although there is a mistake in the text.
It's clear that the bid has aged, but I was hoping that this design would allow me to open several positions on the current bar with different bid opening prices. And in the tester it works fine, but on the demo it opens one position and closes immediately. how to avoid it is not clear.
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.
Good afternoon.
I'm working through the code of an expert and can't understand one line:
From the name of the variable I understand what the programmer wanted to achieve.
But at my amateur programming level I don't understand anything exceptMarketInfo(Symbol(),MODE_MINLOT).
Explain what for, where and with what sauce)
Do you understand what logarithm is?
Although this code is not very clear. It's not clear why the logarithm of a value should be divided by logarithm(10) if log(10) will always be 1.
log(10) will always be 1.
poz = OrderSend(Symbol(),OP_SELL,lot,Bid,slip,0,0,NULL,magic,Red);
Sleep(10000);
poz = OrderSend(Symbol(),OP_SELL,lot,Bid,slip,0,0,NULL,magic,Red);
Sleep(10000);
poz = OrderSend(Symbol(),OP_SELL,lot,Bid,slip,0,0,NULL,magic,Red);
Sleep(10000);
poz = OrderSend(Symbol(),OP_SELL,lot,Bid,slip,0,0,NULL,magic,Red);
Sleep(10000);
poz = OrderSend(Symbol(),OP_SELL,lot,Bid,slip,0,0,NULL,magic,Red);
First, put this at the end of the indicator. When you see the mark on the screen, figure out how to put what you need into it. Here you get advice, but you have to do it yourself.
Alert(log(10)); log(10)=2.302585092994046. MathLog as simply Log is anatural logarithm. There is no decimal log in MQL. I wanted the decimal logarithm and through it the number of digits in the integer part of the number, the so-called number order. The decimal logarithm LG(X) can be obtained through any other logarithm. Here LG(X)=Log(X)/Log(10)
log(10) is really not 1, but the fact that mql has no decimal logarithm surprised me...
What is it then? https://docs.mql4.com/ru/math/mathlog10 although there is a mistake in the text.
The question is solved in a much simpler way.