ConstanceBrownCompositeIndex
Constance Brown Composite Index indicator.
Inherits: BaseComplexIndicator<IConstanceBrownCompositeIndexValue>
Constructors
public ConstanceBrownCompositeIndex()
constanceBrownCompositeIndex = ConstanceBrownCompositeIndex()
Initializes a new instance of the ConstanceBrownCompositeIndex.
Properties
public CompositeIndexLine CompositeIndexLine { get; }
value = constanceBrownCompositeIndex.CompositeIndexLine
Composite index line (main line).
public SimpleMovingAverage FastSma { get; }
value = constanceBrownCompositeIndex.FastSma
Fast moving average of composite index.
public int FastSmaLength { get; set; }
value = constanceBrownCompositeIndex.FastSmaLength
constanceBrownCompositeIndex.FastSmaLength = value
Fast SMA period length.
public override IndicatorMeasures Measure { get; }
value = constanceBrownCompositeIndex.Measure
IndicatorMeasures.
public int MomentumLength { get; set; }
value = constanceBrownCompositeIndex.MomentumLength
constanceBrownCompositeIndex.MomentumLength = value
Momentum SMA period length.
public override int NumValuesToInitialize { get; }
value = constanceBrownCompositeIndex.NumValuesToInitialize
Number of values that need to be processed in order for the indicator to initialize (be IsFormed equals ). if undefined.
public int RocLength { get; set; }
value = constanceBrownCompositeIndex.RocLength
constanceBrownCompositeIndex.RocLength = value
ROC period length.
public int RsiLength { get; set; }
value = constanceBrownCompositeIndex.RsiLength
constanceBrownCompositeIndex.RsiLength = value
RSI period length.
public int ShortRsiLength { get; set; }
value = constanceBrownCompositeIndex.ShortRsiLength
constanceBrownCompositeIndex.ShortRsiLength = value
Short RSI period length.
public SimpleMovingAverage SlowSma { get; }
value = constanceBrownCompositeIndex.SlowSma
Slow moving average of composite index.
public int SlowSmaLength { get; set; }
value = constanceBrownCompositeIndex.SlowSmaLength
constanceBrownCompositeIndex.SlowSmaLength = value
Slow SMA period length.
Methods
protected override IConstanceBrownCompositeIndexValue CreateValue(DateTime time)
result = constanceBrownCompositeIndex.CreateValue(time)
Create .
- time
- Time
public override Task LoadAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = constanceBrownCompositeIndex.LoadAsync(storage, cancellationToken)
Load settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = constanceBrownCompositeIndex.OnProcess(input)
To handle the input value.
- input
- The input value.
Returns: The resulting value.
public override void Reset()
constanceBrownCompositeIndex.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).
public override Task SaveAsync(SettingsStorage storage, CancellationToken cancellationToken)
result = constanceBrownCompositeIndex.SaveAsync(storage, cancellationToken)
Save settings.
- storage
- Settings storage.
- cancellationToken
- CancellationToken
Returns: Task
public override string ToString()
result = constanceBrownCompositeIndex.ToString()
Returns a string representation of the tuple, with values separated by commas.
Returns: A string representing the tuple's values.