Good afternoon! Please advise... After updating to the latest build errors in "SmoothAlgorithms" started to fly out. And averaging sma, lwma, parma, vidya stopped working. It warns on this line: "array out of range in 'SmoothAlgorithms.mqh' (3394,9)". How to fix it? Thanks!
I don't fix any irregularities in the code or in its compilation at all. It is absolutely unclear what you are talking about?
I do not detect any violations in the code's operation or compilation at all. I don't understand at all, what are you talking about?
Of course, maybe I'm not in the right place and it's not about SmoothAlgorithms, but I don't have any other ideas yet. If you can tell me something, I would be grateful.
If I had something like this on my computer, it would be possible to do something, but so there is only one way to solve the problem - download the installation file from the Metaquotes site and install it in an empty folder. And check the work of indicators in the new terminal.
And the number of bars in the window should be more or less decent. Otherwise there will be nothing to average, and it is the problematic methods of averaging that require more bars than other averaging methods.
If you add the #property strict directive in the code.
and in the PriceSeries function replace Open with open, Low with low, etc.
it will compile in MT4 without errors and warnings. Maybe the author will do this little thing?
The thing is that I don't follow the changes in MQL4 language at all and, by and large, I don't do it at all, because I don't have time for this kind of work. There is a variant of SmoothAlgorithms for mql4 in the Zip file in the attachment to the publication, but I don't know how well it works. Indicators will not be compiled straightforwardly anyway.
If I had something like this on my computer, I could do something about it, but the only way to solve the problem is to download the installation file from the Metaquotes site and install it in an empty folder. And check the work of indicators in a new terminal.
And the number of bars in the window should be more or less decent. Otherwise, there will be nothing to average, and it is the problematic methods of averaging that require more bars than other averaging methods.
Confirmed. The error occurs, but not always. Sometimes it works normally, sometimes it crashes. The error occurs more often if you run the indicator in the tester. For example, the same XFisher_org_v1_Vol_Supr after compiling in the last build (1980) and running in the tester on the RTS Splice instrument, gives the error "array out of range in 'SmoothAlgorithms.mqh' (3394,9)". The error occurs not only on this indicator, but also on many others that use SmoothAlgorithms.mqh library. Nikolai, please check it.
- www.mql5.com
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
SmoothAlgorithms:
A library of averaging algorithms, the algorithms were described in details in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers"
Author: Nikolay Kositsin