Hello everyone,

I am currently setting up my first algorithm on this platform and tried to backtest it. It looks good in the beginning. I can see the values changing, but then after a while I get this error:

" Runtime Error: Trying to dynamically access a method that does not exist throws a TypeError exception. To prevent the exception, ensure each parameter type matches those required by the Add method. Please checkout the API documentation.
at OnData in main.py:line 50
TypeError : No method matches given arguments for Add (Open Stacktrace)
"

The mentioned line 50, which is actually line 45 in my algo, looks like this:

self.tradeBarWindow.Add(data["BTCUSD"])

I honestly, do not see my mistake, could someone help me out?

Error Log: https://www.quantconnect.com/backtest/60871/2815074/4ead5896542dd044dd5fb4f783eda1bf-log.txt

Author