示例#1
0
		/// <summary>
		/// Создать <see cref="Acceleration"/>.
		/// </summary>
		/// <param name="ao">Чудесный осцилятор.</param>
		/// <param name="sma">Cкользящая средняя.</param>
		public Acceleration(AwesomeOscillator ao, SimpleMovingAverage sma)
		{
			if (ao == null)
				throw new ArgumentNullException("ao");

			if (sma == null)
				throw new ArgumentNullException("sma");

			Ao = ao;
			Sma = sma;
		}
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Acceleration"/>.
        /// </summary>
        /// <param name="ao">Awesome Oscillator.</param>
        /// <param name="sma">The moving average.</param>
        public Acceleration(AwesomeOscillator ao, SimpleMovingAverage sma)
        {
            if (ao == null)
            {
                throw new ArgumentNullException(nameof(ao));
            }

            if (sma == null)
            {
                throw new ArgumentNullException(nameof(sma));
            }

            Ao  = ao;
            Sma = sma;
        }
示例#3
0
        /// <summary>
        /// Создать <see cref="Acceleration"/>.
        /// </summary>
        /// <param name="ao">Чудесный осцилятор.</param>
        /// <param name="sma">Cкользящая средняя.</param>
        public Acceleration(AwesomeOscillator ao, SimpleMovingAverage sma)
            : base(typeof(Candle))
        {
            if (ao == null)
            {
                throw new ArgumentNullException("ao");
            }

            if (sma == null)
            {
                throw new ArgumentNullException("sma");
            }

            Ao  = ao;
            Sma = sma;
        }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Acceleration"/>.
 /// </summary>
 /// <param name="ao">Awesome Oscillator.</param>
 /// <param name="sma">The moving average.</param>
 public Acceleration(AwesomeOscillator ao, SimpleMovingAverage sma)
 {
     Ao  = ao ?? throw new ArgumentNullException(nameof(ao));
     Sma = sma ?? throw new ArgumentNullException(nameof(sma));
 }