Table of Contents

Class LineTillTouch

Namespace
ATAS.Indicators.Drawing
Assembly
ATAS.Indicators.dll

Represents a trend line that extends until it is touched by the price.

public class LineTillTouch : TrendLine
Inheritance
object
LineTillTouch
Inherited Members
Extension Methods

Constructors

LineTillTouch(int, decimal, Pen)

Initializes a new instance of the LineTillTouch class with a single point.

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

Parameters

bar int

The index of the bar.

price decimal

The price value of the point.

pen Pen

The pen used to draw the trend line.

LineTillTouch(int, decimal, Pen, int)

Initializes a new instance of the LineTillTouch class with a fixed number of bars.

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

Parameters

bar int

The index of the bar.

price decimal

The price value of the starting point.

pen Pen

The pen used to draw the trend line.

fixedBarsCount int

The fixed number of bars for the line.

Properties

Context

Custom object context

public object Context { get; set; }

Property Value

object

Finished

Gets a value indicating whether the trend line has been finished (touched).

public bool Finished { get; }

Property Value

bool

Methods

CheckIfTouched(decimal, decimal, int, int)

Checks if the trend line has been touched by the price within the specified high and low values.

public void CheckIfTouched(decimal high, decimal low, int bar, int lastBar)

Parameters

high decimal

The highest price within the range to check.

low decimal

The lowest price within the range to check.

bar int

The current index of the bar.

lastBar int

The index of the last bar.