Interface IIndicator
- Namespace
- StockSharp.Algo.Indicators
- Assembly
- StockSharp.BusinessEntities.dll
The interface describing indicator.
public interface IIndicator : IPersistable, ICloneable<IIndicator>, ICloneable
- Inherited Members
- Extension Methods
Properties
Color
Indicator color. If null then the color will be automatically selected.
Color? Color { get; }
Property Value
Container
The container storing indicator data.
IIndicatorContainer Container { get; }
Property Value
Id
Unique ID.
Guid Id { get; }
Property Value
InputType
Input values type.
Type InputType { get; }
Property Value
IsFormed
Whether the indicator is set.
bool IsFormed { get; }
Property Value
Measure
IndicatorMeasures Measure { get; }
Property Value
Name
Indicator name.
string Name { get; set; }
Property Value
NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals true). null if undefined.
int NumValuesToInitialize { get; }
Property Value
ResultType
Result values type.
Type ResultType { get; }
Property Value
Style
Chart indicator draw style.
DrawStyles Style { get; }
Property Value
- DrawStyles
Methods
CreateValue(DateTimeOffset, object[])
Convert to indicator value.
IIndicatorValue CreateValue(DateTimeOffset time, object[] values)
Parameters
time
DateTimeOffsetvalues
object[]
Returns
Process(IIndicatorValue)
To handle the input value.
IIndicatorValue Process(IIndicatorValue input)
Parameters
input
IIndicatorValueThe input value.
Returns
- IIndicatorValue
The new value of the indicator.
Reset()
To reset the indicator status to initial. The method is called each time when initial settings are changed (for example, the length of period).
void Reset()
Events
Changed
The indicator change event (for example, a new value is added).
event Action<IIndicatorValue, IIndicatorValue> Changed
Event Type
Reseted
The event of resetting the indicator status to initial. The event is called each time when initial settings are changed (for example, the length of period).
event Action Reseted