what error ?
this is what i got
'a' - constant expression required
'b' - constant expression required
'c' - constant expression required
You cannot use a,b,c you must use constants
or
Wow thanks. Is it be possible to loop them incase. so it's easier in case we increase the number of indices?
Wow thanks. Is it be possible to loop them incase. so it's easier in case we increase the number of indices?
I can't think of a way that would be useful. You could pass an array with the values but that would rather defeat the object of having a function to fill an array when you have already created an array.
Depending on your code, instead of calculating values for a,b and c, can you place the value straight into an array?
instead of
a=x*y;
use
myArray[0]=x*y;
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hey guys,
Is it posible to place your function parameters to an array like this?
Im not really sure if it's possible coz I'm getting an error.