Horizontal lines until the first touch

It is possible to create horizontal lines in an indicator, which would be prolonged until the first touch, with the help of the HorizontalLinesTillTouch collection..

For this, aLineTillTouch object should be created and added to the collection.

LineTillTouch имеет 2 конструктора:

1. It creates a horizontal line, which starts in a specified bar at a specified price.

public LineTillTouch(int bar, decimal price, Pen pen)

2. Similarly, it creates a horizontal line, for which a number of bars, at the end of which the line would be considered completed, is set additionally.

public LineTillTouch(int bar, decimal price, Pen pen, int fixedBarsCount)