RelativeMomentumIndex
StockSharp.Algo.Indicators
相对动因指数 (RMI).
构造函数
RelativeMomentumIndex
public RelativeMomentumIndex()
relativeMomentumIndex = RelativeMomentumIndex()
初始化了 & ##RelativeMomentumIndex+#的新实例.
属性
Measure
public override IndicatorMeasures Measure { get; }
value = relativeMomentumIndex.Measure
IndicatorMeasures.
MomentumPeriod
public int MomentumPeriod { get; set; }
value = relativeMomentumIndex.MomentumPeriod
relativeMomentumIndex.MomentumPeriod = value
时节相接.
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = relativeMomentumIndex.NumValuesToInitialize
如果未定义,需要处理的数值数量,以使指标初始化(be IsFormed 等值)。
方法
CalcIsFormed
protected override bool CalcIsFormed()
result = relativeMomentumIndex.CalcIsFormed()
Calc IsFormed.
返回值: IsFormed
Load
public override void Load(SettingsStorage storage)
relativeMomentumIndex.Load(storage)
装入设置 。
- storage
- 设置存储 。
OnProcessDecimal
protected override decimal? OnProcessDecimal(IIndicatorValue input)
result = relativeMomentumIndex.OnProcessDecimal(input)
处理输入值。
- input
- 入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入
返回值: 指标的新值。
Save
public override void Save(SettingsStorage storage)
relativeMomentumIndex.Save(storage)
保存设置 。
- storage
- 设置存储 。
ToString
public override string ToString()
result = relativeMomentumIndex.ToString()
转换为行代表.
返回值: 弦乐表演.