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
Thanks to the author for the library!
I made functions for transferring any data. The script below shows their work on the example of ticks
Result
Version update
1.02 - changed copying of structures to union
Version update
1.02 - changed copying of structures to union
Maybe you didn't take into account that here in the class the first bytes are allocated for the header, where the file size is stored?
Could you please tell me if I'm doing it right?
I want to write/read double. Since mql4 does not know how to copy structures into each other, I did otherwise.
In your script there were no such calls with such types of parameters and I added them:
And this code worked without errors:
1. Can I use memcpy with such parameter types? If "it's all wrong, let's do it again" no, then how to write/read double at all?
2. Will this work for 32 bits?
I want to write/read double. Since mql4 does not know how to copy structures into each other, I did otherwise.
now you can copy structures with the help of union
2. Will this work for 32 bits?
yes
If last trade loss they raise lot
2 trades per sesion but open and close example open 8.00 GBP /usd and closed 16 .00 gbp /usd
structures can now be copied using union
For some reason the previous comment has been erased.
For some reason the previous comment has been erased.
Please help me to understand why the following code does not work:
The result of the code:
Why can't I read the contents of a file in memory after reopening it?
I run the script in MT4 terminal.
Why can't I read the contents of a file in memory after reopening it?
At least you don't try to read a file in memory after restarting the computer...