Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1204
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
But it will take a lot of tweaking before this code can be used in real trading...
Yes, I understand. It's unlikely to come to full automatic trading at all. You need to thoroughly test your trading ideas over a long period of time with a large number of deals.
Without the tester it is impossible to check an idea qualitatively, which is unfortunate. Optimization of strategy parameters is also unfortunate. The tester makes the process very easy.
I never thought I'd have to quote you on the documentation...
... ... the closing time of the order is 0...
Thanks, I didn't think so either. I haven't often, but I've had to sample a ticket and never had a problem, probably because I've cycled through those in the market.
Thank you!
Hello. Trying to find calculation errors in the indicator. Outputs a Close[0] value (used below) via Alert. Outputs a number with 4 decimal places, the broker has five digits.
What i am doing wrong? Thank you.
Hello. Trying to find calculation errors in the indicator. Outputs a Close[0] value (used below) via Alert. Outputs a number with 4 decimal places, the broker has five digits.
What i am doing wrong? Thank you.
And where did you get Close[0] from? It would be interesting to have a look at the source code, as you are not on a psychic forum... :)
Hello, help me find a way out - problem!
When compiling, it gives a warning - the size of local variables is too large (more than 512kb)
How critical is this warning?
Hello, help me find a way out - problem!
When compiling, it gives a warning - the size of local variables is too large (more than 512kb)
Please advise how to bypass this situation!
SZY: it is convenient to use Indicator buffers for calculations (INDICATOR_CALCULATIONS), if you have problems, use them instead
Thank you
Good day to you all!
Question on MQL-4.
There is function ArrayBsearch( S_L,Ask,WHOLE_ARRAY,0,MODE_ASCEND);. It searches for an element of a pre-sorted array. If the array is two dimensional then this function searches only for an element in the first dimension.
Q. Which function or language construct can be used to find the required element in the second dimension of the array? I have a two-dimensional array with two rows
10,9,8,7,6,5,4,3,2,1
10,3,8,9,2,1,1,8,8,6
How can I find the array element with the value I want in the bottom line, not the top one? Because ArrayBsearch( ) searches only in the top row.
Thanks for your help.
Good day to all!
Question on MQL-4.
There is function ArrayBsearch( S_L,Ask,WHOLE_ARRAY,0,MODE_ASCEND);. It searches for an element of a pre-sorted array. If the array is two dimensional then this function searches only for an element in the first dimension.
Q. Which function or language construct can be used to find the required element in the second dimension of the array? I have a two-dimensional array with two rows
10,9,8,7,6,5,4,3,2,1
10,3,8,9,2,1,1,8,8,6
How can I find the array element with the value I want in the bottom row instead of the top row? Because ArrayBsearch( ) searches only in the top row.
Thanks for the help.
In MQL4, I have only this way:
Result:
2020.07.08 09:25:41.426 FindInArray AUDUSD,M30: value2 array[1][6]: 8.0
2020.07.08 09:25:41.426 FindInArray AUDUSD,M30: array[1]: {1, 1, 2, 3, 6, 8, 8, 8, 9, 10}
2020.07.08 09:25:41.426 FindInArray AUDUSD,M30: value1 array[0][2]: 3.0
2020.07.08 09:25:41.426 FindInArray AUDUSD,M30: array[0]: {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}