UNPKG

napi-talib

Version:
705 lines 57.3 kB
/* This file is automatically generated by gencodes.js */ import { execute } from './index.js'; const fillNaN = (count, array) => Array(count).fill(NaN).concat(array); export function ADD(inReal0, inReal1, opts) { const results = execute({ name: "ADD", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal0.length - 1, params: Object.assign({ inReal0: inReal0, inReal1: inReal1 }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function DIV(inReal0, inReal1, opts) { const results = execute({ name: "DIV", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal0.length - 1, params: Object.assign({ inReal0: inReal0, inReal1: inReal1 }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function MAX(inReal, opts) { const results = execute({ name: "MAX", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function MAXINDEX(inReal, opts) { const results = execute({ name: "MAXINDEX", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function MIN(inReal, opts) { const results = execute({ name: "MIN", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function MININDEX(inReal, opts) { const results = execute({ name: "MININDEX", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function MINMAX(inReal, opts) { const results = execute({ name: "MINMAX", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outMin, outMax } = results.results; return [fillNaN(results.begIndex, outMin), fillNaN(results.begIndex, outMax)]; } export function MINMAXINDEX(inReal, opts) { const results = execute({ name: "MINMAXINDEX", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outMinIdx, outMaxIdx } = results.results; return [fillNaN(results.begIndex, outMinIdx), fillNaN(results.begIndex, outMaxIdx)]; } export function MULT(inReal0, inReal1, opts) { const results = execute({ name: "MULT", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal0.length - 1, params: Object.assign({ inReal0: inReal0, inReal1: inReal1 }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function SUB(inReal0, inReal1, opts) { const results = execute({ name: "SUB", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal0.length - 1, params: Object.assign({ inReal0: inReal0, inReal1: inReal1 }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function SUM(inReal, opts) { const results = execute({ name: "SUM", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ACOS(inReal, opts) { const results = execute({ name: "ACOS", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ASIN(inReal, opts) { const results = execute({ name: "ASIN", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ATAN(inReal, opts) { const results = execute({ name: "ATAN", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function CEIL(inReal, opts) { const results = execute({ name: "CEIL", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function COS(inReal, opts) { const results = execute({ name: "COS", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function COSH(inReal, opts) { const results = execute({ name: "COSH", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function EXP(inReal, opts) { const results = execute({ name: "EXP", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function FLOOR(inReal, opts) { const results = execute({ name: "FLOOR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function LN(inReal, opts) { const results = execute({ name: "LN", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function LOG10(inReal, opts) { const results = execute({ name: "LOG10", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function SIN(inReal, opts) { const results = execute({ name: "SIN", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function SINH(inReal, opts) { const results = execute({ name: "SINH", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function SQRT(inReal, opts) { const results = execute({ name: "SQRT", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function TAN(inReal, opts) { const results = execute({ name: "TAN", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function TANH(inReal, opts) { const results = execute({ name: "TANH", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ACCBANDS(inHigh, inLow, inClose, opts) { const results = execute({ name: "ACCBANDS", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outRealUpperBand, outRealMiddleBand, outRealLowerBand } = results.results; return [fillNaN(results.begIndex, outRealUpperBand), fillNaN(results.begIndex, outRealMiddleBand), fillNaN(results.begIndex, outRealLowerBand)]; } export function BBANDS(inReal, opts) { const results = execute({ name: "BBANDS", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outRealUpperBand, outRealMiddleBand, outRealLowerBand } = results.results; return [fillNaN(results.begIndex, outRealUpperBand), fillNaN(results.begIndex, outRealMiddleBand), fillNaN(results.begIndex, outRealLowerBand)]; } export function DEMA(inReal, opts) { const results = execute({ name: "DEMA", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function EMA(inReal, opts) { const results = execute({ name: "EMA", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function HT_TRENDLINE(inReal, opts) { const results = execute({ name: "HT_TRENDLINE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function KAMA(inReal, opts) { const results = execute({ name: "KAMA", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function MA(inReal, opts) { const results = execute({ name: "MA", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function MAMA(inReal, opts) { const results = execute({ name: "MAMA", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outMAMA, outFAMA } = results.results; return [fillNaN(results.begIndex, outMAMA), fillNaN(results.begIndex, outFAMA)]; } export function MAVP(inReal, inPeriods, opts) { const results = execute({ name: "MAVP", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal, inPeriods: inPeriods }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function MIDPOINT(inReal, opts) { const results = execute({ name: "MIDPOINT", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function MIDPRICE(inHigh, inLow, opts) { const results = execute({ name: "MIDPRICE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function SAR(inHigh, inLow, opts) { const results = execute({ name: "SAR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function SAREXT(inHigh, inLow, opts) { const results = execute({ name: "SAREXT", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function SMA(inReal, opts) { const results = execute({ name: "SMA", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function T3(inReal, opts) { const results = execute({ name: "T3", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function TEMA(inReal, opts) { const results = execute({ name: "TEMA", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function TRIMA(inReal, opts) { const results = execute({ name: "TRIMA", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function WMA(inReal, opts) { const results = execute({ name: "WMA", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ATR(inHigh, inLow, inClose, opts) { const results = execute({ name: "ATR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function NATR(inHigh, inLow, inClose, opts) { const results = execute({ name: "NATR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function TRANGE(inHigh, inLow, inClose, opts) { const results = execute({ name: "TRANGE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ADX(inHigh, inLow, inClose, opts) { const results = execute({ name: "ADX", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ADXR(inHigh, inLow, inClose, opts) { const results = execute({ name: "ADXR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function APO(inReal, opts) { const results = execute({ name: "APO", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function AROON(inHigh, inLow, opts) { const results = execute({ name: "AROON", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow }, opts ?? {}) }); const { outAroonDown, outAroonUp } = results.results; return [fillNaN(results.begIndex, outAroonDown), fillNaN(results.begIndex, outAroonUp)]; } export function AROONOSC(inHigh, inLow, opts) { const results = execute({ name: "AROONOSC", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function BOP(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "BOP", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function CCI(inHigh, inLow, inClose, opts) { const results = execute({ name: "CCI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function CMO(inReal, opts) { const results = execute({ name: "CMO", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function DX(inHigh, inLow, inClose, opts) { const results = execute({ name: "DX", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function IMI(inOpen, inClose, opts) { const results = execute({ name: "IMI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function MACD(inReal, opts) { const results = execute({ name: "MACD", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outMACD, outMACDSignal, outMACDHist } = results.results; return [fillNaN(results.begIndex, outMACD), fillNaN(results.begIndex, outMACDSignal), fillNaN(results.begIndex, outMACDHist)]; } export function MACDEXT(inReal, opts) { const results = execute({ name: "MACDEXT", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outMACD, outMACDSignal, outMACDHist } = results.results; return [fillNaN(results.begIndex, outMACD), fillNaN(results.begIndex, outMACDSignal), fillNaN(results.begIndex, outMACDHist)]; } export function MACDFIX(inReal, opts) { const results = execute({ name: "MACDFIX", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outMACD, outMACDSignal, outMACDHist } = results.results; return [fillNaN(results.begIndex, outMACD), fillNaN(results.begIndex, outMACDSignal), fillNaN(results.begIndex, outMACDHist)]; } export function MFI(inHigh, inLow, inClose, inVolume, opts) { const results = execute({ name: "MFI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose, volume: inVolume }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function MINUS_DI(inHigh, inLow, inClose, opts) { const results = execute({ name: "MINUS_DI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function MINUS_DM(inHigh, inLow, opts) { const results = execute({ name: "MINUS_DM", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function MOM(inReal, opts) { const results = execute({ name: "MOM", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function PLUS_DI(inHigh, inLow, inClose, opts) { const results = execute({ name: "PLUS_DI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function PLUS_DM(inHigh, inLow, opts) { const results = execute({ name: "PLUS_DM", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function PPO(inReal, opts) { const results = execute({ name: "PPO", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ROC(inReal, opts) { const results = execute({ name: "ROC", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ROCP(inReal, opts) { const results = execute({ name: "ROCP", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ROCR(inReal, opts) { const results = execute({ name: "ROCR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ROCR100(inReal, opts) { const results = execute({ name: "ROCR100", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function RSI(inReal, opts) { const results = execute({ name: "RSI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function STOCH(inHigh, inLow, inClose, opts) { const results = execute({ name: "STOCH", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outSlowK, outSlowD } = results.results; return [fillNaN(results.begIndex, outSlowK), fillNaN(results.begIndex, outSlowD)]; } export function STOCHF(inHigh, inLow, inClose, opts) { const results = execute({ name: "STOCHF", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outFastK, outFastD } = results.results; return [fillNaN(results.begIndex, outFastK), fillNaN(results.begIndex, outFastD)]; } export function STOCHRSI(inReal, opts) { const results = execute({ name: "STOCHRSI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outFastK, outFastD } = results.results; return [fillNaN(results.begIndex, outFastK), fillNaN(results.begIndex, outFastD)]; } export function TRIX(inReal, opts) { const results = execute({ name: "TRIX", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ULTOSC(inHigh, inLow, inClose, opts) { const results = execute({ name: "ULTOSC", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function WILLR(inHigh, inLow, inClose, opts) { const results = execute({ name: "WILLR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function HT_DCPERIOD(inReal, opts) { const results = execute({ name: "HT_DCPERIOD", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function HT_DCPHASE(inReal, opts) { const results = execute({ name: "HT_DCPHASE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function HT_PHASOR(inReal, opts) { const results = execute({ name: "HT_PHASOR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outInPhase, outQuadrature } = results.results; return [fillNaN(results.begIndex, outInPhase), fillNaN(results.begIndex, outQuadrature)]; } export function HT_SINE(inReal, opts) { const results = execute({ name: "HT_SINE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outSine, outLeadSine } = results.results; return [fillNaN(results.begIndex, outSine), fillNaN(results.begIndex, outLeadSine)]; } export function HT_TRENDMODE(inReal, opts) { const results = execute({ name: "HT_TRENDMODE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function AD(inHigh, inLow, inClose, inVolume, opts) { const results = execute({ name: "AD", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose, volume: inVolume }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function ADOSC(inHigh, inLow, inClose, inVolume, opts) { const results = execute({ name: "ADOSC", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inHigh.length - 1, params: Object.assign({ high: inHigh, low: inLow, close: inClose, volume: inVolume }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function OBV(inReal, inVolume, opts) { const results = execute({ name: "OBV", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inReal.length - 1, params: Object.assign({ inReal: inReal, volume: inVolume }, opts ?? {}) }); const { outReal } = results.results; return fillNaN(results.begIndex, outReal); } export function CDL2CROWS(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDL2CROWS", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDL3BLACKCROWS(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDL3BLACKCROWS", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDL3INSIDE(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDL3INSIDE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDL3LINESTRIKE(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDL3LINESTRIKE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDL3OUTSIDE(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDL3OUTSIDE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDL3STARSINSOUTH(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDL3STARSINSOUTH", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDL3WHITESOLDIERS(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDL3WHITESOLDIERS", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLABANDONEDBABY(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLABANDONEDBABY", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLADVANCEBLOCK(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLADVANCEBLOCK", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLBELTHOLD(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLBELTHOLD", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLBREAKAWAY(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLBREAKAWAY", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLCLOSINGMARUBOZU(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLCLOSINGMARUBOZU", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLCONCEALBABYSWALL(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLCONCEALBABYSWALL", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLCOUNTERATTACK(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLCOUNTERATTACK", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLDARKCLOUDCOVER(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLDARKCLOUDCOVER", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLDOJI(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLDOJI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLDOJISTAR(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLDOJISTAR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLDRAGONFLYDOJI(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLDRAGONFLYDOJI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLENGULFING(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLENGULFING", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLEVENINGDOJISTAR(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLEVENINGDOJISTAR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLEVENINGSTAR(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLEVENINGSTAR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLGAPSIDESIDEWHITE(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLGAPSIDESIDEWHITE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLGRAVESTONEDOJI(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLGRAVESTONEDOJI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLHAMMER(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLHAMMER", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLHANGINGMAN(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLHANGINGMAN", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLHARAMI(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLHARAMI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLHARAMICROSS(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLHARAMICROSS", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLHIGHWAVE(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLHIGHWAVE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLHIKKAKE(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLHIKKAKE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLHIKKAKEMOD(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLHIKKAKEMOD", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLHOMINGPIGEON(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLHOMINGPIGEON", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLIDENTICAL3CROWS(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLIDENTICAL3CROWS", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLINNECK(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLINNECK", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLINVERTEDHAMMER(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLINVERTEDHAMMER", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLKICKING(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLKICKING", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLKICKINGBYLENGTH(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLKICKINGBYLENGTH", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLLADDERBOTTOM(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLLADDERBOTTOM", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLLONGLEGGEDDOJI(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLLONGLEGGEDDOJI", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLLONGLINE(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLLONGLINE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLMARUBOZU(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLMARUBOZU", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLMATCHINGLOW(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLMATCHINGLOW", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLMATHOLD(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLMATHOLD", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLMORNINGDOJISTAR(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLMORNINGDOJISTAR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLMORNINGSTAR(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLMORNINGSTAR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLONNECK(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLONNECK", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLPIERCING(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLPIERCING", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLRICKSHAWMAN(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLRICKSHAWMAN", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLRISEFALL3METHODS(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLRISEFALL3METHODS", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLSEPARATINGLINES(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLSEPARATINGLINES", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLSHOOTINGSTAR(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLSHOOTINGSTAR", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLSHORTLINE(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLSHORTLINE", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLSPINNINGTOP(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLSPINNINGTOP", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLSTALLEDPATTERN(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLSTALLEDPATTERN", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLSTICKSANDWICH(inOpen, inHigh, inLow, inClose, opts) { const results = execute({ name: "CDLSTICKSANDWICH", startIdx: opts?.startIdx ?? 0, endIdx: opts?.endIdx ?? inOpen.length - 1, params: Object.assign({ open: inOpen, high: inHigh, low: inLow, close: inClose }, opts ?? {}) }); const { outInteger } = results.results; return fillNaN(results.begIndex, outInteger); } export function CDLTAKURI(inOpen, inHigh, inLow, inClose, opts) { const results = exec