This is because backtesting.py takes in a vector for result. Therefore, if your indicator is returning more than 1 vector, then you should modify it. I realised this when i was using pandas-ta, and a dataframe was returned. so it just takes the last column as a series (aka vector)