@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:
17965b0e-9e0f-452d-afc6-19679633a587-image.png
This is the dataframe that I feed in:
c5528f5e-8582-468d-970d-b3dc2d56abee-image.png
This is the output:
fb996702-54aa-4516-99dd-19ffc1418470-image.png

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.