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
My code, however, seems to me to be more in line with MQL4 (there may be other variants)
by types of input parameters
My code is sometimes 3-4 times larger.
by type of input parameters
Not only by type, but it doesn't really matter.
Such a direct implementation (head-on) in my opinion is "ETERNAL DAY", it is not universal and can cover only a certain part of tasks.
Not only by type, but it doesn't really matter.
Such a direct implementation (head-on) in my opinion is "ETERNAL DAY", it is not universal and can cover only a certain part of tasks.
well, what can be done when only one bar is needed in the Expert Advisor?
Thank you for your comments. I will answer everyone at once.
I just called the functions that are often used in Expert Advisors and scripts by their usual names.
I was ashamed to say that there may be bugs in the functions, although they can be, of course. I relied on solidarity in this matter ;)
Naturally, if you need to get not the high of one single bar, but to go through the last 100 bars, it would be more optimal to do it quite differently.
So I propose to bring the bible up to date and use by the whole community. I will do it anyway, but help will be welcome.
Urain, thanks for the includnik, but it's a bit off topic.
I guess we are talking about different things. On the example of an indicatorless MQL4 Expert Advisor:
Last year I started to do something similar, but due to frequent updates of MT5 builds I abandoned it, I can't find old developments, so I sketched out how I would like to see a class for working with timeseries.
I wonder, will it be more optimal than copying only necessary data (like mine)?
I guess it depends on the frequency and volume of use....
All in all, it's not a clear-cut question.
On the one hand, you should copy everything that can be used, but try to do it less often (but then you will have to specify at once which series for which instruments/TFs we will use).
On the other hand, you can copy only necessary segments right before use. And only in heavy functions optimise access to long time-series.
It is necessary to check.
I wonder if this would be more optimal than copying only the necessary data (like mine).
Although, probably, it depends on the frequency and volume of use....
the implementation itself is not important yet, hrenfx put the question correctly - it is important to quickly port mql4 codes to mql5, in my example I suggested replacing old functions instead of the prefix "MQ4_": MQL4_iTime, ..... with "MQ4.
using the search/replace editor menu you can port most of the mql4 codes quite quickly
Last year I started to do something similar, but because of frequent updates of MT5 builds I abandoned it, I can't find old developments, here I sketched out how I wanted to see a class for working with timeseries.