Errors, bugs, questions - page 1876
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
1. When will there be a description of the union in the documentation?
2. Is it a replacement for simple structures?
3. Will the union type conversion be supported as described for structures in the documentation?
here's how you can use union to copy a structure into a char array:
so you can try to fix the problem here. In fact, everything that was in_space copied to_un_space, the main thing about alignment of structures not to forget about the size of the array buffer, although I changed the location of fields in the structure and the data are still copied correctly, but it's better to stick to the alignment of the structures. It's a crutch but at least it works ))
Why is the array zeroed out twice?
most likely because the size of the array needs to be declared as a constant, especially since the size of MqlTick obviously won't change ))
MetaEditor crashes on F7
same song, most likely due to copying a = b; without it everything is fine
Array and is declared as a constant. Editor crash.
didn't have time to delete ))
What is the time of clearing the cache of the testing agent in MT5?
But in my case it turns out so - I optimized, then I run a test on real ticks, in this case I have created a cache for 6GB. When I change the date of testing, the cache is released.
But here I have a cache is overwritten in 5 minutes - is it normal? If you do not restart the test, ie, went away from the computer, came back, and he again writes to you here and there 6GB, no hard drive is not enough, will be erased.
Isn't it more logical to clear the cache when you change the test date, advisor or when you unload the terminal?