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);
         }
     }
 }
Exemple #2
0
 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));
         }
     }
 }