Help me fix my Quantconnect Algo

Job ID: 35610732

Budget: €8 – €30 EUR

Hello, I made a script on quantconnect that return this error:

'TSLA' wasn't found in the Slice object, likely because there was no-data at this moment in time and it wasn't possible to fillforward historical data. Please check the data exists before accessing it with data.ContainsKey("TSLA") in Slice.cs:line 315

It's a very simple strategy that buy the stock once the price has dropped by 5% or more in the last 5 minutes. The script is attached.
Related categories: Python Debugging Coding Trading