コード例 #1
0
ファイル: Acceleration.cs プロジェクト: reddream/StockSharp
		/// <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
ファイル: Acceleration.cs プロジェクト: zfy1989lee/StockSharp
        /// <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));
 }