7bit wrote>>
crossy, you cannot use return() to return anything other than one single value.
if you want to return more than one value or an array you have to return it through the argument list. You must use the call-by-reference calling convention for the arguments you want to use for that, so your function can return their values through the argument list instead of return(). If you want to return values in an array you pass the function an empty array by-reference and the function will then be able to write its values directly into this array.
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.
crossy, you cannot use return() to return anything other than one single value.
if you want to return more than one value or an array you have to return it through the argument list. You must use the call-by-reference calling convention for the arguments you want to use for that, so your function can return their values through the argument list instead of return(). If you want to return values in an array you pass the function an empty array by-reference and the function will then be able to write its values directly into this array.
Thankes 7bit