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
This is a Class method
https://www.mql5.com/ru/docs/standardlibrary/technicalindicators/cindicator
#include<Indicators\Indicator.mqh>
I see. Apparently,denkir didn't declare#include<Indicators\Indicator.mqh>.
But a search of the Reference is still unable to find this function.
So why does the compiler swear, what is the ambiguity of the call?
apparently int to long or vice versa types are converted, probably you can only by the number of parameters or by types that are not automatically converted reload functions
SZZ: work only with long, int types you pass as parameters will automatically be converted to long.
apparently int to long or vice versa types are converted, probably you can only by the number of parameters or by types that are not automatically converted reload functions
SZY: work only with long, int types you pass as parameters will automatically be converted to long.
Same song.
The point was to make function overloading for all types without exceptions.
And if a type doesn't correspond to i and j code values, it will generate a warning.
Dear developers, please tell me what ambiguous call to an overloaded function is (this is what the compiler is swearing about):
'set' - ambiguous call to overloaded function
yes, there is an error, we will fix it after the build release
for now you can use
There is no problem not only with overloading int and long, overload any type the problem will be the same.
It's just the compiler handles an explicit parameter setting in a different way.
Sorry, I have not run MT5 for two weeks, because I see so many angry posts after the last three updates that I do not even want to find out if the compiler is not working or maybe I have the wrong build, which you have
like this:
it works, build 362.
Yes, it's a bug, we'll fix it after the build is released
In the meantime, you can use this
I see. Apparently,denkir did not declare#include<Indicators\Indicator.mqh>.
But a search of the Reference does not find this function anyway.
This is not enough!
This is a method of an external class!!!
That's not enough!
This is an external class method!!!
Probably need to add such a thing:
But I don't need an object of the mentioned classes. What I need is a simple function for the base type string I described.
Probably need to add such a thing:
But I don't need an object of the mentioned classes. And I need a simple function for base type string, which I have described.
But to get to the class methods, you have to declare the corresponding class, in our case it's the CIndicator class(MQL5 Reference / Standard Library / Classes for working with indicators / Basic classes / CIndicator). Isn't it so?