コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="IchimokuLine"/>.
        /// </summary>
        /// <param name="kijun">Kijun line.</param>
        public IchimokuSenkouBLine(IchimokuLine kijun)
        {
            if (kijun == null)
                throw new ArgumentNullException(nameof(kijun));

            Kijun = kijun;
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="IchimokuLine"/>.
        /// </summary>
        /// <param name="kijun">Kijun line.</param>
        public IchimokuSenkouBLine(IchimokuLine kijun)
        {
            if (kijun == null)
            {
                throw new ArgumentNullException("kijun");
            }

            Kijun = kijun;
        }
コード例 #3
0
        /// <summary>
        /// Создать <see cref="IchimokuLine"/>.
        /// </summary>
        /// <param name="kijun">Линия Kijun.</param>
        public IchimokuSenkouBLine(IchimokuLine kijun)
            : base(typeof(Candle))
        {
            if (kijun == null)
            {
                throw new ArgumentNullException("kijun");
            }

            Kijun = kijun;
        }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="IchimokuSenkouALine"/>.
        /// </summary>
        /// <param name="tenkan">Tenkan line.</param>
        /// <param name="kijun">Kijun line.</param>
        public IchimokuSenkouALine(IchimokuLine tenkan, IchimokuLine kijun)
        {
            if (tenkan == null)
            {
                throw new ArgumentNullException(nameof(tenkan));
            }

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

            Tenkan = tenkan;
            Kijun  = kijun;
        }
コード例 #5
0
        /// <summary>
        /// Создать <see cref="IchimokuSenkouALine"/>.
        /// </summary>
        /// <param name="tenkan">Линия Tenkan.</param>
        /// <param name="kijun">Линия Kijun.</param>
        public IchimokuSenkouALine(IchimokuLine tenkan, IchimokuLine kijun)
            : base(typeof(Candle))
        {
            if (tenkan == null)
            {
                throw new ArgumentNullException("tenkan");
            }

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

            Tenkan = tenkan;
            Kijun  = kijun;
        }
コード例 #6
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Ichimoku"/>.
        /// </summary>
        /// <param name="tenkan">Tenkan line.</param>
        /// <param name="kijun">Kijun line.</param>
        public Ichimoku(IchimokuLine tenkan, IchimokuLine kijun)
        {
            if (tenkan == null)
            {
                throw new ArgumentNullException(nameof(tenkan));
            }

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

            InnerIndicators.Add(Tenkan  = tenkan);
            InnerIndicators.Add(Kijun   = kijun);
            InnerIndicators.Add(SenkouA = new IchimokuSenkouALine(Tenkan, Kijun));
            InnerIndicators.Add(SenkouB = new IchimokuSenkouBLine(Kijun)
            {
                Length = 52
            });
            InnerIndicators.Add(Chinkou = new IchimokuChinkouLine {
                Length = kijun.Length
            });
        }
コード例 #7
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IchimokuSenkouALine"/>.
 /// </summary>
 /// <param name="tenkan">Tenkan line.</param>
 /// <param name="kijun">Kijun line.</param>
 public IchimokuSenkouALine(IchimokuLine tenkan, IchimokuLine kijun)
 {
     Tenkan = tenkan ?? throw new ArgumentNullException(nameof(tenkan));
     Kijun  = kijun ?? throw new ArgumentNullException(nameof(kijun));
 }
コード例 #8
0
 /// <summary>
 /// Initializes a new instance of the <see cref="IchimokuLine"/>.
 /// </summary>
 /// <param name="kijun">Kijun line.</param>
 public IchimokuSenkouBLine(IchimokuLine kijun)
 {
     Kijun = kijun ?? throw new ArgumentNullException(nameof(kijun));
 }