
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 guess I can forget about full-fledged work with MySQL in MQL (without my dlls)... pity...
What's not to like about the library?
In the case of a pointer return, it needs to be static and in the same process.
What's not to like about the library?
If you make your own dll, it makes no sense to break part of the code into MQL and part into the libe. all MySQL will go inside this dll.
If you make your own dll, it makes no sense to break part of the code into MQL and part into lib. all of MySQL will go inside this dll.
Algorithm of fractions enumeration
I). It is required to find an algorithm for enumerating fractions, so that:
A + B + C + n + ... = 100%
Each element from the set {A, B, C, n} must have standard criteria: maximum and minimum side constraints and incremental step of type: start, stop, steep;
An example of the problem:
Given a set
Y{A,B,C,n};
Each element of such set can be varied from -100% to +100%, in steps of 10%. The sum of all elements modulo must equal 100%: A+B+C+n=100%.
Find a matrix D(x,number_of_elements_ multiples_Y) that describes the distribution of all possible fractions between A, B, C, n, e.g:
A B C
100 0 0
90 10 0
90 0 10
80 10 10
80 0 20
...
Examples of incorrect finding:
A B C
-50 30 120 - element C is greater than the limit of 100%
35 30 35 - the step is not equal to 10%
70 30 10 - sum not equal to 100%
-50 60 90 - sum of all elements modulo not equal 100% (50+60+90=200)
II*). Find solution of search of fractions for set N with MT5/MT4 optimizer so that constraints of each element of the set could be set with standard constraints Start, Step, Stop.
As an introductory note, here is an algorithm which implements a special case of the problem:
As you can see, each element of the set, except the last, requires an additional for loop. This is not a good solution, because as you change the number of elements in the set, you have to insert or delete additional loops.
As an introductory note, here is an algorithm that implements a special case of the problem:
As you can see, each element of the set, except for the last one, requires an additional for loop. This is not a good solution, because as you change the number of elements in the set, you have to insert or delete extra loops.
Do just one while loop for one of A or B or C.
Within it, analyze if for gaps
do just one while loop on one of A or B or C.
Within it, analyse if for gaps to be reached
The point is that still B and C will be combined with each other, and you need a new loop for that. Perhaps this problem can be solved recursively, although there may be simpler algorithms.