SuperTrend
StockSharp.Algo.Indicators
SuperTrend indicator.
继承自: BaseIndicator
构造函数
SuperTrend
public SuperTrend(AverageTrueRange atr)
superTrend = SuperTrend(atr)
初始化了 & ##SuperTrend+# 类的新实例 。
- atr
- AverageTrueRange
属性
Length
public int Length { get; set; }
value = superTrend.Length
superTrend.Length = value
ATR期(ATR期).
Multiplier
public decimal Multiplier { get; set; }
value = superTrend.Multiplier
superTrend.Multiplier = value
ATR 的乘数.
NumValuesToInitialize
public override int NumValuesToInitialize { get; }
value = superTrend.NumValuesToInitialize
如果未定义,需要处理的数值数量,以使指标初始化(be IsFormed 等值)。
方法
Load
public override void Load(SettingsStorage storage)
superTrend.Load(storage)
装入设置 。
- storage
- 设置存储 。
OnProcess
protected override IIndicatorValue OnProcess(IIndicatorValue input)
result = superTrend.OnProcess(input)
处理输入值。
- input
- 入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入入
返回值: 由此而来的价值.
Save
public override void Save(SettingsStorage storage)
superTrend.Save(storage)
保存设置 。
- storage
- 设置存储 。