Trying to figure out how I can do analytics like a time series showing the average price of an instrument x time after an event happens in my algorithms. The jupyter documentation for quantconnect says I can't import a function from onData. How would I go about this?

The only related information I have seen is about analytics from indicators which I am not even going to touch. I have an algo that places orders throughout the day and I want to see the analytics behind how the price moves after the event happens.