public static AvgPriceResult AvgPrice( int startIdx, int endIdx, double[] open, double[] high, double[] low, double[] close) { int outBegIdx = default; int outNBElement = default; double[] outReal = new double[endIdx - startIdx + 1]; RetCode retCode = TACore.AvgPrice( startIdx, endIdx, open, high, low, close, ref outBegIdx, ref outNBElement, ref outReal); return(new(retCode, outBegIdx, outNBElement, outReal)); }