To simulate a raw tick data one can assign the value of the tick to the fields of the OHLC. SeeCommunity - backtest with tick data, get period datas
With that in mind the value of close (for example) can be used as the tick value (And has to be added with addata)
The 2nd stream, the resampled one, is created, as already present in the code, by issuing resampledata.
The tick data would be in data0 and the resampled in data1