Represents a trend line that extends until it is touched by the price.
More...
|
| 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.
|
|
| TrendLine (int firstBar, decimal firstPrice, int secondBar, decimal secondPrice, Pen pen) |
| Initializes a new instance of the TrendLine class.
|
|
|
bool | Finished [get] |
| Gets a value indicating whether the trend line has been finished (touched).
|
|
object | Context [get, set] |
| Custom object context.
|
|
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.
|
|
Represents a trend line that extends until it is touched by the price.
◆ 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
-
bar | The index of the bar. |
price | The price value of the point. |
pen | The 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
-
bar | The index of the bar. |
price | The price value of the starting point. |
pen | The pen used to draw the trend line. |
fixedBarsCount | The fixed number of bars for the line. |
◆ 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
-
high | The highest price within the range to check. |
low | The lowest price within the range to check. |
bar | The current index of the bar. |
lastBar | The index of the last bar. |
◆ Context
object ATAS.Indicators.Drawing.LineTillTouch.Context |
|
getset |
◆ 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: