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
In general, I have a dual attitude to such developments.
On the one hand, a man has worked hard, and did not regret to post, kudos and respect.
On the other hand, it is necessary for labuhovs stupidly porting codes from MT4 to MT5. "Stupidly" means without going into the possibilities of the language and without delving into the strategy itself.
By the way, I am doing this myself now :) so the criticism is directed to me.
I will try to elaborate on the stupidity and possibilities of MQL5.
Take a simple function iClose, in MT4 it was not possible to get the whole time series at once (only piece by piece), in MT5 it is optimised so that there is no difference between copying one value and the whole series (a little exaggerated, but almost so). So it often takes a comparable amount of time to organise the array to which the data will be copied, so it makes no sense to receive Close one by one. Moreover, these series are already present in indicators by default. So when porting, it makes sense to split the code into a calculation code (which is copied into the indicator) and a trading code (which is executed in the Expert Advisor).
What I mean is that on the one hand such codes are useful for beginners, it becomes easier for them to live.
On the other hand, it sets the wrong programming standard, programming through the G.
By the way, here is one more feature for the includnik:
Here's more refinement for you.
But it would be better to rewrite everything on the basis of the standard bible.
Sorry, is there an incorrect code there? Switching from MQL4 to MQL5.
Why is it incorrect, it is correct (I copied some of the code from there),
but there is no code there, only enums are broken, and everything else is in the article itself.
+ I ported OrderSend there, I think the lion's share of problems is related to setting orders.
By the way, a lot of things are missing, for example, the whole trading functionality is not broken (I made only OrderSend and OrderClose).
So there is room for development for enthusiasts.
It's just that the code in the article and in this library is almost identical, I thought maybe something in the article is wrong.
It's just that the code in the article and in this library is almost identical, I thought maybe something in the article is wrong.
But why invent bicycles, I copied what is already there, edited it, added my own.
Voila and everything works.
That's why sources are published, so that others can use them.
Otherwise, every programmer would still write in assembly language.
I will gladly make analogues of all necessary functions (including accounting of virtual transactions), when I get my hands on them.
Now I need these functions, I could not find a ready-made library. So I had to make my own.
I have been using my library for about three years now, constantly refining it. everything works like a Swiss watch.
You have found some interesting points, I will have to think about implementation.
You have found some interesting points, will have to think about the implementation.
hint on the code, what interesting points did you find?
Some things are simpler and more functional than mine. I didn't put error checks in certain places.
My code is sometimes 3-4 times bigger.
PS
My code, however, seems to me to be more in line with MQL4 (there may be other variants).
as an example (very first implementations) for iHighest and iOpen