As you know when you plop an indicator on the screen - sometimes it has some global information it needs - this is a requirement.
#Bars - this is to be the number of bars NEEDED to make the trendline default to 3 // so 3 highs of bars must all be within 2 pips (pips defined next) of a drawable trendline.
#pips - this is the number of pips the High or Low of the bar must be within in order to count it as a “bar” as defined above.
#minbars - this is the number of bars to ‘not read’ in order to avoid drawing a trendline to quickly - so if bar1 and bar2 may almost always be a great start if your only looking for a 3rd point.
so put minbars default as 3 - this is the minimum number of bars between bars that ‘count’ as defined above.
so here is a picture of what I mean.
so when I enter the parameters of lets say 5 bars - -and 5 pips - the indi will draw all the trendlines that fit that criteria -