Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes - page 1841
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've stepped on such a rake. Start actively collecting, counting statistics and you will.
ALWAYS check other people's/external data.
About the fact that even the Bid, Ask can be incorrect even in this thread said. I will not dig out the link, it's long, but it was cured.
Ok. Here's a function to check:
If you manage to catch at least one such case, post in the threadhttps://www.mql5.com/ru/forum/1111
Because one user also wrote that it was giving out wrong prices in the tester. But he never gave an example where this could be seen(https://www.mql5.com/ru/forum/1111/page3131#comment_26786448).
Made it this way.
Thank you all!
I did it like this.
Thank you all!
Minor clarification. ArrayMaximum can return -1 if it fails. We still need to figure out what those cases might be. Let's reject an empty low array at once. And to avoid guessing what other cases there might be, we just do this:
A small clarification. ArrayMaximum can return -1 if it fails. What remains to be understood is what kind of failure it might be. Let's reject an empty low array right away. And to avoid guessing what else might happen, we just do it this way:
And to be even more reliable:
Made it this way.
Thank you all!
Why not use iLowest?
Why not use iLowest?
It depends on what the task is...
A lot of unnecessary "water"...
First write a "simple EA" that just places an order, then ask for help to refine it.
As it is, your text looks like "write me"!
Why not use iLowest?
In this case, you can do that too.
Кирилл Якимов #:
Доброго дня, хочу попробовать свои силы и написать "простого" эксперта ...
...
Simple Expert:https://www.mql5.com/ru/code/103
More results