ATAS
Loading...
Searching...
No Matches
ATAS.Indicators.Drawing.LineTillTouch Class Reference

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

Inheritance diagram for ATAS.Indicators.Drawing.LineTillTouch:
[legend]
Collaboration diagram for ATAS.Indicators.Drawing.LineTillTouch:
[legend]

Public Member Functions

 LineTillTouch (int bar, decimal price, Pen pen)
 Initializes a new instance of the LineTillTouch class with a single point.
 
 LineTillTouch (int bar, decimal price, Pen pen, int fixedBarsCount)
 Initializes a new instance of the LineTillTouch class with a fixed number of bars.
 
void CheckIfTouched (decimal high, decimal low, int bar, int lastBar)
 Checks if the trend line has been touched by the price within the specified high and low values.
 
- Public Member Functions inherited from ATAS.Indicators.Drawing.TrendLine
 TrendLine (int firstBar, decimal firstPrice, int secondBar, decimal secondPrice, Pen pen)
 Initializes a new instance of the TrendLine class.
 

Properties

bool Finished [get]
 Gets a value indicating whether the trend line has been finished (touched).
 
object Context [get, set]
 Custom object context.
 
- Properties inherited from ATAS.Indicators.Drawing.TrendLine
Pen Pen [get, set]
 Gets or sets the pen used to draw the trend line.
 
int FirstBar [get, set]
 Gets or sets the index of the first bar.
 
int SecondBar [get, set]
 Gets or sets the index of the second bar.
 
decimal FirstPrice [get, set]
 Gets or sets the price value of the first point.
 
decimal SecondPrice [get, set]
 Gets or sets the price value of the second point.
 
bool IsRay [get, set]
 Gets or sets a value indicating whether the trend line is displayed as a ray.
 

Detailed Description

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

Constructor & Destructor Documentation

◆ LineTillTouch() [1/2]

ATAS.Indicators.Drawing.LineTillTouch.LineTillTouch ( int  bar,
decimal  price,
Pen  pen 
)

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

Parameters
barThe index of the bar.
priceThe price value of the point.
penThe pen used to draw the trend line.

◆ LineTillTouch() [2/2]

ATAS.Indicators.Drawing.LineTillTouch.LineTillTouch ( int  bar,
decimal  price,
Pen  pen,
int  fixedBarsCount 
)

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

Parameters
barThe index of the bar.
priceThe price value of the starting point.
penThe pen used to draw the trend line.
fixedBarsCountThe fixed number of bars for the line.

Member Function Documentation

◆ CheckIfTouched()

void ATAS.Indicators.Drawing.LineTillTouch.CheckIfTouched ( decimal  high,
decimal  low,
int  bar,
int  lastBar 
)

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

Parameters
highThe highest price within the range to check.
lowThe lowest price within the range to check.
barThe current index of the bar.
lastBarThe index of the last bar.

Property Documentation

◆ Context

object ATAS.Indicators.Drawing.LineTillTouch.Context
getset

Custom object context.

◆ Finished

bool ATAS.Indicators.Drawing.LineTillTouch.Finished
get

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


The documentation for this class was generated from the following file: