Class CandlePartSeries
- Namespace
- ATAS.Indicators
- Assembly
- ATAS.Indicators.dll
Represents a data series of decimal values derived from specific parts of an IndicatorCandle created by an ICandleCreator.
public sealed class CandlePartSeries : BaseDataSeries<decimal>, IDataSeries, INotifyPanelPropertyChanged
- Inheritance
-
objectBaseDataSeries<decimal>CandlePartSeries
- Implements
- Extension Methods
Constructors
CandlePartSeries(ICandleCreator, DataSeriesType)
Initializes a new instance of the CandlePartSeries class.
public CandlePartSeries(ICandleCreator candleCreator, DataSeriesType type)
Parameters
candleCreatorICandleCreatorThe ICandleCreator used to create IndicatorCandles.
typeDataSeriesTypeThe type of data series based on the specific part of the IndicatorCandle.
Properties
Count
Gets the number of elements in the data series.
[IgnoreDataMember]
[Browsable(false)]
public override int Count { get; }
Property Value
- int
this[int]
Gets or sets the element at the specified index.
public override decimal this[int index] { get; set; }
Parameters
indexintmust be a non-negative integer.
Property Value
- decimal
An element of type T at the specified index.
Methods
GetCandle(int)
Gets the IndicatorCandle at the specified bar index.
public IndicatorCandle GetCandle(int bar)
Parameters
barintThe index of the bar to get the IndicatorCandle for.
Returns
- IndicatorCandle
The IndicatorCandle at the specified bar index.