Hello everyone,
I'm getting my head around quantopian and I had an efficiency question. I've seen beginner code that creates an object for each security using context.a = sid(100000) or context.a = symbol(a). However, this gets very tedious when trying to work with a large number of securities. How would I go about having a list of say, 100 predetermined securities then call those later on?
I originally tried making something like this:
context.security_list = []
symbolslist = ['abt', 'adbe', 'tmo','biib']
for mysymbol in symbolslist:
context.security_list.append(symbol(mysymbol))
...
order(context.security_list[1], .9)
This did not pan out, however. haha
Thanks for your advice.