Пример #1
0
 public AverageTrueRange(int length = 14)
 {
     _movingAverage = new SimpleMovingAverage(length);
 }
Пример #2
0
 public StandardDeviation(int length)
 {
     _sma   = new SimpleMovingAverage(length);
     Length = length;
 }
Пример #3
0
 public MeanDeviation()
 {
     Sma = new SimpleMovingAverage(5);
 }
Пример #4
0
 public BollingerBand(float width, int length)
 {
     _width = width;
     _sma   = new SimpleMovingAverage(length);
     _dev   = new StandardDeviation(length);
 }