Hi, I'm trying to make a chart that consolidates SPX500USD price action data to thirty minute candles with thirty minute tickers, how do I go about doing this? I tried using code from this tutorial but I'm getting errors telling me that I should be using quote bars instead of trade bars.

Also, after consolidating the data, how do I apply it onto my existing price action chart? I've attached my current placeholder project.