Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
is there an alternative to using the pipeline?

i have made an algo that works fine for a single stock. the stock and some parameters are defined in 'initialize' and used throughout the algo. when i tried to add another ticker to the algo so that it would trade them both simultaneously, i duplicated everything (crude, brute force) and call the first set 'ticker_1_xxx' and the second set 'ticker_2_xxx'. i will need to be adding more and more tickers to the algo, so this won't work going forward.

i have read about the pipeline but it doesn't seem to fit well with my procedure. i already know the universe (tickers) i want to trade on. i also know the parameters and their values i want to use with them. so i am not trying to screen or filter anything.

question: is there a way to create a list / dictionary / class in 'initialize' or 'before_trading_start' that has the tickers and some parameters "hard coded" in? basically, i want to setup the ticker and parameter list (inside the code, not fetched) and have the rest of the program (functions) iterate through each set.

sorry i am unable to share the source code. :(

best,
da