示例#1
0
        public static AroonResult Aroon(int startIdx, int endIdx, double[] high, double[] low, int timePeriod)
        {
            int outBegIdx    = default;
            int outNBElement = default;

            double[] outAroonDown = new double[endIdx - startIdx + 1];
            double[] outAroonUp   = new double[endIdx - startIdx + 1];

            RetCode retCode = TACore.Aroon(
                startIdx,
                endIdx,
                high,
                low,
                timePeriod,
                ref outBegIdx,
                ref outNBElement,
                ref outAroonDown,
                ref outAroonUp);

            return(new(retCode, outBegIdx, outNBElement, outAroonDown, outAroonUp));
        }