Any rookie question, so as not to clutter up the forum. Professionals, don't pass by. Nowhere without you - 6. - page 1050
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
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.