BaseMultipleValueIndicatorT Class |
Namespace: FinAnalysis.Base
public abstract class BaseMultipleValueIndicator<T> : BaseMultipleValue<T> where T : new()
The BaseMultipleValueIndicatorT type exposes the following members.
Name | Description | |
---|---|---|
First |
Get first(oldest) data element stored in container.
Note: if there is not elements in queue it returns DefaltValue.
(Inherited from HistoryMultipleDataQueueT.) | |
FirstDateTime |
Get first(oldest) data element DateTime stored in container.
Note: if there is not elements in queue it returns DefaltDateTime.
(Inherited from HistoryMultipleDataQueueT.) | |
HistoryCapacity |
Set or Get indicator's history capacity. Do not set capacity for indicator if you already add data to it.
If indicators HistoryTimeManaged flag is set, this value equal to volume of buffers.
If indicators HistoryTimeManaged flag is not set, than indicator store exact HistoryCapacity its values.
(Inherited from BaseMultipleValueT.) | |
HistoryCount |
Count of indicators values in indicator history.
(Inherited from BaseMultipleValueT.) | |
HistoryTimeManaged |
Indicates whether indicator safe it's history on time period or store specified values count.
(Inherited from BaseMultipleValueT.) | |
HistoryTimePeriod |
Set or Get time period, how long indicator save it's value. Do not set history period for indicator if you already add data to it.
If you specify indicators HistoryTimePeriod, then indicators HistoryTimeManaged flag will be set.
Indicator try to store all of its values on specified HistoryTimePeriod.
(Inherited from BaseMultipleValueT.) | |
IndicatorNeedDateTime |
Equal true if user have to specify DateTime in Add method.
(Inherited from BaseMultipleValueT.) | |
ItemDateTime, Int32 |
Return historically latest element with smaller or equal DateTime.
Note: do not try to use this method if you didn't specify DateTime to data elements.
(Inherited from HistoryMultipleDataQueueT.) | |
ItemInt32, Int32 |
Get data which was store "index" steps ago.
(Inherited from HistoryMultipleDataQueueT.) | |
Last |
Get last data element stored in container.
Note: if there is not elements in queue it returns DefaltValue.
(Inherited from HistoryMultipleDataQueueT.) | |
LastDateTime |
Get last data element DateTime stored in container.
Note: if there is not elements in queue it returns DefaltDateTime.
(Inherited from HistoryMultipleDataQueueT.) | |
Ready |
Ready flag is set if and only if queue contain something.
(Inherited from BaseMultipleValueT.) | |
ResamplingFactor |
Set this parameter if you whant to compress data series.
It means that if you set this flag,
then indicator will calculate it's values on ResamplingFactor-greater steps.
| |
ResamplingMethod |
Get or Specify resampling Method.
LastElement - mean that we use for calculation values equals to last value on resampling period,
ArithmeticMean - mean that we use for calculation values equals to arithmetic mean of values on resampling period,
| |
Stable |
Flag is set if and only if indicators values is stable.
(Inherited from BaseMultipleValueT.) | |
TradeSignal |
Trade signal.
| |
TradeSignalType |
Characterize indicator trade signal values range and meaning.
| |
ValidationStrategy |
Indicate what we must do with invalid input values.
(Inherited from BaseMultipleValueT.) | |
Value |
Returns value of indicator. For indicators which has more than one value, it returns a slice.
(Inherited from BaseMultipleValueT.) |
Name | Description | |
---|---|---|
Clone |
Makes full copy of this instance.
(Inherited from BaseMultipleValueT.) | |
CopyTo(Object) |
Sets internal state to destination object.
(Inherited from BaseMultipleValueT.) | |
CopyTo(Object, IL_Clone) |
Gets internal state from source object.
(Inherited from BaseMultipleValueT.) | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetIndexByTime |
Get offset index of element by element time.
If there no element with such time, we return latest element with time smaller than specified.
If we can't find valid index, we return -1.
(Inherited from HistoryMultipleDataQueueT.) | |
GetTimeByIndex |
Return time associated with specified point.
(Inherited from HistoryMultipleDataQueueT.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
SetOnPopDelegate |
Set delegate that will be invoked every time a new element is dequeued.
(Inherited from HistoryMultipleDataQueueT.) | |
SetOnPushDelegate |
Set delegate that will be invoked every time a new element is enqueued.
(Inherited from HistoryMultipleDataQueueT.) | |
SetQueueListener |
Set listener to queue capacity. Queue will call OnPop method every time, when queue drop some element.
And OnPush method, when queue store element. Do not use listener with single element queue.
Queue support any number of listeners.
(Inherited from HistoryMultipleDataQueueT.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |