예제 #1
0
        public KDJStochastics(int kWindowSize, int kDecay, int jCoeff)
            : base(1)
        {
            if (kWindowSize <= 0 || kDecay <= 0 || jCoeff <= 0)
            {
                throw new ArgumentOutOfRangeException();
            }

            _kWindowSize = kWindowSize;
            _kDecay      = kDecay;
            _jCoeff      = jCoeff;

            _highest = new Highest(kWindowSize);
            _lowest  = new Lowest(kWindowSize);
        }
 public WilliamOverboughtOversoldIndex(int windowSize)
     : base(1)
 {
     _highest = new Highest(windowSize);
     _lowest  = new Lowest(windowSize);
 }