/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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; }
/// <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 }); }
/// <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)); }
/// <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)); }