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
快速指示移动平均值.
Measure
public override IndicatorMeasures Measure { get; }
value = compositeMomentum.Measure
IndicatorMeasures.
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = compositeMomentum.NumValuesToInitialize
如果未定义,需要处理的数值数量,以使指标初始化(be IsFormed 等值)。
方法
CreateValue
protected override ICompositeMomentumValue CreateValue(DateTime time)
result = compositeMomentum.CreateValue(time)
创建 .
- time
- 时间
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = compositeMomentum.OnProcess(input)
处理输入值。
- input
- 入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入
返回值: 由此而来的价值.