Class TrendLine
- Namespace
- ATAS.Indicators.Drawing
- Assembly
- ATAS.Indicators.dll
Represents a trend line on a chart.
public class TrendLine
- Inheritance
-
objectTrendLine
- Derived
- Extension Methods
Constructors
TrendLine(int, decimal, int, decimal, Pen)
Initializes a new instance of the TrendLine class.
public TrendLine(int firstBar, decimal firstPrice, int secondBar, decimal secondPrice, Pen pen)
Parameters
firstBarintThe index of the first bar.
firstPricedecimalThe price value of the first point.
secondBarintThe index of the second bar.
secondPricedecimalThe price value of the second point.
penPenThe pen used to draw the trend line.
Properties
FirstBar
Gets or sets the index of the first bar.
public int FirstBar { get; set; }
Property Value
- int
FirstPrice
Gets or sets the price value of the first point.
public decimal FirstPrice { get; set; }
Property Value
- decimal
IsRay
Gets or sets a value indicating whether the trend line is displayed as a ray.
public bool IsRay { get; set; }
Property Value
- bool
Pen
Gets or sets the pen used to draw the trend line.
public Pen Pen { get; set; }
Property Value
- Pen
SecondBar
Gets or sets the index of the second bar.
public int SecondBar { get; set; }
Property Value
- int
SecondPrice
Gets or sets the price value of the second point.
public decimal SecondPrice { get; set; }
Property Value
- decimal