Пример #1
0
 /// <summary>
 /// Default Constructor
 /// </summary>
 /// <param name="size"></param>
 public RSI(PeriodType type = PeriodType.Day, long stockExchangeId = 0, int length = 14) : base(type, stockExchangeId)
 {
     Length          = length;
     UpwardPeriods   = new ExponentialMovingAverage(type, stockExchangeId, Length);
     DownwardPeriods = new ExponentialMovingAverage(type, stockExchangeId, Length);
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MACD"/> class.
 /// </summary>
 public MACD(PeriodType type = PeriodType.Day, long stockExchangeId = 0) : base(type, stockExchangeId)
 {
     Ema9  = new ExponentialMovingAverage(type, stockExchangeId, 9);
     Ema12 = new ExponentialMovingAverage(type, stockExchangeId, 12);
     Ema26 = new ExponentialMovingAverage(type, stockExchangeId, 26);
 }