@backtrader res is a lib that I used to get the stock data frame by entering the stock code,I followed the documentation but still got the same error :
This is the code I have changed:
This is the dataframe that I feed in:
This is the output:
This problem is actually very weird because the strategy works properly before 2022-11-01. but after that day, it suddenly crashed. and this problem happens in some code stocks(actually happens in ETF 510760), for others, it works fine.