Best way to create OHLCV aggregation from raw stock tick data?

I’m looking for something like what TimescaleDB provides with continuous aggregates. I found this thread but it looks really complicated and I wonder if there’s a better way to do this?

Thanks!