Since there is no sid-by-ticker function available, I cooked up a macro that nipped out sids for all symbols listed on NASDAQ-100, but when building this script I get the error:
"Algorithim must reference 1 to 10 SIDs, inclusive"
I was curious why this limit is there - as far as I can deduce, the sample which is passed to the handle_data function actually contains the full range of sids (it is not required to flag their usage in the initialize function), so I can only guess that this is a precaution against people writing algorithms that do too much heavy lifting.
Discovering the error, and second guessing why it appeared, I refrained from running any backtesting but I did discover that the error would go away by assigning the sid function to a different identifier - if the intention is to restrict the number of calls to this function, I suggest adding a runtime limitation as well, if that is not already there.