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
-
objectLineTillTouch
- 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
barintThe index of the bar.
pricedecimalThe price value of the point.
penPenThe 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
barintThe index of the bar.
pricedecimalThe price value of the starting point.
penPenThe pen used to draw the trend line.
fixedBarsCountintThe 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
highdecimalThe highest price within the range to check.
lowdecimalThe lowest price within the range to check.
barintThe current index of the bar.
lastBarintThe index of the last bar.