length = input(20)
// Calculate upper and lower bands
upperBand = ta.highest(close, length)
lowerBand = ta.lowest(low, length)
//// calculate highest lowerBand for the last however many bars
lb = ta.highest(lowerBand, length)
////////plot line
plot(lb, color=color.white)
Comment