예제 #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);
 }