public static Cci Cci( int startIdx, int endIdx, float[] high, float[] low, float[] close, int timePeriod = 14) { int outBegIdx = default(int); int outNBElement = default(int); double[] outReal = new double[endIdx - startIdx + 1]; var retCode = TACore.Cci( startIdx, endIdx, high, low, close, timePeriod, ref outBegIdx, ref outNBElement, outReal); return(new Cci(retCode, outBegIdx, outNBElement, outReal)); }
public static double[] CCI(int Period, double[] Highs, double[] Lows, double[] Closes) { int outBegIdx = 0; int outNbElement = 0; double[] output = new double[Highs.Length]; var res = TACore.Cci(0, Highs.Length - 1, Highs, Lows, Closes, Period, ref outBegIdx, ref outNbElement, output); return(NormalizeArray(output, Period)); }