public override void MultipleOutputUpdate(Bar data) { if (_acceptBarInput) { if (_singleOutput) { _sobiMetric.Update(data); } else { _mobiMetric.Update(data); } } else { if (_singleOutput) { _soriMetric.Update(data.ClosePrice); } else { _moriMetric.Update(data.ClosePrice); } } }
public override double[] MultipleOutputUpdate(StockAnalysis.Share.Bar data) { if (_acceptBarInput) { if (_singleOutput) { return(new double[1] { _sobiMetric.Update(data) }); } else { return(_mobiMetric.Update(data)); } } else { if (_singleOutput) { return(new double[1] { _soriMetric.Update(data.ClosePrice) }); } else { return(_moriMetric.Update(data.ClosePrice)); } } }