Hello everyone,

I have a simple strategy which works smoothly in a backtest. But when I deploy it to live, I'm consistently getting the following error:

Runtime Error: KeyNotFoundException : 'NOW' 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("NOW") ...

As you might see in the attached backtest with the code snippet, I'm indeed using ContainsKey statement at the beginning. The error rises in line 24 in the attached code snippet. Is it the problem of live mode? I'm using QC data stream there. Would be glad to hear recommendations.