Thanks for the advice. But for some reason the function seems a bit narrow:
500 SBs were used and somehow 99.7% of them don't seem to fit within three sigmas.
Well, we need to calculate the software directly and check it. There is not much to say from the figure - everything seems correct to me.
If the generation scheme is binomial and neighboring samples are completely independent, the TSP should be satisfied. But if the independence condition is not fulfilled (bad oscillator, etc.), then "fat tails" are quite possible
// Функция GetTextExtentPoint32 вычисляет ширину и высоту заданной строки текста.
BOOL GetTextExtentPoint32
(
HDC hdc, // дескриптор DC
LPCTSTR lpString, // текстовая строкаint cbString, // число символов в строке
LPSIZE lpSize // размер строки
);
but in principle DrawTextA counts too. The only thing is to change HFONT to the required one. Otherwise, I don't think the result will be quite correct.
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.
Thanks for the advice. But for some reason the function seems a bit narrow:
500 SBs were used and somehow 99.7% of them don't seem to fit within three sigmas.
Well, we need to calculate the software directly and check it. There is not much to say from the figure - everything seems correct to me.
If the generation scheme is binomial and neighboring samples are completely independent, the TSP should be satisfied. But if the independence condition is not fulfilled (bad oscillator, etc.), then "fat tails" are quite possible
how to calculate text size in pixels ?
DrawText vs GetTextExtent
GetTextExtentPoint32 is probably more correct
GetTextExtentPoint32 is probably more correct
The string variable stores the int-value in its internal representation in four bytes.
How it got there is not important.
Can we get this number into an int-variable without using bitwise operations?
The string variable stores the int-value in the internal representation in four bytes.
How it got there is not important.
Can we get this number into an int-variable without using bitwise operations?
About this for two bytes.
What is this ?
I'm talking about variables in an MQL4 program.
The string variable stores the int-value in the internal representation in four bytes.
How it got there is not important.
Can we get this number into an int-variable without using bitwise operations?
You can, by multiplying each byte by a power of 256 and adding it. Something like this, roughly...
You can, through multiplying each byte by a power of 256 and adding it.
In other words, it goes like this:
int i = StringGetChar(str,3) ;
i +=StringGetChar(str,2) * 256;
i +=StringGetChar(str,1) * 256*256;
i +=StringGetChar(str,0) * 256*256*256;
Very good.
Thank you !