Ejemplo n.º 1
0
 /// <summary>
 /// Resets this indicator and all sub-indicators (StandardDeviation, LowerBand, MiddleBand, UpperBand)
 /// </summary>
 public override void Reset()
 {
     _standardDeviation.Reset();
     LinearRegression.Reset();
     LowerChannel.Reset();
     UpperChannel.Reset();
     base.Reset();
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Computes the next value of this indicator from the given state
        /// </summary>
        /// <param name="input">The input given to the indicator</param>
        /// <returns>
        /// A new value for this indicator
        /// </returns>
        protected override decimal ComputeNextValue(IndicatorDataPoint input)
        {
            _standardDeviation.Update(input);
            LinearRegression.Update(input);
            LowerChannel.Update(input);
            UpperChannel.Update(input);

            return(LinearRegression.Current);
        }
Ejemplo n.º 3
0
 public LowerChannelCalculator()
 {
     _calculator = new LowerChannel();
 }