// restriction: pKPeriods > max(pKSPeriods,pDPeriods) public iStochastics(int pKPeriods, int pKSPeriods, int pDPeriods) { KPeriods = pKPeriods; KSPeriods = pKSPeriods; DPeriods = pDPeriods; H = new double[KPeriods]; L = new double[KPeriods]; KSmooth = new iSMA(KSPeriods); D = new iSMA(DPeriods); }
public iFMA(int pPeriods) { periods = pPeriods; longSMA = new iSMA(periods); shortSMA = new iSMA(periods / 2); }