Errors, bugs, questions - page 2588
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
I still don't understand - do you have predictors that require more depth calculation? I do need one - MA on the daily chart :) I'm just running testing a year early and trading before that date can be banned...
Please update the KB compiler.
When I'll be back from holiday, if it will not be too much trouble, I will study the question. But logically the bug may be in your code and not in mql.
By the way, just for fun, what if you have a library that works with what coding? Are you sure that utf-16, but what if it's utf-8, after all, the most common.
I haven't checked that yet, thanks for the tip. I'll dig in that direction.
The library is for Ocean, the classes I'm working with are selected with a W, i.e. Unicode.
As I understand the encoding.
const char *Utf8;
const char *Ansi;
const wchar_t *Utf16;
const wchar_t *Utf32;
utf-16 implies type wchar_t, the library function reading the string returns const wchar_t*
From this it becomes clear that the function returns a pointer to the string in utf-16 encoding
In the project properties, the Unicode character support is also selected.
The mql documentation says that string works in Unicode.
I'm optimising again, I'm not sure if I'll be able to test the execution speed of this code:
I suspect that variant 2 will be faster?
if so, where can be the pitfalls - I use in OnTick() - to search in the optimizer trade time, looking for ways to optimize the code
HH: I can ask how to check the speed options number 1 and number 2, it is very likely that the compiler will optimize the executable code and tests will not be correct - so I ask
I can ask how to check variants 1 and 2 in terms of speed, there is a high probability that the compiler optimizes executable code and the tests will not be correct - so I ask
Run the usual test separately for 1 and 2 and compare times? )
If time is negligible, run the same optimization with option 1 and option 2.
HH: I can ask how to test variants #1 and #2 on speed, it's highly probable that the compiler will optimise executable code and tests will not be correct - that's why I ask
https://www.mql5.com/ru/code/18804
I'm optimising again, I'm not sure if I'll be able to test the execution speed of this code:
I suspect that variant 2 will run faster?
if so, where can be the pitfalls - I use in OnTick() - to find in the optimizer trade time, looking for ways to optimize the code
ZS: I can ask how to check the speed options number 1 and number 2, it is very likely that the compiler will optimize the executable code and tests will not be correct - so I ask
Question on ArrayResize. I make a Reserve for several gigabytes at once. Then I gradually increase Size which is less than initial Reserve.
Why does TaskManager show increase of memory consumption during Size increase?
Question on ArrayResize. I make a Reserve for several gigabytes at once. Then I gradually increase Size which is less than initial Reserve.
Why does TaskManager show increase of memory consumption during Size increase?
Run a normal test separately for 1 and 2 and compare times? )
If time is negligible, run the same optimisation with variant 1 and variant 2.
https://www.mql5.com/ru/code/18804
I am doing something wrong, still could not see the difference, the results float around 0.1 sec on single run