In this example we will present a method to plot automatic support and resistance lines based on recently hit highs\/lows. In order to draw horizontal lines showing levels of recent HHV\/LLV values and start drawing at the point of the chart, which defines given price level – we first need to identify the bar, where the line should start. This can be done with use of HHVBars<\/a> \/ LLVBars<\/a> functions.<\/p>
The chart below shows the output produced by the formula:<\/p>