I have written a code to plot high and low of the custom timeframe. The line plots are done by following code
z := line.new(x1=h_date, y1=h_price, x2=l_date, y2=l