Get the number of decimal places of any numbers (not just quotes) bypassing Digits() in MQL4 and MQL5 - page 16

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
Here's another interesting task: to make an array sorting function faster than the built-in ArraySort.
Is the size of all structures guaranteed to be divided by the size of all variables?
Can I brainstorm on a quick implementation of translating an array of structures (length multiple of sizeof(int)) to and from an int[] array?
///
Simply after describing a structure, write a few more lines with a union that includes this structure and an array.
It is even possible not to write after each structure, but to template it - whatever is convenient for you.
Is the size of all structures guaranteed divided by the size of all variables?
Forum on Trading, Automated Trading Systems and Strategy Tests
Getting the number of decimal places of any numbers (not just quotes) bypassing Digits() in MQL4 and MQL5
fxsaber, 2018.12.07 15:12
Can I brainstorm on a quick implementation of translating an array of structures (length multiple of sizeof(int)) to and from int[] array?
In general the solution lies at the same link, but because of the versatility there is a brake there. So multiplicity is an understandable additional condition.
This also appeared.
Forum on trading, automated trading systems and strategy testing
New version of MetaTrader 5 build 1930: Floating Chart Window and .Net Library in MQL5
MetaQuotes Software Corp., 2018.10.25 17:18
If the property is not defined, the default alignment is 1 byte - pack(1).
Example usage:
Output:
More information about alignment in structures is available on MSDN.
Simply, after describing the structure, write a few more lines with a union that includes this structure and the array.
You can even not write after each structure, but template it - whatever is more convenient.
I don't get it. If you want to participate, please write your variant.
Can I brainstorm on a quick implementation of translating an array of structures (length multiple of sizeof(int)) to and from int[] array?
why to int? and not to char?
(and it will be longer - it will be copied faster)
Why Int?
Forum on Trading, Automated Trading Systems and Strategy Tests
Getting the number of decimal places of any numbers (not just quotes) bypassing Digits() in MQL4 and MQL5
fxsaber, 2018.12.07 15:12
Practical application is fast data exchange via resources. My variant is too generic, so it's slow.
Apparently yours is already faster :)
I'll try to speed it up considerably.
I don't get it. If you would like to participate, please write your option.
I did.
In the general case the solution is in the same link, but because of the universality there are brakes. Therefore the multiplicity is an understandable additional condition.
This also appears.
Who will control this multiplicity?