/* * public double MACDSignal * { * get * { * return signal.EMAverage; * } * }*/ public void Init(int shortPeriod, int longPeriod, int macdSumSize, int emaStartTime) { emaShort = new EMA(); emaShort.Init(shortPeriod, 1); //emaShort.Init(shortPeriod,emaStartTime); emaLong = new EMA(); emaLong.Init(longPeriod, 1); //emaLong.Init(longPeriod, emaStartTime); emaMacdSum = new EMA(); emaMacdSum.Init(longPeriod * 5, emaStartTime); macdSum = new MovingSum(); macdSum.Init(macdSumSize); //signal = new EMA(); //signal.Init(signalPeriod, emaStartTime); //this.signalThreshold = signalThreshold; }