public static ApoResult Apo(int startIdx, int endIdx, double[] real, int fastPeriod, int slowPeriod, MAType maType) { int outBegIdx = default; int outNBElement = default; double[] outReal = new double[endIdx - startIdx + 1]; RetCode retCode = TACore.Apo( startIdx, endIdx, real, fastPeriod, slowPeriod, maType, ref outBegIdx, ref outNBElement, ref outReal); return(new(retCode, outBegIdx, outNBElement, outReal)); }