示例#1
0
 public TimeDecayLinear(decimal linearDecay, TimeSpan mobilePeriodLength) : base(mobilePeriodLength)
 {
     _startCoeff      = 2m / (1m + linearDecay);
     _endCoeff        = 2m - _startCoeff;
     _timeDecayWeight = new TimeSeries();
 }
示例#2
0
 public void Clear()
 {
     _values = new TimeSeries();
     _updateHandlers.Clear();
     _tickHandlers.Clear();
 }
示例#3
0
 public virtual void Process(DateTime dt, Price p)
 {
     TimeSeries.Add(dt, p);
 }
示例#4
0
文件: Indicator.cs 项目: w1r2p1/MiDax
        public override void Process(DateTime dt, Price p)
        {
            var newValue = IndicatorFunc(SignalStock, dt, p);

            TimeSeries.Add(dt, newValue);
        }