Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1725
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
Alexei, please enlarge the picture.
Zoomed in. I saw exactly what the arrow shows on the second lowest order price and on the ticket of the order that does not match the penultimate order criterion. Run my code and you will see the ticket of the lowest order. You can finish this function if you want to get not the BUY order from the bottom, but the second one.
Zoomed in. What I saw was the arrow pointing to the second lowest order price and to the ticket of the order not meeting the penultimate order criterion. If you run my code, you will see the ticket of the lowest order. You can develop this function to get not the BUY order below, but the second one.
I can only ask where there is an error in the code for the next-to-last order ticket determination.
I can only as my question where is the error in the code for determining the ticket of the penultimate order???
The error is that the price of the order is not taken into account in any way.
Somewhere in your dialog, there is advice to put the whole thing in an array and sort it to get any ticket by number. But in response, I don't understand how to do it.
Like this
I can only answer as my question, where is the error in the code determining the ticket of the penultimate order???
And another gross error is that while you are searching for orders in the loop, you call a function which in turn also searches for orders... And when the code execution returns to the function, another order is already selected... And OrderTicket() returns quite different from what you expected.
The error is that the price of the order is not taken into account in any way.
Somewhere in your dialog there is an advice to put the whole thing into an array and sort it to get any ticket by count. But in response, I don't understand how to do it.
Like this
Alexey could you comment on the errors in the log
2021.11.07 12:17:40.791 2020.01.02 06:00:00 eGriD2 EURUSD,M5: incorrect start position 0 for ArraySort function
2021.11.07 12:17:40.791 2020.01.02 06:00:00 eGriD2 EURUSD,M5: array out of range in 'eGriD2.mq4' (664,18)
Alexey, could you comment on errors in the log
2021.11.07 12:17:40.791 2020.01.02 06:00:00 eGriD2 EURUSD,M5: incorrect start position 0 for ArraySort function
2021.11.07 12:17:40.791 2020.01.02 06:00:00 eGriD2 EURUSD,M5: array out of range in 'eGriD2.mq4' (664,18)
These errors are not my code. I am not fluent in aglits language, I am using internal translator of this site. This is how it translates.
incorrect start position 0 for ArraySort function - incorrect start position 0 for ArraySort function
array out of range in 'eGriD2.mq4' (664,18) - array out of range in 'eGriD2.mq4' (664,18)
Testing pass stopped due to a critical error in the EA
So the code in the studio.
ps; Although, if you call this function when there are less than two orders, there will be these errors. I have not protected it against ......... but I guess I should have.
This is exactly the reason why I have absolutely no desire to help anyone... You're counting on a thoughtful application of my tips, but .........
Good afternoon. Can you tell me how to implement a minimum/maximum search for n bars?
iLowest
Here's another question. There is an indicator that draws a fractal. How do I check if there is a signal in n bars?
Here's another question. There is an indicator that draws a fractal. How do I check if there is a signal in n bars?