| bar | Bar number on which to test the trendline extension for crossing | 
| pane | The ChartPane where the DataSeries ds is plotted. The Log property of this pane is used to draw the extension properly for the scale. | 
| ds | The DataSeries whose peaks or troughs define a trendline | 
| bar1 | The bar of the first (earliest) peak or trough on which the trendline originates | 
| bar2 | The bar of the second (later) peak or trough | 
| linecolor | The color to use to draw the trendline | 
| thickness | Thickness of the line | 
| consecBars | Optional: the number of consecutive bars that ds must be across the trendline to end and draw it |