コード例 #1
0
        // 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);
        }
コード例 #2
0
 public iFMA(int pPeriods)
 {
     periods  = pPeriods;
     longSMA  = new iSMA(periods);
     shortSMA = new iSMA(periods / 2);
 }