CompositeMomentum

StockSharp.Algo.Indicators

综合动向指标.

继承自: BaseComplexIndicator<ICompositeMomentumValue>

构造函数

CompositeMomentum
public CompositeMomentum()
compositeMomentum = CompositeMomentum()

初始化了 & ##CompositeMomentum+#的新实例.

CompositeMomentum
public CompositeMomentum(RateOfChange shortRoc, RateOfChange longRoc, RelativeStrengthIndex rsi, ExponentialMovingAverage emaFast, ExponentialMovingAverage emaSlow, SimpleMovingAverage sma)
compositeMomentum = CompositeMomentum(shortRoc, longRoc, rsi, emaFast, emaSlow, sma)

初始化了 & ##CompositeMomentum+#的新实例.

属性

CompositeLine
public CompositeMomentumLine CompositeLine { get; }
value = compositeMomentum.CompositeLine

复合动力线.

EmaFast
public ExponentialMovingAverage EmaFast { get; }
value = compositeMomentum.EmaFast

快速指示移动平均值.

EmaSlow
public ExponentialMovingAverage EmaSlow { get; }
value = compositeMomentum.EmaSlow

慢征移动平均.

LongRoc
public RateOfChange LongRoc { get; }
value = compositeMomentum.LongRoc

长期变化率。

Measure
public override IndicatorMeasures Measure { get; }
value = compositeMomentum.Measure

IndicatorMeasures.

NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = compositeMomentum.NumValuesToInitialize

如果未定义,需要处理的数值数量,以使指标初始化(be IsFormed 等值)。

Rsi
public RelativeStrengthIndex Rsi { get; }
value = compositeMomentum.Rsi

相對強取指数.

ShortRoc
public RateOfChange ShortRoc { get; }
value = compositeMomentum.ShortRoc

短期变化率。

Sma
public SimpleMovingAverage Sma { get; }
value = compositeMomentum.Sma

SMA用于最终平滑.

方法

CreateValue
protected override ICompositeMomentumValue CreateValue(DateTime time)
result = compositeMomentum.CreateValue(time)

创建 .

time
时间
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = compositeMomentum.OnProcess(input)

处理输入值。

input
入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入

返回值: 由此而来的价值.

Reset
public override void Reset()
compositeMomentum.Reset()

复置set州.