IndicatorHelper
Extension class for indicators.
メソッド
CreateEmptyValue(IIndicator, DateTime) : IIndicatorValue
Create empty IIndicatorValue.
- indicator
- IIndicator
- time
- Time
戻り値: Empty IIndicatorValue.
ExcludeObsolete(IEnumerable<IndicatorType>) : IEnumerable<IndicatorType>
Exclude obsolete indicators.
- types
- All indicator types.
戻り値: Filtered collection.
GetCurrentValue(IIndicator) : T
To get the current value of the indicator.
- indicator
- Indicator.
戻り値: The current value.
GetCurrentValue``1(IIndicator)
To get the current value of the indicator.
- indicator
- Indicator.
戻り値: The current value.
GetFirstValue(IIndicator) : decimal
To get the first value of the indicator.
- indicator
- Indicator.
戻り値: The current value.
GetNullableCurrentValue(IIndicator) : decimal?
To get the current value of the indicator.
- indicator
- Indicator.
戻り値: The current value.
GetNullableFirstValue(IIndicator) : decimal?
To get the first value of the indicator.
- indicator
- Indicator.
戻り値: The current value.
GetNullableValue(IIndicator, int) : decimal?
To get the indicator value by the index (0 - last value).
- indicator
- Indicator.
- index
- The value index.
戻り値: Indicator value.
GetValue(IIndicator, int) : T
To get the indicator value by the index (0 - last value).
- indicator
- Indicator.
- index
- The value index.
戻り値: Indicator value.
GetValueType(Type, bool) : Type
Get value type for specified indicator.
- indicatorType
- Indicator type.
- isInput
- Is input.
戻り値: Value type.
GetValue``1(IIndicator, int)
To get the indicator value by the index (0 - last value).
- indicator
- Indicator.
- index
- The value index.
戻り値: Indicator value.
IsNonDecimalOutputValue(Type) : bool
Determines whether the indicator is a non-decimal output value.
- indicator
- Indicator type.
戻り値: Check result.
Preload(IIndicator, IEnumerable<ValueTuple<DateTime, object[]>>)
Bulk preload using primitive tuples. Implementations may override; default throws NotSupportedException.
- indicator
- IIndicator
- items
- Sequence of (time, values) where values correspond to ToValues output.
Process(IIndicator, decimal, DateTime, bool) : IIndicatorValue
To renew the indicator with numeric value.
- indicator
- Indicator.
- value
- Numeric value.
- time
- Time
- isFinal
- Is the value final (the indicator finally forms its value and will not be changed in this point of time anymore). Default is .
戻り値: The new value of the indicator.
Process(IIndicator, ICandleMessage) : IIndicatorValue
To renew the indicator with candle closing price ClosePrice.
- indicator
- Indicator.
- candle
- Candle.
戻り値: The new value of the indicator.
Process(IIndicator, IIndicatorValue, decimal) : IIndicatorValue
To renew the indicator with numeric value.
- indicator
- Indicator.
- input
- IIndicatorValue
- value
- Numeric value.
戻り値: The new value of the indicator.
Process(IIndicator, object, DateTime, bool) : IIndicatorValue
To renew the indicator with new value.
- indicator
- Indicator.
- inputValue
- Input value.
- time
- Time
- isFinal
- IsFinal
戻り値: IIndicatorValue.
Process``1(IIndicator, ValueTuple<T, T>, DateTime, bool)
To renew the indicator with numeric pair.
- indicator
- Indicator.
- value
- The pair of values.
- time
- Time
- isFinal
- If the pair final (the indicator finally forms its value and will not be changed in this point of time anymore). Default is .
戻り値: The new value of the indicator.
SetValue(IIndicatorValue, IIndicator, decimal) : IIndicatorValue
To replace the indicator input value by new one (for example it is received from another indicator).
- input
- IIndicatorValue
- indicator
- Indicator.
- value
- Value.
戻り値: New object, containing input value.
ToCandle(IIndicatorValue) : ICandleMessage
Convert IIndicatorValue to ICandleMessage.
- value
- IIndicatorValue
戻り値: ICandleMessage
ToDecimal(IIndicatorValue, Level1Fields?) : decimal
Convert IIndicatorValue to Decimal.
- value
- IIndicatorValue
- source
- Field specified value source.
戻り値: Decimal
ToNullableDecimal(IIndicatorValue, Level1Fields?) : decimal?
Convert IIndicatorValue to Decimal or if the value is empty..
- value
- IIndicatorValue
- source
- Field specified value source.
戻り値: Decimal or if the value is empty.
TryGetById(IIndicatorProvider, string) : IndicatorType
Try find IndicatorType by identifier.
- provider
- IIndicatorProvider
- id
- Identifier.
戻り値: IndicatorType or .
TryGetByType(IIndicatorProvider, Type) : IndicatorType
Try find IndicatorType by type.
- provider
- IIndicatorProvider
- type
- Indicator
戻り値: IndicatorType or .