// constructor, called only once, setup multiple tick variables public oIndicatorDump(int pPeriods) { iPeriods = pPeriods; ATR = new iATR(pPeriods); BB = new iBollingerBands(iPeriods, -1); CCI = new iCCI(iPeriods); Derivatives = new iDerivatives(); EMA = new iEMA(iPeriods); FMA = new iFMA(iPeriods); HMA = new iHMA(iPeriods); MACD = new iMACD(12, 26, 9); Momemtum = new iMomemtum(iPeriods); RSI = new iRSI(iPeriods); Renko = new iRenko(iPeriods); SMA = new iSMA(iPeriods); STARCBands = new iSTARCBands(iPeriods, 2); STDDEV = new iSTDDEV(iPeriods); Slope = new iSlope(); StochRSI = new iStochRSI(iPeriods); Stochastics = new iStochastics(3, 2, 1); Stub = new iStub(iPeriods); Trend = new iTrend(iPeriods); TrueRange = new iTrueRange(); WMA = new iWMA(iPeriods); }
public iSTARCBands(int pPeriods, double pWidth) { periods = pPeriods; width = pWidth; ATR = new iATR(periods); SMA = new iSMA(periods); }
// 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); }
public iSTDDEV(int pPeriods) { periods = pPeriods; SMA = new iSMA(pPeriods); History = new CQueue(pPeriods); }
public iCCI(int pPeriods) { periods = pPeriods; TPSMA = new iSMA(pPeriods); History = new CQueue(pPeriods); }