Table of Contents

Class TrendLine

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

Represents a trend line on a chart.

public class TrendLine
Inheritance
object
TrendLine
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

firstBar int

The index of the first bar.

firstPrice decimal

The price value of the first point.

secondBar int

The index of the second bar.

secondPrice decimal

The price value of the second point.

pen Pen

The 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