Hi! I would like to draw segments to the specific tops and bottoms of the Highest[x](high) and lowest[x](low) points. As for now i have written this: toplookback=10 hh=highest[toplookback](high) ll=lowest[toplookback](low) if high[1]=hh[1] then highy=hh[1] highx=barindex[1] endif if low[1]=ll[1] then lowy=ll[1] lowx=barindex[1] endif drawsegment(highx,highy,barindex,highy) drawsegment(lowx,lowy,barindex,lowy) but this only draws WHEN a specific high or low actually was the highest/lowest point so far. I cant get around how i would write if i want the segments to be drawn to the actual CURRENT highest/lowest points. So the issue is finding the x (or) barindex-values that tells probuilder where to draw the segments.