help me. AFL code to make "Blending Candlestick"

i am looking for AFL code to make "Blending Candlestick". conbine three candlestick-->one candlestick
The open of first candlestick
The close of the last candlestick
The high and low of the pattern
can anyone share to me.thank all.
Change time setting to 1 minute interval,it works only if you have one minute data.
Or AFL need to be modified by an expert.
My data by date, you can guide change time.thank you