how to set array as input?

Back to topics list To post a new topic, please log in or register
avatar
3
Eck369 2016.08.02 18:30
 

 Hi all,

may i know is it possible to key in the input as array style?

 In my ea, i wrote like orange highlighted as below: 

extern double array[]; 

but i get the error message: 

'array' - objects and arrays are not allowed as inputs.

 

Need advice. thanks in advance.


avatar
2017
gooly 2016.08.02 18:55 #
 

You can't!

Either give value by value or prepare a csv-file to read within OnInit().

avatar
12985
WHRoeder 2016.08.02 21:05 #
 
or option 3, use a string variable with separated values, parse the string in init into an array of proper type and use that. StringSplit - String Functions - MQL4 Reference


avatar
3
Eck369 2016.08.03 08:22 #
 

oops, >.<.

thanks guys... :)

Back to topics list  

To add comments, please log in or register