I want to build a strategy for which I need to have the values of all stocks of a given index, let's say the DAX 30.
I'm building a string array with 30 values, each value being the ticker name of a DAX stock, e.g.:
var dax_names = array.new_string(30)
array.set(dax_names, 0, 'VOW3')
array.set(dax_names, 1, 'ADS')
...
Upon calling security(array.get(dax_names, i), 'D', close))
in a loop, the compiler complains that I'm sending a series string to security, as opposed to a string. Why does array.get return a series string? How can I get the actual string value from my array?
Thank you in advance!