in mql5 " IndicatorParameters() " return the number of input parameters of the indicator which something that you are
looking for , meanwhile in mql4 not much can do . As shown picture below , we can see mql5 offer much better Timeseries and indicator Access
compare to mql4.
I can see it. What a shame. I dream with the day when we can only code with MQL5 in both MT4 and MT5. Well, Cosmas and you all guys thank you so much
for your help. Kind regards.
Jhojan Alberto Tobon Monsalve: I just discovered how to make it in MQL5 but not in MQL4, Does somebody know how to convert it into MQL4?
No you didn't.
intIndicatorParameters(
int indicator_handle, // indicator handleENUM_INDICATOR& indicator_type, // a variable for receiving the indicator typeMqlParam& parameters[] // an array for receiving parameters
The call requires the handle, which means you already provided the parameters when you got the handle.
Your orginal question is to get the parameters from an indicator not placed by code. Can't be done in either language.
You declared an array. It has no values unless you filled it. Get it?
Well, this is not my script as I said before I found this script in the standard library of MQL5 so you need to send a message to MQL5 or metaquotes.
For me this code is ok and works for me.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
in mql5 " IndicatorParameters() " return the number of input parameters of the indicator which something that you are looking for , meanwhile in mql4 not much can do . As shown picture below , we can see mql5 offer much better Timeseries and indicator Access compare to mql4.
I can see it. What a shame. I dream with the day when we can only code with MQL5 in both MT4 and MT5. Well, Cosmas and you all guys thank you so much for your help. Kind regards.
No you didn't.
The call requires the handle, which means you already provided the parameters when you got the handle.
Your orginal question is to get the parameters from an indicator not placed by code. Can't be done in either language.
No you didn't.
The call requires the handle, which means you already provided the parameters when you got the handle.
Your orginal question is to get the parameters from an indicator not placed by code. Can't be done in either language.
This part is what I needed it.
I can get the parameters from this snippet.
How do you fill parameters[] with values?
How do you fill parameters[] with values?
I only needed to read the parameters not filling or changing anything? Got it? Anyway, thanks.
You declared an array. It has no values unless you filled it. Get it?
You declared an array. It has no values unless you filled it. Get it?
Well, this is not my script as I said before I found this script in the standard library of MQL5 so you need to send a message to MQL5 or metaquotes. For me this code is ok and works for me.