I created a dictionary of lists, with symbols as keys. When I try to pass one of the lists to a function, it says it is two arguments, one of which is a "QuantConnect.Algorithm.QCAlgorithm" and the other seems to be the list. I believe there may be some workaround but I would like to understand why this is happening because I have no idea. I attached a backtest with the offending line commented out (line 245). The dictionary and lists are populated from lines 197-203, with the function call starting at line 116. It can be seen the call at line 128 outputs "QuantConnect.Algorithm.QCAlgorithm", with the call at line 131 seemingly outputting the list (it is supposed to be some integer from 1-10, but I do not supply it because the call gives an error about being given 4 arguments instead of 3). Thanks.

Author