/* Generated by Cython 0.24.1 */

#define PY_SSIZE_T_CLEAN
#include "Python.h"
#ifndef Py_PYTHON_H
    #error Python headers needed to compile C extensions, please install development version of Python.
#elif PY_VERSION_HEX < 0x02060000 || (0x03000000 <= PY_VERSION_HEX && PY_VERSION_HEX < 0x03020000)
    #error Cython requires Python 2.6+ or Python 3.2+.
#else
#define CYTHON_ABI "0_24_1"
#include <stddef.h>
#ifndef offsetof
  #define offsetof(type, member) ( (size_t) & ((type*)0) -> member )
#endif
#if !defined(WIN32) && !defined(MS_WINDOWS)
  #ifndef __stdcall
    #define __stdcall
  #endif
  #ifndef __cdecl
    #define __cdecl
  #endif
  #ifndef __fastcall
    #define __fastcall
  #endif
#endif
#ifndef DL_IMPORT
  #define DL_IMPORT(t) t
#endif
#ifndef DL_EXPORT
  #define DL_EXPORT(t) t
#endif
#ifndef PY_LONG_LONG
  #define PY_LONG_LONG LONG_LONG
#endif
#ifndef Py_HUGE_VAL
  #define Py_HUGE_VAL HUGE_VAL
#endif
#ifdef PYPY_VERSION
  #define CYTHON_COMPILING_IN_PYPY 1
  #define CYTHON_COMPILING_IN_CPYTHON 0
#else
  #define CYTHON_COMPILING_IN_PYPY 0
  #define CYTHON_COMPILING_IN_CPYTHON 1
#endif
#if !defined(CYTHON_USE_PYLONG_INTERNALS) && CYTHON_COMPILING_IN_CPYTHON && PY_VERSION_HEX >= 0x02070000
  #define CYTHON_USE_PYLONG_INTERNALS 1
#endif
#if CYTHON_USE_PYLONG_INTERNALS
  #include "longintrepr.h"
  #undef SHIFT
  #undef BASE
  #undef MASK
#endif
#if CYTHON_COMPILING_IN_PYPY && PY_VERSION_HEX < 0x02070600 && !defined(Py_OptimizeFlag)
  #define Py_OptimizeFlag 0
#endif
#define __PYX_BUILD_PY_SSIZE_T "n"
#define CYTHON_FORMAT_SSIZE_T "z"
#if PY_MAJOR_VERSION < 3
  #define __Pyx_BUILTIN_MODULE_NAME "__builtin__"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a+k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyClass_Type
#else
  #define __Pyx_BUILTIN_MODULE_NAME "builtins"
  #define __Pyx_PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)\
          PyCode_New(a, k, l, s, f, code, c, n, v, fv, cell, fn, name, fline, lnos)
  #define __Pyx_DefaultClassType PyType_Type
#endif
#ifndef Py_TPFLAGS_CHECKTYPES
  #define Py_TPFLAGS_CHECKTYPES 0
#endif
#ifndef Py_TPFLAGS_HAVE_INDEX
  #define Py_TPFLAGS_HAVE_INDEX 0
#endif
#ifndef Py_TPFLAGS_HAVE_NEWBUFFER
  #define Py_TPFLAGS_HAVE_NEWBUFFER 0
#endif
#ifndef Py_TPFLAGS_HAVE_FINALIZE
  #define Py_TPFLAGS_HAVE_FINALIZE 0
#endif
#if PY_VERSION_HEX > 0x03030000 && defined(PyUnicode_KIND)
  #define CYTHON_PEP393_ENABLED 1
  #define __Pyx_PyUnicode_READY(op)       (likely(PyUnicode_IS_READY(op)) ?\
                                              0 : _PyUnicode_Ready((PyObject *)(op)))
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_LENGTH(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) PyUnicode_READ_CHAR(u, i)
  #define __Pyx_PyUnicode_KIND(u)         PyUnicode_KIND(u)
  #define __Pyx_PyUnicode_DATA(u)         PyUnicode_DATA(u)
  #define __Pyx_PyUnicode_READ(k, d, i)   PyUnicode_READ(k, d, i)
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != (likely(PyUnicode_IS_READY(u)) ? PyUnicode_GET_LENGTH(u) : PyUnicode_GET_SIZE(u)))
#else
  #define CYTHON_PEP393_ENABLED 0
  #define __Pyx_PyUnicode_READY(op)       (0)
  #define __Pyx_PyUnicode_GET_LENGTH(u)   PyUnicode_GET_SIZE(u)
  #define __Pyx_PyUnicode_READ_CHAR(u, i) ((Py_UCS4)(PyUnicode_AS_UNICODE(u)[i]))
  #define __Pyx_PyUnicode_KIND(u)         (sizeof(Py_UNICODE))
  #define __Pyx_PyUnicode_DATA(u)         ((void*)PyUnicode_AS_UNICODE(u))
  #define __Pyx_PyUnicode_READ(k, d, i)   ((void)(k), (Py_UCS4)(((Py_UNICODE*)d)[i]))
  #define __Pyx_PyUnicode_IS_TRUE(u)      (0 != PyUnicode_GET_SIZE(u))
#endif
#if CYTHON_COMPILING_IN_PYPY
  #define __Pyx_PyUnicode_Concat(a, b)      PyNumber_Add(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  PyNumber_Add(a, b)
#else
  #define __Pyx_PyUnicode_Concat(a, b)      PyUnicode_Concat(a, b)
  #define __Pyx_PyUnicode_ConcatSafe(a, b)  ((unlikely((a) == Py_None) || unlikely((b) == Py_None)) ?\
      PyNumber_Add(a, b) : __Pyx_PyUnicode_Concat(a, b))
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyUnicode_Contains)
  #define PyUnicode_Contains(u, s)  PySequence_Contains(u, s)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyByteArray_Check)
  #define PyByteArray_Check(obj)  PyObject_TypeCheck(obj, &PyByteArray_Type)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Format)
  #define PyObject_Format(obj, fmt)  PyObject_CallMethod(obj, "__format__", "O", fmt)
#endif
#if CYTHON_COMPILING_IN_PYPY && !defined(PyObject_Malloc)
  #define PyObject_Malloc(s)   PyMem_Malloc(s)
  #define PyObject_Free(p)     PyMem_Free(p)
  #define PyObject_Realloc(p)  PyMem_Realloc(p)
#endif
#define __Pyx_PyString_FormatSafe(a, b)   ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : __Pyx_PyString_Format(a, b))
#define __Pyx_PyUnicode_FormatSafe(a, b)  ((unlikely((a) == Py_None)) ? PyNumber_Remainder(a, b) : PyUnicode_Format(a, b))
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyString_Format(a, b)  PyUnicode_Format(a, b)
#else
  #define __Pyx_PyString_Format(a, b)  PyString_Format(a, b)
#endif
#if PY_MAJOR_VERSION < 3 && !defined(PyObject_ASCII)
  #define PyObject_ASCII(o)            PyObject_Repr(o)
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBaseString_Type            PyUnicode_Type
  #define PyStringObject               PyUnicodeObject
  #define PyString_Type                PyUnicode_Type
  #define PyString_Check               PyUnicode_Check
  #define PyString_CheckExact          PyUnicode_CheckExact
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
  #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else
  #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
  #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif
#ifndef PySet_CheckExact
  #define PySet_CheckExact(obj)        (Py_TYPE(obj) == &PySet_Type)
#endif
#define __Pyx_TypeCheck(obj, type) PyObject_TypeCheck(obj, (PyTypeObject *)type)
#if PY_MAJOR_VERSION >= 3
  #define PyIntObject                  PyLongObject
  #define PyInt_Type                   PyLong_Type
  #define PyInt_Check(op)              PyLong_Check(op)
  #define PyInt_CheckExact(op)         PyLong_CheckExact(op)
  #define PyInt_FromString             PyLong_FromString
  #define PyInt_FromUnicode            PyLong_FromUnicode
  #define PyInt_FromLong               PyLong_FromLong
  #define PyInt_FromSize_t             PyLong_FromSize_t
  #define PyInt_FromSsize_t            PyLong_FromSsize_t
  #define PyInt_AsLong                 PyLong_AsLong
  #define PyInt_AS_LONG                PyLong_AS_LONG
  #define PyInt_AsSsize_t              PyLong_AsSsize_t
  #define PyInt_AsUnsignedLongMask     PyLong_AsUnsignedLongMask
  #define PyInt_AsUnsignedLongLongMask PyLong_AsUnsignedLongLongMask
  #define PyNumber_Int                 PyNumber_Long
#endif
#if PY_MAJOR_VERSION >= 3
  #define PyBoolObject                 PyLongObject
#endif
#if PY_MAJOR_VERSION >= 3 && CYTHON_COMPILING_IN_PYPY
  #ifndef PyUnicode_InternFromString
    #define PyUnicode_InternFromString(s) PyUnicode_FromString(s)
  #endif
#endif
#if PY_VERSION_HEX < 0x030200A4
  typedef long Py_hash_t;
  #define __Pyx_PyInt_FromHash_t PyInt_FromLong
  #define __Pyx_PyInt_AsHash_t   PyInt_AsLong
#else
  #define __Pyx_PyInt_FromHash_t PyInt_FromSsize_t
  #define __Pyx_PyInt_AsHash_t   PyInt_AsSsize_t
#endif
#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyMethod_New(func, self, klass) ((self) ? PyMethod_New(func, self) : PyInstanceMethod_New(func))
#else
  #define __Pyx_PyMethod_New(func, self, klass) PyMethod_New(func, self, klass)
#endif
#if PY_VERSION_HEX >= 0x030500B1
#define __Pyx_PyAsyncMethodsStruct PyAsyncMethods
#define __Pyx_PyType_AsAsync(obj) (Py_TYPE(obj)->tp_as_async)
#elif CYTHON_COMPILING_IN_CPYTHON && PY_MAJOR_VERSION >= 3
typedef struct {
    unaryfunc am_await;
    unaryfunc am_aiter;
    unaryfunc am_anext;
} __Pyx_PyAsyncMethodsStruct;
#define __Pyx_PyType_AsAsync(obj) ((__Pyx_PyAsyncMethodsStruct*) (Py_TYPE(obj)->tp_reserved))
#else
#define __Pyx_PyType_AsAsync(obj) NULL
#endif
#ifndef CYTHON_RESTRICT
  #if defined(__GNUC__)
    #define CYTHON_RESTRICT __restrict__
  #elif defined(_MSC_VER) && _MSC_VER >= 1400
    #define CYTHON_RESTRICT __restrict
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_RESTRICT restrict
  #else
    #define CYTHON_RESTRICT
  #endif
#endif
#define __Pyx_void_to_None(void_result) ((void)(void_result), Py_INCREF(Py_None), Py_None)

#ifndef CYTHON_INLINE
  #if defined(__GNUC__)
    #define CYTHON_INLINE __inline__
  #elif defined(_MSC_VER)
    #define CYTHON_INLINE __inline
  #elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define CYTHON_INLINE inline
  #else
    #define CYTHON_INLINE
  #endif
#endif

#if defined(WIN32) || defined(MS_WINDOWS)
  #define _USE_MATH_DEFINES
#endif
#include <math.h>
#ifdef NAN
#define __PYX_NAN() ((float) NAN)
#else
static CYTHON_INLINE float __PYX_NAN() {
  float value;
  memset(&value, 0xFF, sizeof(value));
  return value;
}
#endif
#if defined(__CYGWIN__) && defined(_LDBL_EQ_DBL)
#define __Pyx_truncl trunc
#else
#define __Pyx_truncl truncl
#endif


#define __PYX_ERR(f_index, lineno, Ln_error) \
{ \
  __pyx_filename = __pyx_f[f_index]; __pyx_lineno = lineno; __pyx_clineno = __LINE__; goto Ln_error; \
}

#if PY_MAJOR_VERSION >= 3
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_TrueDivide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceTrueDivide(x,y)
#else
  #define __Pyx_PyNumber_Divide(x,y)         PyNumber_Divide(x,y)
  #define __Pyx_PyNumber_InPlaceDivide(x,y)  PyNumber_InPlaceDivide(x,y)
#endif

#ifndef __PYX_EXTERN_C
  #ifdef __cplusplus
    #define __PYX_EXTERN_C extern "C"
  #else
    #define __PYX_EXTERN_C extern
  #endif
#endif

#define __PYX_HAVE__talib__stream
#define __PYX_HAVE_API__talib__stream
#include "string.h"
#include "stdio.h"
#include "stdlib.h"
#include "numpy/arrayobject.h"
#include "numpy/ufuncobject.h"
#if defined(WIN32) || defined(MS_WINDOWS)
#include "ta_libc.h"
#else
#include "ta-lib/ta_defs.h"
#include "ta-lib/ta_common.h"
#include "ta-lib/ta_abstract.h"
#include "ta-lib/ta_func.h"
#endif
#ifdef _OPENMP
#include <omp.h>
#endif /* _OPENMP */

#ifdef PYREX_WITHOUT_ASSERTIONS
#define CYTHON_WITHOUT_ASSERTIONS
#endif

#ifndef CYTHON_UNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define CYTHON_UNUSED __attribute__ ((__unused__))
#   else
#     define CYTHON_UNUSED
#   endif
# elif defined(__ICC) || (defined(__INTEL_COMPILER) && !defined(_MSC_VER))
#   define CYTHON_UNUSED __attribute__ ((__unused__))
# else
#   define CYTHON_UNUSED
# endif
#endif
#ifndef CYTHON_NCP_UNUSED
# if CYTHON_COMPILING_IN_CPYTHON
#  define CYTHON_NCP_UNUSED
# else
#  define CYTHON_NCP_UNUSED CYTHON_UNUSED
# endif
#endif
typedef struct {PyObject **p; const char *s; const Py_ssize_t n; const char* encoding;
                const char is_unicode; const char is_str; const char intern; } __Pyx_StringTabEntry;

#define __PYX_DEFAULT_STRING_ENCODING_IS_ASCII 0
#define __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT 0
#define __PYX_DEFAULT_STRING_ENCODING ""
#define __Pyx_PyObject_FromString __Pyx_PyBytes_FromString
#define __Pyx_PyObject_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#define __Pyx_uchar_cast(c) ((unsigned char)c)
#define __Pyx_long_cast(x) ((long)x)
#define __Pyx_fits_Py_ssize_t(v, type, is_signed)  (\
    (sizeof(type) < sizeof(Py_ssize_t))  ||\
    (sizeof(type) > sizeof(Py_ssize_t) &&\
          likely(v < (type)PY_SSIZE_T_MAX ||\
                 v == (type)PY_SSIZE_T_MAX)  &&\
          (!is_signed || likely(v > (type)PY_SSIZE_T_MIN ||\
                                v == (type)PY_SSIZE_T_MIN)))  ||\
    (sizeof(type) == sizeof(Py_ssize_t) &&\
          (is_signed || likely(v < (type)PY_SSIZE_T_MAX ||\
                               v == (type)PY_SSIZE_T_MAX)))  )
#if defined (__cplusplus) && __cplusplus >= 201103L
    #include <cstdlib>
    #define __Pyx_sst_abs(value) std::abs(value)
#elif SIZEOF_INT >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) abs(value)
#elif SIZEOF_LONG >= SIZEOF_SIZE_T
    #define __Pyx_sst_abs(value) labs(value)
#elif defined (_MSC_VER) && defined (_M_X64)
    #define __Pyx_sst_abs(value) _abs64(value)
#elif defined (__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
    #define __Pyx_sst_abs(value) llabs(value)
#elif defined (__GNUC__)
    #define __Pyx_sst_abs(value) __builtin_llabs(value)
#else
    #define __Pyx_sst_abs(value) ((value<0) ? -value : value)
#endif
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject*);
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject*, Py_ssize_t* length);
#define __Pyx_PyByteArray_FromString(s) PyByteArray_FromStringAndSize((const char*)s, strlen((const char*)s))
#define __Pyx_PyByteArray_FromStringAndSize(s, l) PyByteArray_FromStringAndSize((const char*)s, l)
#define __Pyx_PyBytes_FromString        PyBytes_FromString
#define __Pyx_PyBytes_FromStringAndSize PyBytes_FromStringAndSize
static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char*);
#if PY_MAJOR_VERSION < 3
    #define __Pyx_PyStr_FromString        __Pyx_PyBytes_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyBytes_FromStringAndSize
#else
    #define __Pyx_PyStr_FromString        __Pyx_PyUnicode_FromString
    #define __Pyx_PyStr_FromStringAndSize __Pyx_PyUnicode_FromStringAndSize
#endif
#define __Pyx_PyObject_AsSString(s)    ((signed char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_AsUString(s)    ((unsigned char*) __Pyx_PyObject_AsString(s))
#define __Pyx_PyObject_FromCString(s)  __Pyx_PyObject_FromString((const char*)s)
#define __Pyx_PyBytes_FromCString(s)   __Pyx_PyBytes_FromString((const char*)s)
#define __Pyx_PyByteArray_FromCString(s)   __Pyx_PyByteArray_FromString((const char*)s)
#define __Pyx_PyStr_FromCString(s)     __Pyx_PyStr_FromString((const char*)s)
#define __Pyx_PyUnicode_FromCString(s) __Pyx_PyUnicode_FromString((const char*)s)
#if PY_MAJOR_VERSION < 3
static CYTHON_INLINE size_t __Pyx_Py_UNICODE_strlen(const Py_UNICODE *u)
{
    const Py_UNICODE *u_end = u;
    while (*u_end++) ;
    return (size_t)(u_end - u - 1);
}
#else
#define __Pyx_Py_UNICODE_strlen Py_UNICODE_strlen
#endif
#define __Pyx_PyUnicode_FromUnicode(u)       PyUnicode_FromUnicode(u, __Pyx_Py_UNICODE_strlen(u))
#define __Pyx_PyUnicode_FromUnicodeAndLength PyUnicode_FromUnicode
#define __Pyx_PyUnicode_AsUnicode            PyUnicode_AsUnicode
#define __Pyx_NewRef(obj) (Py_INCREF(obj), obj)
#define __Pyx_Owned_Py_None(b) __Pyx_NewRef(Py_None)
#define __Pyx_PyBool_FromLong(b) ((b) ? __Pyx_NewRef(Py_True) : __Pyx_NewRef(Py_False))
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject*);
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x);
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject*);
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t);
#if CYTHON_COMPILING_IN_CPYTHON
#define __pyx_PyFloat_AsDouble(x) (PyFloat_CheckExact(x) ? PyFloat_AS_DOUBLE(x) : PyFloat_AsDouble(x))
#else
#define __pyx_PyFloat_AsDouble(x) PyFloat_AsDouble(x)
#endif
#define __pyx_PyFloat_AsFloat(x) ((float) __pyx_PyFloat_AsDouble(x))
#if PY_MAJOR_VERSION >= 3
#define __Pyx_PyNumber_Int(x) (PyLong_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Long(x))
#else
#define __Pyx_PyNumber_Int(x) (PyInt_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Int(x))
#endif
#define __Pyx_PyNumber_Float(x) (PyFloat_CheckExact(x) ? __Pyx_NewRef(x) : PyNumber_Float(x))
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
static int __Pyx_sys_getdefaultencoding_not_ascii;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    PyObject* ascii_chars_u = NULL;
    PyObject* ascii_chars_b = NULL;
    const char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    if (strcmp(default_encoding_c, "ascii") == 0) {
        __Pyx_sys_getdefaultencoding_not_ascii = 0;
    } else {
        char ascii_chars[128];
        int c;
        for (c = 0; c < 128; c++) {
            ascii_chars[c] = c;
        }
        __Pyx_sys_getdefaultencoding_not_ascii = 1;
        ascii_chars_u = PyUnicode_DecodeASCII(ascii_chars, 128, NULL);
        if (!ascii_chars_u) goto bad;
        ascii_chars_b = PyUnicode_AsEncodedString(ascii_chars_u, default_encoding_c, NULL);
        if (!ascii_chars_b || !PyBytes_Check(ascii_chars_b) || memcmp(ascii_chars, PyBytes_AS_STRING(ascii_chars_b), 128) != 0) {
            PyErr_Format(
                PyExc_ValueError,
                "This module compiled with c_string_encoding=ascii, but default encoding '%.200s' is not a superset of ascii.",
                default_encoding_c);
            goto bad;
        }
        Py_DECREF(ascii_chars_u);
        Py_DECREF(ascii_chars_b);
    }
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    Py_XDECREF(ascii_chars_u);
    Py_XDECREF(ascii_chars_b);
    return -1;
}
#endif
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT && PY_MAJOR_VERSION >= 3
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_DecodeUTF8(c_str, size, NULL)
#else
#define __Pyx_PyUnicode_FromStringAndSize(c_str, size) PyUnicode_Decode(c_str, size, __PYX_DEFAULT_STRING_ENCODING, NULL)
#if __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT
static char* __PYX_DEFAULT_STRING_ENCODING;
static int __Pyx_init_sys_getdefaultencoding_params(void) {
    PyObject* sys;
    PyObject* default_encoding = NULL;
    char* default_encoding_c;
    sys = PyImport_ImportModule("sys");
    if (!sys) goto bad;
    default_encoding = PyObject_CallMethod(sys, (char*) (const char*) "getdefaultencoding", NULL);
    Py_DECREF(sys);
    if (!default_encoding) goto bad;
    default_encoding_c = PyBytes_AsString(default_encoding);
    if (!default_encoding_c) goto bad;
    __PYX_DEFAULT_STRING_ENCODING = (char*) malloc(strlen(default_encoding_c));
    if (!__PYX_DEFAULT_STRING_ENCODING) goto bad;
    strcpy(__PYX_DEFAULT_STRING_ENCODING, default_encoding_c);
    Py_DECREF(default_encoding);
    return 0;
bad:
    Py_XDECREF(default_encoding);
    return -1;
}
#endif
#endif


/* Test for GCC > 2.95 */
#if defined(__GNUC__)     && (__GNUC__ > 2 || (__GNUC__ == 2 && (__GNUC_MINOR__ > 95)))
  #define likely(x)   __builtin_expect(!!(x), 1)
  #define unlikely(x) __builtin_expect(!!(x), 0)
#else /* !__GNUC__ or GCC < 2.95 */
  #define likely(x)   (x)
  #define unlikely(x) (x)
#endif /* __GNUC__ */

static PyObject *__pyx_m;
static PyObject *__pyx_d;
static PyObject *__pyx_b;
static PyObject *__pyx_empty_tuple;
static PyObject *__pyx_empty_bytes;
static PyObject *__pyx_empty_unicode;
static int __pyx_lineno;
static int __pyx_clineno = 0;
static const char * __pyx_cfilenm= __FILE__;
static const char *__pyx_filename;

/* None.proto */
#if !defined(CYTHON_CCOMPLEX)
  #if defined(__cplusplus)
    #define CYTHON_CCOMPLEX 1
  #elif defined(_Complex_I)
    #define CYTHON_CCOMPLEX 1
  #else
    #define CYTHON_CCOMPLEX 0
  #endif
#endif
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    #include <complex>
  #else
    #include <complex.h>
  #endif
#endif
#if CYTHON_CCOMPLEX && !defined(__cplusplus) && defined(__sun__) && defined(__GNUC__)
  #undef _Complex_I
  #define _Complex_I 1.0fj
#endif


static const char *__pyx_f[] = {
  "talib/stream.pyx",
  "__init__.pxd",
  "type.pxd",
};

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":725
 * # in Cython to enable them only on the right systems.
 * 
 * ctypedef npy_int8       int8_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t
 */
typedef npy_int8 __pyx_t_5numpy_int8_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":726
 * 
 * ctypedef npy_int8       int8_t
 * ctypedef npy_int16      int16_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int32      int32_t
 * ctypedef npy_int64      int64_t
 */
typedef npy_int16 __pyx_t_5numpy_int16_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":727
 * ctypedef npy_int8       int8_t
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_int64      int64_t
 * #ctypedef npy_int96      int96_t
 */
typedef npy_int32 __pyx_t_5numpy_int32_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":728
 * ctypedef npy_int16      int16_t
 * ctypedef npy_int32      int32_t
 * ctypedef npy_int64      int64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_int96      int96_t
 * #ctypedef npy_int128     int128_t
 */
typedef npy_int64 __pyx_t_5numpy_int64_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":732
 * #ctypedef npy_int128     int128_t
 * 
 * ctypedef npy_uint8      uint8_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t
 */
typedef npy_uint8 __pyx_t_5numpy_uint8_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":733
 * 
 * ctypedef npy_uint8      uint8_t
 * ctypedef npy_uint16     uint16_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint32     uint32_t
 * ctypedef npy_uint64     uint64_t
 */
typedef npy_uint16 __pyx_t_5numpy_uint16_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":734
 * ctypedef npy_uint8      uint8_t
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uint64     uint64_t
 * #ctypedef npy_uint96     uint96_t
 */
typedef npy_uint32 __pyx_t_5numpy_uint32_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":735
 * ctypedef npy_uint16     uint16_t
 * ctypedef npy_uint32     uint32_t
 * ctypedef npy_uint64     uint64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_uint96     uint96_t
 * #ctypedef npy_uint128    uint128_t
 */
typedef npy_uint64 __pyx_t_5numpy_uint64_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":739
 * #ctypedef npy_uint128    uint128_t
 * 
 * ctypedef npy_float32    float32_t             # <<<<<<<<<<<<<<
 * ctypedef npy_float64    float64_t
 * #ctypedef npy_float80    float80_t
 */
typedef npy_float32 __pyx_t_5numpy_float32_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":740
 * 
 * ctypedef npy_float32    float32_t
 * ctypedef npy_float64    float64_t             # <<<<<<<<<<<<<<
 * #ctypedef npy_float80    float80_t
 * #ctypedef npy_float128   float128_t
 */
typedef npy_float64 __pyx_t_5numpy_float64_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":749
 * # The int types are mapped a bit surprising --
 * # numpy.int corresponds to 'l' and numpy.long to 'q'
 * ctypedef npy_long       int_t             # <<<<<<<<<<<<<<
 * ctypedef npy_longlong   long_t
 * ctypedef npy_longlong   longlong_t
 */
typedef npy_long __pyx_t_5numpy_int_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":750
 * # numpy.int corresponds to 'l' and numpy.long to 'q'
 * ctypedef npy_long       int_t
 * ctypedef npy_longlong   long_t             # <<<<<<<<<<<<<<
 * ctypedef npy_longlong   longlong_t
 * 
 */
typedef npy_longlong __pyx_t_5numpy_long_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":751
 * ctypedef npy_long       int_t
 * ctypedef npy_longlong   long_t
 * ctypedef npy_longlong   longlong_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_ulong      uint_t
 */
typedef npy_longlong __pyx_t_5numpy_longlong_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":753
 * ctypedef npy_longlong   longlong_t
 * 
 * ctypedef npy_ulong      uint_t             # <<<<<<<<<<<<<<
 * ctypedef npy_ulonglong  ulong_t
 * ctypedef npy_ulonglong  ulonglong_t
 */
typedef npy_ulong __pyx_t_5numpy_uint_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":754
 * 
 * ctypedef npy_ulong      uint_t
 * ctypedef npy_ulonglong  ulong_t             # <<<<<<<<<<<<<<
 * ctypedef npy_ulonglong  ulonglong_t
 * 
 */
typedef npy_ulonglong __pyx_t_5numpy_ulong_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":755
 * ctypedef npy_ulong      uint_t
 * ctypedef npy_ulonglong  ulong_t
 * ctypedef npy_ulonglong  ulonglong_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_intp       intp_t
 */
typedef npy_ulonglong __pyx_t_5numpy_ulonglong_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":757
 * ctypedef npy_ulonglong  ulonglong_t
 * 
 * ctypedef npy_intp       intp_t             # <<<<<<<<<<<<<<
 * ctypedef npy_uintp      uintp_t
 * 
 */
typedef npy_intp __pyx_t_5numpy_intp_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":758
 * 
 * ctypedef npy_intp       intp_t
 * ctypedef npy_uintp      uintp_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_double     float_t
 */
typedef npy_uintp __pyx_t_5numpy_uintp_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":760
 * ctypedef npy_uintp      uintp_t
 * 
 * ctypedef npy_double     float_t             # <<<<<<<<<<<<<<
 * ctypedef npy_double     double_t
 * ctypedef npy_longdouble longdouble_t
 */
typedef npy_double __pyx_t_5numpy_float_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":761
 * 
 * ctypedef npy_double     float_t
 * ctypedef npy_double     double_t             # <<<<<<<<<<<<<<
 * ctypedef npy_longdouble longdouble_t
 * 
 */
typedef npy_double __pyx_t_5numpy_double_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":762
 * ctypedef npy_double     float_t
 * ctypedef npy_double     double_t
 * ctypedef npy_longdouble longdouble_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_cfloat      cfloat_t
 */
typedef npy_longdouble __pyx_t_5numpy_longdouble_t;
/* None.proto */
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    typedef ::std::complex< float > __pyx_t_float_complex;
  #else
    typedef float _Complex __pyx_t_float_complex;
  #endif
#else
    typedef struct { float real, imag; } __pyx_t_float_complex;
#endif

/* None.proto */
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    typedef ::std::complex< double > __pyx_t_double_complex;
  #else
    typedef double _Complex __pyx_t_double_complex;
  #endif
#else
    typedef struct { double real, imag; } __pyx_t_double_complex;
#endif


/*--- Type declarations ---*/

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":764
 * ctypedef npy_longdouble longdouble_t
 * 
 * ctypedef npy_cfloat      cfloat_t             # <<<<<<<<<<<<<<
 * ctypedef npy_cdouble     cdouble_t
 * ctypedef npy_clongdouble clongdouble_t
 */
typedef npy_cfloat __pyx_t_5numpy_cfloat_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":765
 * 
 * ctypedef npy_cfloat      cfloat_t
 * ctypedef npy_cdouble     cdouble_t             # <<<<<<<<<<<<<<
 * ctypedef npy_clongdouble clongdouble_t
 * 
 */
typedef npy_cdouble __pyx_t_5numpy_cdouble_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":766
 * ctypedef npy_cfloat      cfloat_t
 * ctypedef npy_cdouble     cdouble_t
 * ctypedef npy_clongdouble clongdouble_t             # <<<<<<<<<<<<<<
 * 
 * ctypedef npy_cdouble     complex_t
 */
typedef npy_clongdouble __pyx_t_5numpy_clongdouble_t;

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":768
 * ctypedef npy_clongdouble clongdouble_t
 * 
 * ctypedef npy_cdouble     complex_t             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew1(a):
 */
typedef npy_cdouble __pyx_t_5numpy_complex_t;

/* --- Runtime support code (head) --- */
/* Refnanny.proto */
#ifndef CYTHON_REFNANNY
  #define CYTHON_REFNANNY 0
#endif
#if CYTHON_REFNANNY
  typedef struct {
    void (*INCREF)(void*, PyObject*, int);
    void (*DECREF)(void*, PyObject*, int);
    void (*GOTREF)(void*, PyObject*, int);
    void (*GIVEREF)(void*, PyObject*, int);
    void* (*SetupContext)(const char*, int, const char*);
    void (*FinishContext)(void**);
  } __Pyx_RefNannyAPIStruct;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNanny = NULL;
  static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname);
  #define __Pyx_RefNannyDeclarations void *__pyx_refnanny = NULL;
#ifdef WITH_THREAD
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          if (acquire_gil) {\
              PyGILState_STATE __pyx_gilstate_save = PyGILState_Ensure();\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
              PyGILState_Release(__pyx_gilstate_save);\
          } else {\
              __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__);\
          }
#else
  #define __Pyx_RefNannySetupContext(name, acquire_gil)\
          __pyx_refnanny = __Pyx_RefNanny->SetupContext((name), __LINE__, __FILE__)
#endif
  #define __Pyx_RefNannyFinishContext()\
          __Pyx_RefNanny->FinishContext(&__pyx_refnanny)
  #define __Pyx_INCREF(r)  __Pyx_RefNanny->INCREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_DECREF(r)  __Pyx_RefNanny->DECREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GOTREF(r)  __Pyx_RefNanny->GOTREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_GIVEREF(r) __Pyx_RefNanny->GIVEREF(__pyx_refnanny, (PyObject *)(r), __LINE__)
  #define __Pyx_XINCREF(r)  do { if((r) != NULL) {__Pyx_INCREF(r); }} while(0)
  #define __Pyx_XDECREF(r)  do { if((r) != NULL) {__Pyx_DECREF(r); }} while(0)
  #define __Pyx_XGOTREF(r)  do { if((r) != NULL) {__Pyx_GOTREF(r); }} while(0)
  #define __Pyx_XGIVEREF(r) do { if((r) != NULL) {__Pyx_GIVEREF(r);}} while(0)
#else
  #define __Pyx_RefNannyDeclarations
  #define __Pyx_RefNannySetupContext(name, acquire_gil)
  #define __Pyx_RefNannyFinishContext()
  #define __Pyx_INCREF(r) Py_INCREF(r)
  #define __Pyx_DECREF(r) Py_DECREF(r)
  #define __Pyx_GOTREF(r)
  #define __Pyx_GIVEREF(r)
  #define __Pyx_XINCREF(r) Py_XINCREF(r)
  #define __Pyx_XDECREF(r) Py_XDECREF(r)
  #define __Pyx_XGOTREF(r)
  #define __Pyx_XGIVEREF(r)
#endif
#define __Pyx_XDECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_XDECREF(tmp);\
    } while (0)
#define __Pyx_DECREF_SET(r, v) do {\
        PyObject *tmp = (PyObject *) r;\
        r = v; __Pyx_DECREF(tmp);\
    } while (0)
#define __Pyx_CLEAR(r)    do { PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);} while(0)
#define __Pyx_XCLEAR(r)   do { if((r) != NULL) {PyObject* tmp = ((PyObject*)(r)); r = NULL; __Pyx_DECREF(tmp);}} while(0)

/* PyObjectGetAttrStr.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) {
    PyTypeObject* tp = Py_TYPE(obj);
    if (likely(tp->tp_getattro))
        return tp->tp_getattro(obj, attr_name);
#if PY_MAJOR_VERSION < 3
    if (likely(tp->tp_getattr))
        return tp->tp_getattr(obj, PyString_AS_STRING(attr_name));
#endif
    return PyObject_GetAttr(obj, attr_name);
}
#else
#define __Pyx_PyObject_GetAttrStr(o,n) PyObject_GetAttr(o,n)
#endif

/* GetBuiltinName.proto */
static PyObject *__Pyx_GetBuiltinName(PyObject *name);

/* ArgTypeTest.proto */
static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
    const char *name, int exact);

/* PyObjectCall.proto */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw);
#else
#define __Pyx_PyObject_Call(func, arg, kw) PyObject_Call(func, arg, kw)
#endif

/* PyThreadStateGet.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_PyThreadState_declare  PyThreadState *__pyx_tstate;
#define __Pyx_PyThreadState_assign  __pyx_tstate = PyThreadState_GET();
#else
#define __Pyx_PyThreadState_declare
#define __Pyx_PyThreadState_assign
#endif

/* PyErrFetchRestore.proto */
#if CYTHON_COMPILING_IN_CPYTHON
#define __Pyx_ErrRestoreWithState(type, value, tb)  __Pyx_ErrRestoreInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)    __Pyx_ErrFetchInState(PyThreadState_GET(), type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  __Pyx_ErrRestoreInState(__pyx_tstate, type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)    __Pyx_ErrFetchInState(__pyx_tstate, type, value, tb)
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb);
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb);
#else
#define __Pyx_ErrRestoreWithState(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetchWithState(type, value, tb)  PyErr_Fetch(type, value, tb)
#define __Pyx_ErrRestore(type, value, tb)  PyErr_Restore(type, value, tb)
#define __Pyx_ErrFetch(type, value, tb)  PyErr_Fetch(type, value, tb)
#endif

/* RaiseException.proto */
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause);

/* ExtTypeTest.proto */
static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type);

/* RaiseArgTupleInvalid.proto */
static void __Pyx_RaiseArgtupleInvalid(const char* func_name, int exact,
    Py_ssize_t num_min, Py_ssize_t num_max, Py_ssize_t num_found);

/* RaiseDoubleKeywords.proto */
static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name);

/* ParseKeywords.proto */
static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\
    PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\
    const char* function_name);

/* DictGetItem.proto */
#if PY_MAJOR_VERSION >= 3 && !CYTHON_COMPILING_IN_PYPY
static PyObject *__Pyx_PyDict_GetItem(PyObject *d, PyObject* key) {
    PyObject *value;
    value = PyDict_GetItemWithError(d, key);
    if (unlikely(!value)) {
        if (!PyErr_Occurred()) {
            PyObject* args = PyTuple_Pack(1, key);
            if (likely(args))
                PyErr_SetObject(PyExc_KeyError, args);
            Py_XDECREF(args);
        }
        return NULL;
    }
    Py_INCREF(value);
    return value;
}
#else
    #define __Pyx_PyDict_GetItem(d, key) PyObject_GetItem(d, key)
#endif

/* RaiseTooManyValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected);

/* RaiseNeedMoreValuesToUnpack.proto */
static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index);

/* RaiseNoneIterError.proto */
static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void);

/* Import.proto */
static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level);

/* ImportFrom.proto */
static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name);

/* GetModuleGlobalName.proto */
static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name);

/* CodeObjectCache.proto */
typedef struct {
    PyCodeObject* code_object;
    int code_line;
} __Pyx_CodeObjectCacheEntry;
struct __Pyx_CodeObjectCache {
    int count;
    int max_count;
    __Pyx_CodeObjectCacheEntry* entries;
};
static struct __Pyx_CodeObjectCache __pyx_code_cache = {0,0,NULL};
static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line);
static PyCodeObject *__pyx_find_code_object(int code_line);
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object);

/* AddTraceback.proto */
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value);

/* None.proto */
#if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    #define __Pyx_CREAL(z) ((z).real())
    #define __Pyx_CIMAG(z) ((z).imag())
  #else
    #define __Pyx_CREAL(z) (__real__(z))
    #define __Pyx_CIMAG(z) (__imag__(z))
  #endif
#else
    #define __Pyx_CREAL(z) ((z).real)
    #define __Pyx_CIMAG(z) ((z).imag)
#endif
#if defined(__cplusplus) && CYTHON_CCOMPLEX         && (defined(_WIN32) || defined(__clang__) || (defined(__GNUC__) && (__GNUC__ >= 5 || __GNUC__ == 4 && __GNUC_MINOR__ >= 4 )) || __cplusplus >= 201103)
    #define __Pyx_SET_CREAL(z,x) ((z).real(x))
    #define __Pyx_SET_CIMAG(z,y) ((z).imag(y))
#else
    #define __Pyx_SET_CREAL(z,x) __Pyx_CREAL(z) = (x)
    #define __Pyx_SET_CIMAG(z,y) __Pyx_CIMAG(z) = (y)
#endif

/* None.proto */
static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float);

/* None.proto */
#if CYTHON_CCOMPLEX
    #define __Pyx_c_eqf(a, b)   ((a)==(b))
    #define __Pyx_c_sumf(a, b)  ((a)+(b))
    #define __Pyx_c_difff(a, b) ((a)-(b))
    #define __Pyx_c_prodf(a, b) ((a)*(b))
    #define __Pyx_c_quotf(a, b) ((a)/(b))
    #define __Pyx_c_negf(a)     (-(a))
  #ifdef __cplusplus
    #define __Pyx_c_is_zerof(z) ((z)==(float)0)
    #define __Pyx_c_conjf(z)    (::std::conj(z))
    #if 1
        #define __Pyx_c_absf(z)     (::std::abs(z))
        #define __Pyx_c_powf(a, b)  (::std::pow(a, b))
    #endif
  #else
    #define __Pyx_c_is_zerof(z) ((z)==0)
    #define __Pyx_c_conjf(z)    (conjf(z))
    #if 1
        #define __Pyx_c_absf(z)     (cabsf(z))
        #define __Pyx_c_powf(a, b)  (cpowf(a, b))
    #endif
 #endif
#else
    static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prodf(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex, __pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex);
    static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex);
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex);
    #if 1
        static CYTHON_INLINE float __Pyx_c_absf(__pyx_t_float_complex);
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex, __pyx_t_float_complex);
    #endif
#endif

/* None.proto */
static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double);

/* None.proto */
#if CYTHON_CCOMPLEX
    #define __Pyx_c_eq(a, b)   ((a)==(b))
    #define __Pyx_c_sum(a, b)  ((a)+(b))
    #define __Pyx_c_diff(a, b) ((a)-(b))
    #define __Pyx_c_prod(a, b) ((a)*(b))
    #define __Pyx_c_quot(a, b) ((a)/(b))
    #define __Pyx_c_neg(a)     (-(a))
  #ifdef __cplusplus
    #define __Pyx_c_is_zero(z) ((z)==(double)0)
    #define __Pyx_c_conj(z)    (::std::conj(z))
    #if 1
        #define __Pyx_c_abs(z)     (::std::abs(z))
        #define __Pyx_c_pow(a, b)  (::std::pow(a, b))
    #endif
  #else
    #define __Pyx_c_is_zero(z) ((z)==0)
    #define __Pyx_c_conj(z)    (conj(z))
    #if 1
        #define __Pyx_c_abs(z)     (cabs(z))
        #define __Pyx_c_pow(a, b)  (cpow(a, b))
    #endif
 #endif
#else
    static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex, __pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex);
    static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex);
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex);
    #if 1
        static CYTHON_INLINE double __Pyx_c_abs(__pyx_t_double_complex);
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex, __pyx_t_double_complex);
    #endif
#endif

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value);

/* CIntFromPy.proto */
static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *);

/* CIntToPy.proto */
static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value);

/* CIntFromPy.proto */
static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *);

/* CheckBinaryVersion.proto */
static int __Pyx_check_binary_version(void);

/* PyIdentifierFromString.proto */
#if !defined(__Pyx_PyIdentifier_FromString)
#if PY_MAJOR_VERSION < 3
  #define __Pyx_PyIdentifier_FromString(s) PyString_FromString(s)
#else
  #define __Pyx_PyIdentifier_FromString(s) PyUnicode_FromString(s)
#endif
#endif

/* ModuleImport.proto */
static PyObject *__Pyx_ImportModule(const char *name);

/* TypeImport.proto */
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict);

/* FunctionImport.proto */
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig);

/* InitStrings.proto */
static int __Pyx_InitStrings(__Pyx_StringTabEntry *t);


/* Module declarations from 'cpython.buffer' */

/* Module declarations from 'libc.string' */

/* Module declarations from 'libc.stdio' */

/* Module declarations from '__builtin__' */

/* Module declarations from 'cpython.type' */
static PyTypeObject *__pyx_ptype_7cpython_4type_type = 0;

/* Module declarations from 'cpython' */

/* Module declarations from 'cpython.object' */

/* Module declarations from 'cpython.ref' */

/* Module declarations from 'libc.stdlib' */

/* Module declarations from 'numpy' */

/* Module declarations from 'numpy' */
static PyTypeObject *__pyx_ptype_5numpy_dtype = 0;
static PyTypeObject *__pyx_ptype_5numpy_flatiter = 0;
static PyTypeObject *__pyx_ptype_5numpy_broadcast = 0;
static PyTypeObject *__pyx_ptype_5numpy_ndarray = 0;
static PyTypeObject *__pyx_ptype_5numpy_ufunc = 0;
static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *, char *, char *, int *); /*proto*/

/* Module declarations from 'talib.libta_lib' */

/* Module declarations from 'talib.common' */
static PyObject *(*__pyx_f_5talib_6common__ta_check_success)(PyObject *, TA_RetCode, int __pyx_skip_dispatch); /*proto*/

/* Module declarations from 'talib.stream' */
static double __pyx_v_5talib_6stream_NaN;
#define __Pyx_MODULE_NAME "talib.stream"
int __pyx_module_is_main_talib__stream = 0;

/* Implementation of 'talib.stream' */
static PyObject *__pyx_builtin_Exception;
static PyObject *__pyx_builtin_ValueError;
static PyObject *__pyx_builtin_range;
static PyObject *__pyx_builtin_RuntimeError;
static const char __pyx_k_AD[] = "AD";
static const char __pyx_k_DX[] = "DX";
static const char __pyx_k_LN[] = "LN";
static const char __pyx_k_MA[] = "MA";
static const char __pyx_k_T3[] = "T3";
static const char __pyx_k_ADD[] = "ADD";
static const char __pyx_k_ADX[] = "ADX";
static const char __pyx_k_APO[] = "APO";
static const char __pyx_k_ATR[] = "ATR";
static const char __pyx_k_BOP[] = "BOP";
static const char __pyx_k_CCI[] = "CCI";
static const char __pyx_k_CMO[] = "CMO";
static const char __pyx_k_COS[] = "COS";
static const char __pyx_k_DIV[] = "DIV";
static const char __pyx_k_EMA[] = "EMA";
static const char __pyx_k_EXP[] = "EXP";
static const char __pyx_k_MAX[] = "MAX";
static const char __pyx_k_MFI[] = "MFI";
static const char __pyx_k_MIN[] = "MIN";
static const char __pyx_k_MOM[] = "MOM";
static const char __pyx_k_OBV[] = "OBV";
static const char __pyx_k_PPO[] = "PPO";
static const char __pyx_k_ROC[] = "ROC";
static const char __pyx_k_RSI[] = "RSI";
static const char __pyx_k_SAR[] = "SAR";
static const char __pyx_k_SIN[] = "SIN";
static const char __pyx_k_SMA[] = "SMA";
static const char __pyx_k_SUB[] = "SUB";
static const char __pyx_k_SUM[] = "SUM";
static const char __pyx_k_TAN[] = "TAN";
static const char __pyx_k_TSF[] = "TSF";
static const char __pyx_k_VAR[] = "VAR";
static const char __pyx_k_WMA[] = "WMA";
static const char __pyx_k_all[] = "__all__";
static const char __pyx_k_low[] = "low";
static const char __pyx_k_nan[] = "nan";
static const char __pyx_k_val[] = "val";
static const char __pyx_k_ACOS[] = "ACOS";
static const char __pyx_k_ADXR[] = "ADXR";
static const char __pyx_k_ASIN[] = "ASIN";
static const char __pyx_k_ATAN[] = "ATAN";
static const char __pyx_k_BETA[] = "BETA";
static const char __pyx_k_CEIL[] = "CEIL";
static const char __pyx_k_COSH[] = "COSH";
static const char __pyx_k_DEMA[] = "DEMA";
static const char __pyx_k_KAMA[] = "KAMA";
static const char __pyx_k_MACD[] = "MACD";
static const char __pyx_k_MAMA[] = "MAMA";
static const char __pyx_k_MAVP[] = "MAVP";
static const char __pyx_k_MULT[] = "MULT";
static const char __pyx_k_NATR[] = "NATR";
static const char __pyx_k_ROCP[] = "ROCP";
static const char __pyx_k_ROCR[] = "ROCR";
static const char __pyx_k_SINH[] = "SINH";
static const char __pyx_k_SQRT[] = "SQRT";
static const char __pyx_k_TANH[] = "TANH";
static const char __pyx_k_TEMA[] = "TEMA";
static const char __pyx_k_TRIX[] = "TRIX";
static const char __pyx_k_high[] = "high";
static const char __pyx_k_main[] = "__main__";
static const char __pyx_k_open[] = "open";
static const char __pyx_k_real[] = "real";
static const char __pyx_k_test[] = "__test__";
static const char __pyx_k_ADOSC[] = "ADOSC";
static const char __pyx_k_AROON[] = "AROON";
static const char __pyx_k_FLOOR[] = "FLOOR";
static const char __pyx_k_LOG10[] = "LOG10";
static const char __pyx_k_STOCH[] = "STOCH";
static const char __pyx_k_TA_AD[] = "TA_AD";
static const char __pyx_k_TA_DX[] = "TA_DX";
static const char __pyx_k_TA_LN[] = "TA_LN";
static const char __pyx_k_TA_MA[] = "TA_MA";
static const char __pyx_k_TA_T3[] = "TA_T3";
static const char __pyx_k_TRIMA[] = "TRIMA";
static const char __pyx_k_WILLR[] = "WILLR";
static const char __pyx_k_close[] = "close";
static const char __pyx_k_nbdev[] = "nbdev";
static const char __pyx_k_numpy[] = "numpy";
static const char __pyx_k_range[] = "range";
static const char __pyx_k_real0[] = "real0";
static const char __pyx_k_real1[] = "real1";
static const char __pyx_k_BBANDS[] = "BBANDS";
static const char __pyx_k_CORREL[] = "CORREL";
static const char __pyx_k_MINMAX[] = "MINMAX";
static const char __pyx_k_SAREXT[] = "SAREXT";
static const char __pyx_k_STDDEV[] = "STDDEV";
static const char __pyx_k_STOCHF[] = "STOCHF";
static const char __pyx_k_TA_ADD[] = "TA_ADD";
static const char __pyx_k_TA_ADX[] = "TA_ADX";
static const char __pyx_k_TA_APO[] = "TA_APO";
static const char __pyx_k_TA_ATR[] = "TA_ATR";
static const char __pyx_k_TA_BOP[] = "TA_BOP";
static const char __pyx_k_TA_CCI[] = "TA_CCI";
static const char __pyx_k_TA_CMO[] = "TA_CMO";
static const char __pyx_k_TA_COS[] = "TA_COS";
static const char __pyx_k_TA_DIV[] = "TA_DIV";
static const char __pyx_k_TA_EMA[] = "TA_EMA";
static const char __pyx_k_TA_EXP[] = "TA_EXP";
static const char __pyx_k_TA_MAX[] = "TA_MAX";
static const char __pyx_k_TA_MFI[] = "TA_MFI";
static const char __pyx_k_TA_MIN[] = "TA_MIN";
static const char __pyx_k_TA_MOM[] = "TA_MOM";
static const char __pyx_k_TA_OBV[] = "TA_OBV";
static const char __pyx_k_TA_PPO[] = "TA_PPO";
static const char __pyx_k_TA_ROC[] = "TA_ROC";
static const char __pyx_k_TA_RSI[] = "TA_RSI";
static const char __pyx_k_TA_SAR[] = "TA_SAR";
static const char __pyx_k_TA_SIN[] = "TA_SIN";
static const char __pyx_k_TA_SMA[] = "TA_SMA";
static const char __pyx_k_TA_SUB[] = "TA_SUB";
static const char __pyx_k_TA_SUM[] = "TA_SUM";
static const char __pyx_k_TA_TAN[] = "TA_TAN";
static const char __pyx_k_TA_TSF[] = "TA_TSF";
static const char __pyx_k_TA_VAR[] = "TA_VAR";
static const char __pyx_k_TA_WMA[] = "TA_WMA";
static const char __pyx_k_TRANGE[] = "TRANGE";
static const char __pyx_k_ULTOSC[] = "ULTOSC";
static const char __pyx_k_begidx[] = "begidx";
static const char __pyx_k_endidx[] = "endidx";
static const char __pyx_k_import[] = "__import__";
static const char __pyx_k_length[] = "length";
static const char __pyx_k_matype[] = "matype";
static const char __pyx_k_outmax[] = "outmax";
static const char __pyx_k_outmin[] = "outmin";
static const char __pyx_k_volume[] = "volume";
static const char __pyx_k_CDLDOJI[] = "CDLDOJI";
static const char __pyx_k_HT_SINE[] = "HT_SINE";
static const char __pyx_k_MACDEXT[] = "MACDEXT";
static const char __pyx_k_MACDFIX[] = "MACDFIX";
static const char __pyx_k_PLUS_DI[] = "PLUS_DI";
static const char __pyx_k_PLUS_DM[] = "PLUS_DM";
static const char __pyx_k_ROCR100[] = "ROCR100";
static const char __pyx_k_TA_ACOS[] = "TA_ACOS";
static const char __pyx_k_TA_ADXR[] = "TA_ADXR";
static const char __pyx_k_TA_ASIN[] = "TA_ASIN";
static const char __pyx_k_TA_ATAN[] = "TA_ATAN";
static const char __pyx_k_TA_BETA[] = "TA_BETA";
static const char __pyx_k_TA_CEIL[] = "TA_CEIL";
static const char __pyx_k_TA_COSH[] = "TA_COSH";
static const char __pyx_k_TA_DEMA[] = "TA_DEMA";
static const char __pyx_k_TA_KAMA[] = "TA_KAMA";
static const char __pyx_k_TA_MACD[] = "TA_MACD";
static const char __pyx_k_TA_MAMA[] = "TA_MAMA";
static const char __pyx_k_TA_MAVP[] = "TA_MAVP";
static const char __pyx_k_TA_MULT[] = "TA_MULT";
static const char __pyx_k_TA_NATR[] = "TA_NATR";
static const char __pyx_k_TA_ROCP[] = "TA_ROCP";
static const char __pyx_k_TA_ROCR[] = "TA_ROCR";
static const char __pyx_k_TA_SINH[] = "TA_SINH";
static const char __pyx_k_TA_SQRT[] = "TA_SQRT";
static const char __pyx_k_TA_TANH[] = "TA_TANH";
static const char __pyx_k_TA_TEMA[] = "TA_TEMA";
static const char __pyx_k_TA_TRIX[] = "TA_TRIX";
static const char __pyx_k_maximum[] = "maximum";
static const char __pyx_k_nbdevdn[] = "nbdevdn";
static const char __pyx_k_nbdevup[] = "nbdevup";
static const char __pyx_k_outfama[] = "outfama";
static const char __pyx_k_outmacd[] = "outmacd";
static const char __pyx_k_outmama[] = "outmama";
static const char __pyx_k_outreal[] = "outreal";
static const char __pyx_k_outsine[] = "outsine";
static const char __pyx_k_periods[] = "periods";
static const char __pyx_k_retCode[] = "retCode";
static const char __pyx_k_vfactor[] = "vfactor";
static const char __pyx_k_AROONOSC[] = "AROONOSC";
static const char __pyx_k_AVGPRICE[] = "AVGPRICE";
static const char __pyx_k_MAXINDEX[] = "MAXINDEX";
static const char __pyx_k_MEDPRICE[] = "MEDPRICE";
static const char __pyx_k_MIDPOINT[] = "MIDPOINT";
static const char __pyx_k_MIDPRICE[] = "MIDPRICE";
static const char __pyx_k_MININDEX[] = "MININDEX";
static const char __pyx_k_MINUS_DI[] = "MINUS_DI";
static const char __pyx_k_MINUS_DM[] = "MINUS_DM";
static const char __pyx_k_STOCHRSI[] = "STOCHRSI";
static const char __pyx_k_TA_ADOSC[] = "TA_ADOSC";
static const char __pyx_k_TA_AROON[] = "TA_AROON";
static const char __pyx_k_TA_FLOOR[] = "TA_FLOOR";
static const char __pyx_k_TA_LOG10[] = "TA_LOG10";
static const char __pyx_k_TA_STOCH[] = "TA_STOCH";
static const char __pyx_k_TA_TRIMA[] = "TA_TRIMA";
static const char __pyx_k_TA_WILLR[] = "TA_WILLR";
static const char __pyx_k_TYPPRICE[] = "TYPPRICE";
static const char __pyx_k_WCLPRICE[] = "WCLPRICE";
static const char __pyx_k_lookback[] = "lookback";
static const char __pyx_k_low_data[] = "low_data";
static const char __pyx_k_outfastd[] = "outfastd";
static const char __pyx_k_outfastk[] = "outfastk";
static const char __pyx_k_outslowd[] = "outslowd";
static const char __pyx_k_outslowk[] = "outslowk";
static const char __pyx_k_CDL2CROWS[] = "CDL2CROWS";
static const char __pyx_k_CDLHAMMER[] = "CDLHAMMER";
static const char __pyx_k_CDLHARAMI[] = "CDLHARAMI";
static const char __pyx_k_CDLINNECK[] = "CDLINNECK";
static const char __pyx_k_CDLONNECK[] = "CDLONNECK";
static const char __pyx_k_CDLTAKURI[] = "CDLTAKURI";
static const char __pyx_k_Exception[] = "Exception";
static const char __pyx_k_HT_PHASOR[] = "HT_PHASOR";
static const char __pyx_k_LINEARREG[] = "LINEARREG";
static const char __pyx_k_TA_BBANDS[] = "TA_BBANDS";
static const char __pyx_k_TA_CORREL[] = "TA_CORREL";
static const char __pyx_k_TA_MINMAX[] = "TA_MINMAX";
static const char __pyx_k_TA_SAREXT[] = "TA_SAREXT";
static const char __pyx_k_TA_STDDEV[] = "TA_STDDEV";
static const char __pyx_k_TA_STOCHF[] = "TA_STOCHF";
static const char __pyx_k_TA_TRANGE[] = "TA_TRANGE";
static const char __pyx_k_TA_ULTOSC[] = "TA_ULTOSC";
static const char __pyx_k_fastlimit[] = "fastlimit";
static const char __pyx_k_high_data[] = "high_data";
static const char __pyx_k_maxperiod[] = "maxperiod";
static const char __pyx_k_minperiod[] = "minperiod";
static const char __pyx_k_open_data[] = "open_data";
static const char __pyx_k_outbegidx[] = "outbegidx";
static const char __pyx_k_outmaxidx[] = "outmaxidx";
static const char __pyx_k_outminidx[] = "outminidx";
static const char __pyx_k_real_data[] = "real_data";
static const char __pyx_k_slowlimit[] = "slowlimit";
static const char __pyx_k_CDL3INSIDE[] = "CDL3INSIDE";
static const char __pyx_k_CDLHIKKAKE[] = "CDLHIKKAKE";
static const char __pyx_k_CDLKICKING[] = "CDLKICKING";
static const char __pyx_k_CDLMATHOLD[] = "CDLMATHOLD";
static const char __pyx_k_CDLTRISTAR[] = "CDLTRISTAR";
static const char __pyx_k_HT_DCPHASE[] = "HT_DCPHASE";
static const char __pyx_k_TA_CDLDOJI[] = "TA_CDLDOJI";
static const char __pyx_k_TA_HT_SINE[] = "TA_HT_SINE";
static const char __pyx_k_TA_MACDEXT[] = "TA_MACDEXT";
static const char __pyx_k_TA_MACDFIX[] = "TA_MACDFIX";
static const char __pyx_k_TA_PLUS_DI[] = "TA_PLUS_DI";
static const char __pyx_k_TA_PLUS_DM[] = "TA_PLUS_DM";
static const char __pyx_k_TA_ROCR100[] = "TA_ROCR100";
static const char __pyx_k_ValueError[] = "ValueError";
static const char __pyx_k_close_data[] = "close_data";
static const char __pyx_k_fastmatype[] = "fastmatype";
static const char __pyx_k_fastperiod[] = "fastperiod";
static const char __pyx_k_outaroonup[] = "outaroonup";
static const char __pyx_k_outinphase[] = "outinphase";
static const char __pyx_k_outinteger[] = "outinteger";
static const char __pyx_k_real0_data[] = "real0_data";
static const char __pyx_k_real1_data[] = "real1_data";
static const char __pyx_k_slowmatype[] = "slowmatype";
static const char __pyx_k_slowperiod[] = "slowperiod";
static const char __pyx_k_startvalue[] = "startvalue";
static const char __pyx_k_timeperiod[] = "timeperiod";
static const char __pyx_k_CDL3OUTSIDE[] = "CDL3OUTSIDE";
static const char __pyx_k_CDLBELTHOLD[] = "CDLBELTHOLD";
static const char __pyx_k_CDLDOJISTAR[] = "CDLDOJISTAR";
static const char __pyx_k_CDLHIGHWAVE[] = "CDLHIGHWAVE";
static const char __pyx_k_CDLLONGLINE[] = "CDLLONGLINE";
static const char __pyx_k_CDLMARUBOZU[] = "CDLMARUBOZU";
static const char __pyx_k_CDLPIERCING[] = "CDLPIERCING";
static const char __pyx_k_HT_DCPERIOD[] = "HT_DCPERIOD";
static const char __pyx_k_MINMAXINDEX[] = "MINMAXINDEX";
static const char __pyx_k_TA_AROONOSC[] = "TA_AROONOSC";
static const char __pyx_k_TA_AVGPRICE[] = "TA_AVGPRICE";
static const char __pyx_k_TA_MAXINDEX[] = "TA_MAXINDEX";
static const char __pyx_k_TA_MEDPRICE[] = "TA_MEDPRICE";
static const char __pyx_k_TA_MIDPOINT[] = "TA_MIDPOINT";
static const char __pyx_k_TA_MIDPRICE[] = "TA_MIDPRICE";
static const char __pyx_k_TA_MININDEX[] = "TA_MININDEX";
static const char __pyx_k_TA_MINUS_DI[] = "TA_MINUS_DI";
static const char __pyx_k_TA_MINUS_DM[] = "TA_MINUS_DM";
static const char __pyx_k_TA_STOCHRSI[] = "TA_STOCHRSI";
static const char __pyx_k_TA_TYPPRICE[] = "TA_TYPPRICE";
static const char __pyx_k_TA_WCLPRICE[] = "TA_WCLPRICE";
static const char __pyx_k_outleadsine[] = "outleadsine";
static const char __pyx_k_outmacdhist[] = "outmacdhist";
static const char __pyx_k_penetration[] = "penetration";
static const char __pyx_k_timeperiod1[] = "timeperiod1";
static const char __pyx_k_timeperiod2[] = "timeperiod2";
static const char __pyx_k_timeperiod3[] = "timeperiod3";
static const char __pyx_k_volume_data[] = "volume_data";
static const char __pyx_k_CDLBREAKAWAY[] = "CDLBREAKAWAY";
static const char __pyx_k_CDLENGULFING[] = "CDLENGULFING";
static const char __pyx_k_CDLSHORTLINE[] = "CDLSHORTLINE";
static const char __pyx_k_CDLTASUKIGAP[] = "CDLTASUKIGAP";
static const char __pyx_k_CDLTHRUSTING[] = "CDLTHRUSTING";
static const char __pyx_k_HT_TRENDLINE[] = "HT_TRENDLINE";
static const char __pyx_k_HT_TRENDMODE[] = "HT_TRENDMODE";
static const char __pyx_k_RuntimeError[] = "RuntimeError";
static const char __pyx_k_TA_CDL2CROWS[] = "TA_CDL2CROWS";
static const char __pyx_k_TA_CDLHAMMER[] = "TA_CDLHAMMER";
static const char __pyx_k_TA_CDLHARAMI[] = "TA_CDLHARAMI";
static const char __pyx_k_TA_CDLINNECK[] = "TA_CDLINNECK";
static const char __pyx_k_TA_CDLONNECK[] = "TA_CDLONNECK";
static const char __pyx_k_TA_CDLTAKURI[] = "TA_CDLTAKURI";
static const char __pyx_k_TA_HT_PHASOR[] = "TA_HT_PHASOR";
static const char __pyx_k_TA_LINEARREG[] = "TA_LINEARREG";
static const char __pyx_k_acceleration[] = "acceleration";
static const char __pyx_k_fastd_matype[] = "fastd_matype";
static const char __pyx_k_fastd_period[] = "fastd_period";
static const char __pyx_k_fastk_period[] = "fastk_period";
static const char __pyx_k_outaroondown[] = "outaroondown";
static const char __pyx_k_outnbelement[] = "outnbelement";
static const char __pyx_k_periods_data[] = "periods_data";
static const char __pyx_k_signalmatype[] = "signalmatype";
static const char __pyx_k_signalperiod[] = "signalperiod";
static const char __pyx_k_slowd_matype[] = "slowd_matype";
static const char __pyx_k_slowd_period[] = "slowd_period";
static const char __pyx_k_slowk_matype[] = "slowk_matype";
static const char __pyx_k_slowk_period[] = "slowk_period";
static const char __pyx_k_talib_stream[] = "talib.stream";
static const char __pyx_k_CDLHANGINGMAN[] = "CDLHANGINGMAN";
static const char __pyx_k_CDLHIKKAKEMOD[] = "CDLHIKKAKEMOD";
static const char __pyx_k_TA_CDL3INSIDE[] = "TA_CDL3INSIDE";
static const char __pyx_k_TA_CDLHIKKAKE[] = "TA_CDLHIKKAKE";
static const char __pyx_k_TA_CDLKICKING[] = "TA_CDLKICKING";
static const char __pyx_k_TA_CDLMATHOLD[] = "TA_CDLMATHOLD";
static const char __pyx_k_TA_CDLTRISTAR[] = "TA_CDLTRISTAR";
static const char __pyx_k_TA_HT_DCPHASE[] = "TA_HT_DCPHASE";
static const char __pyx_k_outmacdsignal[] = "outmacdsignal";
static const char __pyx_k_outquadrature[] = "outquadrature";
static const char __pyx_k_CDL3BLACKCROWS[] = "CDL3BLACKCROWS";
static const char __pyx_k_CDL3LINESTRIKE[] = "CDL3LINESTRIKE";
static const char __pyx_k_CDLEVENINGSTAR[] = "CDLEVENINGSTAR";
static const char __pyx_k_CDLHARAMICROSS[] = "CDLHARAMICROSS";
static const char __pyx_k_CDLMATCHINGLOW[] = "CDLMATCHINGLOW";
static const char __pyx_k_CDLMORNINGSTAR[] = "CDLMORNINGSTAR";
static const char __pyx_k_CDLRICKSHAWMAN[] = "CDLRICKSHAWMAN";
static const char __pyx_k_CDLSPINNINGTOP[] = "CDLSPINNINGTOP";
static const char __pyx_k_TA_CDL3OUTSIDE[] = "TA_CDL3OUTSIDE";
static const char __pyx_k_TA_CDLBELTHOLD[] = "TA_CDLBELTHOLD";
static const char __pyx_k_TA_CDLDOJISTAR[] = "TA_CDLDOJISTAR";
static const char __pyx_k_TA_CDLHIGHWAVE[] = "TA_CDLHIGHWAVE";
static const char __pyx_k_TA_CDLLONGLINE[] = "TA_CDLLONGLINE";
static const char __pyx_k_TA_CDLMARUBOZU[] = "TA_CDLMARUBOZU";
static const char __pyx_k_TA_CDLPIERCING[] = "TA_CDLPIERCING";
static const char __pyx_k_TA_HT_DCPERIOD[] = "TA_HT_DCPERIOD";
static const char __pyx_k_TA_MINMAXINDEX[] = "TA_MINMAXINDEX";
static const char __pyx_k_CDLADVANCEBLOCK[] = "CDLADVANCEBLOCK";
static const char __pyx_k_CDLHOMINGPIGEON[] = "CDLHOMINGPIGEON";
static const char __pyx_k_CDLLADDERBOTTOM[] = "CDLLADDERBOTTOM";
static const char __pyx_k_CDLSHOOTINGSTAR[] = "CDLSHOOTINGSTAR";
static const char __pyx_k_CDLUNIQUE3RIVER[] = "CDLUNIQUE3RIVER";
static const char __pyx_k_LINEARREG_ANGLE[] = "LINEARREG_ANGLE";
static const char __pyx_k_LINEARREG_SLOPE[] = "LINEARREG_SLOPE";
static const char __pyx_k_TA_CDLBREAKAWAY[] = "TA_CDLBREAKAWAY";
static const char __pyx_k_TA_CDLENGULFING[] = "TA_CDLENGULFING";
static const char __pyx_k_TA_CDLSHORTLINE[] = "TA_CDLSHORTLINE";
static const char __pyx_k_TA_CDLTASUKIGAP[] = "TA_CDLTASUKIGAP";
static const char __pyx_k_TA_CDLTHRUSTING[] = "TA_CDLTHRUSTING";
static const char __pyx_k_TA_HT_TRENDLINE[] = "TA_HT_TRENDLINE";
static const char __pyx_k_TA_HT_TRENDMODE[] = "TA_HT_TRENDMODE";
static const char __pyx_k_offsetonreverse[] = "offsetonreverse";
static const char __pyx_k_CDL3STARSINSOUTH[] = "CDL3STARSINSOUTH";
static const char __pyx_k_CDLABANDONEDBABY[] = "CDLABANDONEDBABY";
static const char __pyx_k_CDLCOUNTERATTACK[] = "CDLCOUNTERATTACK";
static const char __pyx_k_CDLDRAGONFLYDOJI[] = "CDLDRAGONFLYDOJI";
static const char __pyx_k_CDLSTICKSANDWICH[] = "CDLSTICKSANDWICH";
static const char __pyx_k_TA_CDLHANGINGMAN[] = "TA_CDLHANGINGMAN";
static const char __pyx_k_TA_CDLHIKKAKEMOD[] = "TA_CDLHIKKAKEMOD";
static const char __pyx_k_accelerationlong[] = "accelerationlong";
static const char __pyx_k_outreallowerband[] = "outreallowerband";
static const char __pyx_k_outrealupperband[] = "outrealupperband";
static const char __pyx_k_CDL3WHITESOLDIERS[] = "CDL3WHITESOLDIERS";
static const char __pyx_k_CDLDARKCLOUDCOVER[] = "CDLDARKCLOUDCOVER";
static const char __pyx_k_CDLGRAVESTONEDOJI[] = "CDLGRAVESTONEDOJI";
static const char __pyx_k_CDLINVERTEDHAMMER[] = "CDLINVERTEDHAMMER";
static const char __pyx_k_CDLLONGLEGGEDDOJI[] = "CDLLONGLEGGEDDOJI";
static const char __pyx_k_CDLSTALLEDPATTERN[] = "CDLSTALLEDPATTERN";
static const char __pyx_k_TA_CDL3BLACKCROWS[] = "TA_CDL3BLACKCROWS";
static const char __pyx_k_TA_CDL3LINESTRIKE[] = "TA_CDL3LINESTRIKE";
static const char __pyx_k_TA_CDLEVENINGSTAR[] = "TA_CDLEVENINGSTAR";
static const char __pyx_k_TA_CDLHARAMICROSS[] = "TA_CDLHARAMICROSS";
static const char __pyx_k_TA_CDLMATCHINGLOW[] = "TA_CDLMATCHINGLOW";
static const char __pyx_k_TA_CDLMORNINGSTAR[] = "TA_CDLMORNINGSTAR";
static const char __pyx_k_TA_CDLRICKSHAWMAN[] = "TA_CDLRICKSHAWMAN";
static const char __pyx_k_TA_CDLSPINNINGTOP[] = "TA_CDLSPINNINGTOP";
static const char __pyx_k_accelerationshort[] = "accelerationshort";
static const char __pyx_k_low_is_not_double[] = "low is not double";
static const char __pyx_k_outrealmiddleband[] = "outrealmiddleband";
static const char __pyx_k_CDLCLOSINGMARUBOZU[] = "CDLCLOSINGMARUBOZU";
static const char __pyx_k_CDLEVENINGDOJISTAR[] = "CDLEVENINGDOJISTAR";
static const char __pyx_k_CDLIDENTICAL3CROWS[] = "CDLIDENTICAL3CROWS";
static const char __pyx_k_CDLKICKINGBYLENGTH[] = "CDLKICKINGBYLENGTH";
static const char __pyx_k_CDLMORNINGDOJISTAR[] = "CDLMORNINGDOJISTAR";
static const char __pyx_k_CDLSEPARATINGLINES[] = "CDLSEPARATINGLINES";
static const char __pyx_k_CDLUPSIDEGAP2CROWS[] = "CDLUPSIDEGAP2CROWS";
static const char __pyx_k_TA_CDLADVANCEBLOCK[] = "TA_CDLADVANCEBLOCK";
static const char __pyx_k_TA_CDLHOMINGPIGEON[] = "TA_CDLHOMINGPIGEON";
static const char __pyx_k_TA_CDLLADDERBOTTOM[] = "TA_CDLLADDERBOTTOM";
static const char __pyx_k_TA_CDLSHOOTINGSTAR[] = "TA_CDLSHOOTINGSTAR";
static const char __pyx_k_TA_CDLUNIQUE3RIVER[] = "TA_CDLUNIQUE3RIVER";
static const char __pyx_k_TA_LINEARREG_ANGLE[] = "TA_LINEARREG_ANGLE";
static const char __pyx_k_TA_LINEARREG_SLOPE[] = "TA_LINEARREG_SLOPE";
static const char __pyx_k_high_is_not_double[] = "high is not double";
static const char __pyx_k_open_is_not_double[] = "open is not double";
static const char __pyx_k_real_is_not_double[] = "real is not double";
static const char __pyx_k_CDLCONCEALBABYSWALL[] = "CDLCONCEALBABYSWALL";
static const char __pyx_k_CDLGAPSIDESIDEWHITE[] = "CDLGAPSIDESIDEWHITE";
static const char __pyx_k_CDLRISEFALL3METHODS[] = "CDLRISEFALL3METHODS";
static const char __pyx_k_CDLXSIDEGAP3METHODS[] = "CDLXSIDEGAP3METHODS";
static const char __pyx_k_LINEARREG_INTERCEPT[] = "LINEARREG_INTERCEPT";
static const char __pyx_k_TA_CDL3STARSINSOUTH[] = "TA_CDL3STARSINSOUTH";
static const char __pyx_k_TA_CDLABANDONEDBABY[] = "TA_CDLABANDONEDBABY";
static const char __pyx_k_TA_CDLCOUNTERATTACK[] = "TA_CDLCOUNTERATTACK";
static const char __pyx_k_TA_CDLDRAGONFLYDOJI[] = "TA_CDLDRAGONFLYDOJI";
static const char __pyx_k_TA_CDLSTICKSANDWICH[] = "TA_CDLSTICKSANDWICH";
static const char __pyx_k_accelerationmaxlong[] = "accelerationmaxlong";
static const char __pyx_k_close_is_not_double[] = "close is not double";
static const char __pyx_k_real0_is_not_double[] = "real0 is not double";
static const char __pyx_k_real1_is_not_double[] = "real1 is not double";
static const char __pyx_k_TA_CDL3WHITESOLDIERS[] = "TA_CDL3WHITESOLDIERS";
static const char __pyx_k_TA_CDLDARKCLOUDCOVER[] = "TA_CDLDARKCLOUDCOVER";
static const char __pyx_k_TA_CDLGRAVESTONEDOJI[] = "TA_CDLGRAVESTONEDOJI";
static const char __pyx_k_TA_CDLINVERTEDHAMMER[] = "TA_CDLINVERTEDHAMMER";
static const char __pyx_k_TA_CDLLONGLEGGEDDOJI[] = "TA_CDLLONGLEGGEDDOJI";
static const char __pyx_k_TA_CDLSTALLEDPATTERN[] = "TA_CDLSTALLEDPATTERN";
static const char __pyx_k_accelerationinitlong[] = "accelerationinitlong";
static const char __pyx_k_accelerationmaxshort[] = "accelerationmaxshort";
static const char __pyx_k_volume_is_not_double[] = "volume is not double";
static const char __pyx_k_TA_CDLCLOSINGMARUBOZU[] = "TA_CDLCLOSINGMARUBOZU";
static const char __pyx_k_TA_CDLEVENINGDOJISTAR[] = "TA_CDLEVENINGDOJISTAR";
static const char __pyx_k_TA_CDLIDENTICAL3CROWS[] = "TA_CDLIDENTICAL3CROWS";
static const char __pyx_k_TA_CDLKICKINGBYLENGTH[] = "TA_CDLKICKINGBYLENGTH";
static const char __pyx_k_TA_CDLMORNINGDOJISTAR[] = "TA_CDLMORNINGDOJISTAR";
static const char __pyx_k_TA_CDLSEPARATINGLINES[] = "TA_CDLSEPARATINGLINES";
static const char __pyx_k_TA_CDLUPSIDEGAP2CROWS[] = "TA_CDLUPSIDEGAP2CROWS";
static const char __pyx_k_accelerationinitshort[] = "accelerationinitshort";
static const char __pyx_k_periods_is_not_double[] = "periods is not double";
static const char __pyx_k_TA_CDLCONCEALBABYSWALL[] = "TA_CDLCONCEALBABYSWALL";
static const char __pyx_k_TA_CDLGAPSIDESIDEWHITE[] = "TA_CDLGAPSIDESIDEWHITE";
static const char __pyx_k_TA_CDLRISEFALL3METHODS[] = "TA_CDLRISEFALL3METHODS";
static const char __pyx_k_TA_CDLXSIDEGAP3METHODS[] = "TA_CDLXSIDEGAP3METHODS";
static const char __pyx_k_TA_LINEARREG_INTERCEPT[] = "TA_LINEARREG_INTERCEPT";
static const char __pyx_k_low_has_wrong_dimensions[] = "low has wrong dimensions";
static const char __pyx_k_high_has_wrong_dimensions[] = "high has wrong dimensions";
static const char __pyx_k_open_has_wrong_dimensions[] = "open has wrong dimensions";
static const char __pyx_k_real_has_wrong_dimensions[] = "real has wrong dimensions";
static const char __pyx_k_close_has_wrong_dimensions[] = "close has wrong dimensions";
static const char __pyx_k_real0_has_wrong_dimensions[] = "real0 has wrong dimensions";
static const char __pyx_k_real1_has_wrong_dimensions[] = "real1 has wrong dimensions";
static const char __pyx_k_input_lengths_are_different[] = "input lengths are different";
static const char __pyx_k_ndarray_is_not_C_contiguous[] = "ndarray is not C contiguous";
static const char __pyx_k_volume_has_wrong_dimensions[] = "volume has wrong dimensions";
static const char __pyx_k_periods_has_wrong_dimensions[] = "periods has wrong dimensions";
static const char __pyx_k_Users_jbenedik_Dev_ta_lib_talib[] = "/Users/jbenedik/Dev/ta-lib/talib/stream.pyx";
static const char __pyx_k_unknown_dtype_code_in_numpy_pxd[] = "unknown dtype code in numpy.pxd (%d)";
static const char __pyx_k_Format_string_allocated_too_shor[] = "Format string allocated too short, see comment in numpy.pxd";
static const char __pyx_k_Non_native_byte_order_not_suppor[] = "Non-native byte order not supported";
static const char __pyx_k_ndarray_is_not_Fortran_contiguou[] = "ndarray is not Fortran contiguous";
static const char __pyx_k_Format_string_allocated_too_shor_2[] = "Format string allocated too short.";
static PyObject *__pyx_n_s_ACOS;
static PyObject *__pyx_n_s_AD;
static PyObject *__pyx_n_s_ADD;
static PyObject *__pyx_n_s_ADOSC;
static PyObject *__pyx_n_s_ADX;
static PyObject *__pyx_n_s_ADXR;
static PyObject *__pyx_n_s_APO;
static PyObject *__pyx_n_s_AROON;
static PyObject *__pyx_n_s_AROONOSC;
static PyObject *__pyx_n_s_ASIN;
static PyObject *__pyx_n_s_ATAN;
static PyObject *__pyx_n_s_ATR;
static PyObject *__pyx_n_s_AVGPRICE;
static PyObject *__pyx_n_s_BBANDS;
static PyObject *__pyx_n_s_BETA;
static PyObject *__pyx_n_s_BOP;
static PyObject *__pyx_n_s_CCI;
static PyObject *__pyx_n_s_CDL2CROWS;
static PyObject *__pyx_n_s_CDL3BLACKCROWS;
static PyObject *__pyx_n_s_CDL3INSIDE;
static PyObject *__pyx_n_s_CDL3LINESTRIKE;
static PyObject *__pyx_n_s_CDL3OUTSIDE;
static PyObject *__pyx_n_s_CDL3STARSINSOUTH;
static PyObject *__pyx_n_s_CDL3WHITESOLDIERS;
static PyObject *__pyx_n_s_CDLABANDONEDBABY;
static PyObject *__pyx_n_s_CDLADVANCEBLOCK;
static PyObject *__pyx_n_s_CDLBELTHOLD;
static PyObject *__pyx_n_s_CDLBREAKAWAY;
static PyObject *__pyx_n_s_CDLCLOSINGMARUBOZU;
static PyObject *__pyx_n_s_CDLCONCEALBABYSWALL;
static PyObject *__pyx_n_s_CDLCOUNTERATTACK;
static PyObject *__pyx_n_s_CDLDARKCLOUDCOVER;
static PyObject *__pyx_n_s_CDLDOJI;
static PyObject *__pyx_n_s_CDLDOJISTAR;
static PyObject *__pyx_n_s_CDLDRAGONFLYDOJI;
static PyObject *__pyx_n_s_CDLENGULFING;
static PyObject *__pyx_n_s_CDLEVENINGDOJISTAR;
static PyObject *__pyx_n_s_CDLEVENINGSTAR;
static PyObject *__pyx_n_s_CDLGAPSIDESIDEWHITE;
static PyObject *__pyx_n_s_CDLGRAVESTONEDOJI;
static PyObject *__pyx_n_s_CDLHAMMER;
static PyObject *__pyx_n_s_CDLHANGINGMAN;
static PyObject *__pyx_n_s_CDLHARAMI;
static PyObject *__pyx_n_s_CDLHARAMICROSS;
static PyObject *__pyx_n_s_CDLHIGHWAVE;
static PyObject *__pyx_n_s_CDLHIKKAKE;
static PyObject *__pyx_n_s_CDLHIKKAKEMOD;
static PyObject *__pyx_n_s_CDLHOMINGPIGEON;
static PyObject *__pyx_n_s_CDLIDENTICAL3CROWS;
static PyObject *__pyx_n_s_CDLINNECK;
static PyObject *__pyx_n_s_CDLINVERTEDHAMMER;
static PyObject *__pyx_n_s_CDLKICKING;
static PyObject *__pyx_n_s_CDLKICKINGBYLENGTH;
static PyObject *__pyx_n_s_CDLLADDERBOTTOM;
static PyObject *__pyx_n_s_CDLLONGLEGGEDDOJI;
static PyObject *__pyx_n_s_CDLLONGLINE;
static PyObject *__pyx_n_s_CDLMARUBOZU;
static PyObject *__pyx_n_s_CDLMATCHINGLOW;
static PyObject *__pyx_n_s_CDLMATHOLD;
static PyObject *__pyx_n_s_CDLMORNINGDOJISTAR;
static PyObject *__pyx_n_s_CDLMORNINGSTAR;
static PyObject *__pyx_n_s_CDLONNECK;
static PyObject *__pyx_n_s_CDLPIERCING;
static PyObject *__pyx_n_s_CDLRICKSHAWMAN;
static PyObject *__pyx_n_s_CDLRISEFALL3METHODS;
static PyObject *__pyx_n_s_CDLSEPARATINGLINES;
static PyObject *__pyx_n_s_CDLSHOOTINGSTAR;
static PyObject *__pyx_n_s_CDLSHORTLINE;
static PyObject *__pyx_n_s_CDLSPINNINGTOP;
static PyObject *__pyx_n_s_CDLSTALLEDPATTERN;
static PyObject *__pyx_n_s_CDLSTICKSANDWICH;
static PyObject *__pyx_n_s_CDLTAKURI;
static PyObject *__pyx_n_s_CDLTASUKIGAP;
static PyObject *__pyx_n_s_CDLTHRUSTING;
static PyObject *__pyx_n_s_CDLTRISTAR;
static PyObject *__pyx_n_s_CDLUNIQUE3RIVER;
static PyObject *__pyx_n_s_CDLUPSIDEGAP2CROWS;
static PyObject *__pyx_n_s_CDLXSIDEGAP3METHODS;
static PyObject *__pyx_n_s_CEIL;
static PyObject *__pyx_n_s_CMO;
static PyObject *__pyx_n_s_CORREL;
static PyObject *__pyx_n_s_COS;
static PyObject *__pyx_n_s_COSH;
static PyObject *__pyx_n_s_DEMA;
static PyObject *__pyx_n_s_DIV;
static PyObject *__pyx_n_s_DX;
static PyObject *__pyx_n_s_EMA;
static PyObject *__pyx_n_s_EXP;
static PyObject *__pyx_n_s_Exception;
static PyObject *__pyx_n_s_FLOOR;
static PyObject *__pyx_kp_u_Format_string_allocated_too_shor;
static PyObject *__pyx_kp_u_Format_string_allocated_too_shor_2;
static PyObject *__pyx_n_s_HT_DCPERIOD;
static PyObject *__pyx_n_s_HT_DCPHASE;
static PyObject *__pyx_n_s_HT_PHASOR;
static PyObject *__pyx_n_s_HT_SINE;
static PyObject *__pyx_n_s_HT_TRENDLINE;
static PyObject *__pyx_n_s_HT_TRENDMODE;
static PyObject *__pyx_n_s_KAMA;
static PyObject *__pyx_n_s_LINEARREG;
static PyObject *__pyx_n_s_LINEARREG_ANGLE;
static PyObject *__pyx_n_s_LINEARREG_INTERCEPT;
static PyObject *__pyx_n_s_LINEARREG_SLOPE;
static PyObject *__pyx_n_s_LN;
static PyObject *__pyx_n_s_LOG10;
static PyObject *__pyx_n_s_MA;
static PyObject *__pyx_n_s_MACD;
static PyObject *__pyx_n_s_MACDEXT;
static PyObject *__pyx_n_s_MACDFIX;
static PyObject *__pyx_n_s_MAMA;
static PyObject *__pyx_n_s_MAVP;
static PyObject *__pyx_n_s_MAX;
static PyObject *__pyx_n_s_MAXINDEX;
static PyObject *__pyx_n_s_MEDPRICE;
static PyObject *__pyx_n_s_MFI;
static PyObject *__pyx_n_s_MIDPOINT;
static PyObject *__pyx_n_s_MIDPRICE;
static PyObject *__pyx_n_s_MIN;
static PyObject *__pyx_n_s_MININDEX;
static PyObject *__pyx_n_s_MINMAX;
static PyObject *__pyx_n_s_MINMAXINDEX;
static PyObject *__pyx_n_s_MINUS_DI;
static PyObject *__pyx_n_s_MINUS_DM;
static PyObject *__pyx_n_s_MOM;
static PyObject *__pyx_n_s_MULT;
static PyObject *__pyx_n_s_NATR;
static PyObject *__pyx_kp_u_Non_native_byte_order_not_suppor;
static PyObject *__pyx_n_s_OBV;
static PyObject *__pyx_n_s_PLUS_DI;
static PyObject *__pyx_n_s_PLUS_DM;
static PyObject *__pyx_n_s_PPO;
static PyObject *__pyx_n_s_ROC;
static PyObject *__pyx_n_s_ROCP;
static PyObject *__pyx_n_s_ROCR;
static PyObject *__pyx_n_s_ROCR100;
static PyObject *__pyx_n_s_RSI;
static PyObject *__pyx_n_s_RuntimeError;
static PyObject *__pyx_n_s_SAR;
static PyObject *__pyx_n_s_SAREXT;
static PyObject *__pyx_n_s_SIN;
static PyObject *__pyx_n_s_SINH;
static PyObject *__pyx_n_s_SMA;
static PyObject *__pyx_n_s_SQRT;
static PyObject *__pyx_n_s_STDDEV;
static PyObject *__pyx_n_s_STOCH;
static PyObject *__pyx_n_s_STOCHF;
static PyObject *__pyx_n_s_STOCHRSI;
static PyObject *__pyx_n_s_SUB;
static PyObject *__pyx_n_s_SUM;
static PyObject *__pyx_n_s_T3;
static PyObject *__pyx_n_s_TAN;
static PyObject *__pyx_n_s_TANH;
static PyObject *__pyx_n_s_TA_ACOS;
static PyObject *__pyx_n_s_TA_AD;
static PyObject *__pyx_n_s_TA_ADD;
static PyObject *__pyx_n_s_TA_ADOSC;
static PyObject *__pyx_n_s_TA_ADX;
static PyObject *__pyx_n_s_TA_ADXR;
static PyObject *__pyx_n_s_TA_APO;
static PyObject *__pyx_n_s_TA_AROON;
static PyObject *__pyx_n_s_TA_AROONOSC;
static PyObject *__pyx_n_s_TA_ASIN;
static PyObject *__pyx_n_s_TA_ATAN;
static PyObject *__pyx_n_s_TA_ATR;
static PyObject *__pyx_n_s_TA_AVGPRICE;
static PyObject *__pyx_n_s_TA_BBANDS;
static PyObject *__pyx_n_s_TA_BETA;
static PyObject *__pyx_n_s_TA_BOP;
static PyObject *__pyx_n_s_TA_CCI;
static PyObject *__pyx_n_s_TA_CDL2CROWS;
static PyObject *__pyx_n_s_TA_CDL3BLACKCROWS;
static PyObject *__pyx_n_s_TA_CDL3INSIDE;
static PyObject *__pyx_n_s_TA_CDL3LINESTRIKE;
static PyObject *__pyx_n_s_TA_CDL3OUTSIDE;
static PyObject *__pyx_n_s_TA_CDL3STARSINSOUTH;
static PyObject *__pyx_n_s_TA_CDL3WHITESOLDIERS;
static PyObject *__pyx_n_s_TA_CDLABANDONEDBABY;
static PyObject *__pyx_n_s_TA_CDLADVANCEBLOCK;
static PyObject *__pyx_n_s_TA_CDLBELTHOLD;
static PyObject *__pyx_n_s_TA_CDLBREAKAWAY;
static PyObject *__pyx_n_s_TA_CDLCLOSINGMARUBOZU;
static PyObject *__pyx_n_s_TA_CDLCONCEALBABYSWALL;
static PyObject *__pyx_n_s_TA_CDLCOUNTERATTACK;
static PyObject *__pyx_n_s_TA_CDLDARKCLOUDCOVER;
static PyObject *__pyx_n_s_TA_CDLDOJI;
static PyObject *__pyx_n_s_TA_CDLDOJISTAR;
static PyObject *__pyx_n_s_TA_CDLDRAGONFLYDOJI;
static PyObject *__pyx_n_s_TA_CDLENGULFING;
static PyObject *__pyx_n_s_TA_CDLEVENINGDOJISTAR;
static PyObject *__pyx_n_s_TA_CDLEVENINGSTAR;
static PyObject *__pyx_n_s_TA_CDLGAPSIDESIDEWHITE;
static PyObject *__pyx_n_s_TA_CDLGRAVESTONEDOJI;
static PyObject *__pyx_n_s_TA_CDLHAMMER;
static PyObject *__pyx_n_s_TA_CDLHANGINGMAN;
static PyObject *__pyx_n_s_TA_CDLHARAMI;
static PyObject *__pyx_n_s_TA_CDLHARAMICROSS;
static PyObject *__pyx_n_s_TA_CDLHIGHWAVE;
static PyObject *__pyx_n_s_TA_CDLHIKKAKE;
static PyObject *__pyx_n_s_TA_CDLHIKKAKEMOD;
static PyObject *__pyx_n_s_TA_CDLHOMINGPIGEON;
static PyObject *__pyx_n_s_TA_CDLIDENTICAL3CROWS;
static PyObject *__pyx_n_s_TA_CDLINNECK;
static PyObject *__pyx_n_s_TA_CDLINVERTEDHAMMER;
static PyObject *__pyx_n_s_TA_CDLKICKING;
static PyObject *__pyx_n_s_TA_CDLKICKINGBYLENGTH;
static PyObject *__pyx_n_s_TA_CDLLADDERBOTTOM;
static PyObject *__pyx_n_s_TA_CDLLONGLEGGEDDOJI;
static PyObject *__pyx_n_s_TA_CDLLONGLINE;
static PyObject *__pyx_n_s_TA_CDLMARUBOZU;
static PyObject *__pyx_n_s_TA_CDLMATCHINGLOW;
static PyObject *__pyx_n_s_TA_CDLMATHOLD;
static PyObject *__pyx_n_s_TA_CDLMORNINGDOJISTAR;
static PyObject *__pyx_n_s_TA_CDLMORNINGSTAR;
static PyObject *__pyx_n_s_TA_CDLONNECK;
static PyObject *__pyx_n_s_TA_CDLPIERCING;
static PyObject *__pyx_n_s_TA_CDLRICKSHAWMAN;
static PyObject *__pyx_n_s_TA_CDLRISEFALL3METHODS;
static PyObject *__pyx_n_s_TA_CDLSEPARATINGLINES;
static PyObject *__pyx_n_s_TA_CDLSHOOTINGSTAR;
static PyObject *__pyx_n_s_TA_CDLSHORTLINE;
static PyObject *__pyx_n_s_TA_CDLSPINNINGTOP;
static PyObject *__pyx_n_s_TA_CDLSTALLEDPATTERN;
static PyObject *__pyx_n_s_TA_CDLSTICKSANDWICH;
static PyObject *__pyx_n_s_TA_CDLTAKURI;
static PyObject *__pyx_n_s_TA_CDLTASUKIGAP;
static PyObject *__pyx_n_s_TA_CDLTHRUSTING;
static PyObject *__pyx_n_s_TA_CDLTRISTAR;
static PyObject *__pyx_n_s_TA_CDLUNIQUE3RIVER;
static PyObject *__pyx_n_s_TA_CDLUPSIDEGAP2CROWS;
static PyObject *__pyx_n_s_TA_CDLXSIDEGAP3METHODS;
static PyObject *__pyx_n_s_TA_CEIL;
static PyObject *__pyx_n_s_TA_CMO;
static PyObject *__pyx_n_s_TA_CORREL;
static PyObject *__pyx_n_s_TA_COS;
static PyObject *__pyx_n_s_TA_COSH;
static PyObject *__pyx_n_s_TA_DEMA;
static PyObject *__pyx_n_s_TA_DIV;
static PyObject *__pyx_n_s_TA_DX;
static PyObject *__pyx_n_s_TA_EMA;
static PyObject *__pyx_n_s_TA_EXP;
static PyObject *__pyx_n_s_TA_FLOOR;
static PyObject *__pyx_n_s_TA_HT_DCPERIOD;
static PyObject *__pyx_n_s_TA_HT_DCPHASE;
static PyObject *__pyx_n_s_TA_HT_PHASOR;
static PyObject *__pyx_n_s_TA_HT_SINE;
static PyObject *__pyx_n_s_TA_HT_TRENDLINE;
static PyObject *__pyx_n_s_TA_HT_TRENDMODE;
static PyObject *__pyx_n_s_TA_KAMA;
static PyObject *__pyx_n_s_TA_LINEARREG;
static PyObject *__pyx_n_s_TA_LINEARREG_ANGLE;
static PyObject *__pyx_n_s_TA_LINEARREG_INTERCEPT;
static PyObject *__pyx_n_s_TA_LINEARREG_SLOPE;
static PyObject *__pyx_n_s_TA_LN;
static PyObject *__pyx_n_s_TA_LOG10;
static PyObject *__pyx_n_s_TA_MA;
static PyObject *__pyx_n_s_TA_MACD;
static PyObject *__pyx_n_s_TA_MACDEXT;
static PyObject *__pyx_n_s_TA_MACDFIX;
static PyObject *__pyx_n_s_TA_MAMA;
static PyObject *__pyx_n_s_TA_MAVP;
static PyObject *__pyx_n_s_TA_MAX;
static PyObject *__pyx_n_s_TA_MAXINDEX;
static PyObject *__pyx_n_s_TA_MEDPRICE;
static PyObject *__pyx_n_s_TA_MFI;
static PyObject *__pyx_n_s_TA_MIDPOINT;
static PyObject *__pyx_n_s_TA_MIDPRICE;
static PyObject *__pyx_n_s_TA_MIN;
static PyObject *__pyx_n_s_TA_MININDEX;
static PyObject *__pyx_n_s_TA_MINMAX;
static PyObject *__pyx_n_s_TA_MINMAXINDEX;
static PyObject *__pyx_n_s_TA_MINUS_DI;
static PyObject *__pyx_n_s_TA_MINUS_DM;
static PyObject *__pyx_n_s_TA_MOM;
static PyObject *__pyx_n_s_TA_MULT;
static PyObject *__pyx_n_s_TA_NATR;
static PyObject *__pyx_n_s_TA_OBV;
static PyObject *__pyx_n_s_TA_PLUS_DI;
static PyObject *__pyx_n_s_TA_PLUS_DM;
static PyObject *__pyx_n_s_TA_PPO;
static PyObject *__pyx_n_s_TA_ROC;
static PyObject *__pyx_n_s_TA_ROCP;
static PyObject *__pyx_n_s_TA_ROCR;
static PyObject *__pyx_n_s_TA_ROCR100;
static PyObject *__pyx_n_s_TA_RSI;
static PyObject *__pyx_n_s_TA_SAR;
static PyObject *__pyx_n_s_TA_SAREXT;
static PyObject *__pyx_n_s_TA_SIN;
static PyObject *__pyx_n_s_TA_SINH;
static PyObject *__pyx_n_s_TA_SMA;
static PyObject *__pyx_n_s_TA_SQRT;
static PyObject *__pyx_n_s_TA_STDDEV;
static PyObject *__pyx_n_s_TA_STOCH;
static PyObject *__pyx_n_s_TA_STOCHF;
static PyObject *__pyx_n_s_TA_STOCHRSI;
static PyObject *__pyx_n_s_TA_SUB;
static PyObject *__pyx_n_s_TA_SUM;
static PyObject *__pyx_n_s_TA_T3;
static PyObject *__pyx_n_s_TA_TAN;
static PyObject *__pyx_n_s_TA_TANH;
static PyObject *__pyx_n_s_TA_TEMA;
static PyObject *__pyx_n_s_TA_TRANGE;
static PyObject *__pyx_n_s_TA_TRIMA;
static PyObject *__pyx_n_s_TA_TRIX;
static PyObject *__pyx_n_s_TA_TSF;
static PyObject *__pyx_n_s_TA_TYPPRICE;
static PyObject *__pyx_n_s_TA_ULTOSC;
static PyObject *__pyx_n_s_TA_VAR;
static PyObject *__pyx_n_s_TA_WCLPRICE;
static PyObject *__pyx_n_s_TA_WILLR;
static PyObject *__pyx_n_s_TA_WMA;
static PyObject *__pyx_n_s_TEMA;
static PyObject *__pyx_n_s_TRANGE;
static PyObject *__pyx_n_s_TRIMA;
static PyObject *__pyx_n_s_TRIX;
static PyObject *__pyx_n_s_TSF;
static PyObject *__pyx_n_s_TYPPRICE;
static PyObject *__pyx_n_s_ULTOSC;
static PyObject *__pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib;
static PyObject *__pyx_n_s_VAR;
static PyObject *__pyx_n_s_ValueError;
static PyObject *__pyx_n_s_WCLPRICE;
static PyObject *__pyx_n_s_WILLR;
static PyObject *__pyx_n_s_WMA;
static PyObject *__pyx_n_s_acceleration;
static PyObject *__pyx_n_s_accelerationinitlong;
static PyObject *__pyx_n_s_accelerationinitshort;
static PyObject *__pyx_n_s_accelerationlong;
static PyObject *__pyx_n_s_accelerationmaxlong;
static PyObject *__pyx_n_s_accelerationmaxshort;
static PyObject *__pyx_n_s_accelerationshort;
static PyObject *__pyx_n_s_all;
static PyObject *__pyx_n_s_begidx;
static PyObject *__pyx_n_s_close;
static PyObject *__pyx_n_s_close_data;
static PyObject *__pyx_kp_s_close_has_wrong_dimensions;
static PyObject *__pyx_kp_s_close_is_not_double;
static PyObject *__pyx_n_s_endidx;
static PyObject *__pyx_n_s_fastd_matype;
static PyObject *__pyx_n_s_fastd_period;
static PyObject *__pyx_n_s_fastk_period;
static PyObject *__pyx_n_s_fastlimit;
static PyObject *__pyx_n_s_fastmatype;
static PyObject *__pyx_n_s_fastperiod;
static PyObject *__pyx_n_s_high;
static PyObject *__pyx_n_s_high_data;
static PyObject *__pyx_kp_s_high_has_wrong_dimensions;
static PyObject *__pyx_kp_s_high_is_not_double;
static PyObject *__pyx_n_s_import;
static PyObject *__pyx_kp_s_input_lengths_are_different;
static PyObject *__pyx_n_s_length;
static PyObject *__pyx_n_s_lookback;
static PyObject *__pyx_n_s_low;
static PyObject *__pyx_n_s_low_data;
static PyObject *__pyx_kp_s_low_has_wrong_dimensions;
static PyObject *__pyx_kp_s_low_is_not_double;
static PyObject *__pyx_n_s_main;
static PyObject *__pyx_n_s_matype;
static PyObject *__pyx_n_s_maximum;
static PyObject *__pyx_n_s_maxperiod;
static PyObject *__pyx_n_s_minperiod;
static PyObject *__pyx_n_s_nan;
static PyObject *__pyx_n_s_nbdev;
static PyObject *__pyx_n_s_nbdevdn;
static PyObject *__pyx_n_s_nbdevup;
static PyObject *__pyx_kp_u_ndarray_is_not_C_contiguous;
static PyObject *__pyx_kp_u_ndarray_is_not_Fortran_contiguou;
static PyObject *__pyx_n_s_numpy;
static PyObject *__pyx_n_s_offsetonreverse;
static PyObject *__pyx_n_s_open;
static PyObject *__pyx_n_s_open_data;
static PyObject *__pyx_kp_s_open_has_wrong_dimensions;
static PyObject *__pyx_kp_s_open_is_not_double;
static PyObject *__pyx_n_s_outaroondown;
static PyObject *__pyx_n_s_outaroonup;
static PyObject *__pyx_n_s_outbegidx;
static PyObject *__pyx_n_s_outfama;
static PyObject *__pyx_n_s_outfastd;
static PyObject *__pyx_n_s_outfastk;
static PyObject *__pyx_n_s_outinphase;
static PyObject *__pyx_n_s_outinteger;
static PyObject *__pyx_n_s_outleadsine;
static PyObject *__pyx_n_s_outmacd;
static PyObject *__pyx_n_s_outmacdhist;
static PyObject *__pyx_n_s_outmacdsignal;
static PyObject *__pyx_n_s_outmama;
static PyObject *__pyx_n_s_outmax;
static PyObject *__pyx_n_s_outmaxidx;
static PyObject *__pyx_n_s_outmin;
static PyObject *__pyx_n_s_outminidx;
static PyObject *__pyx_n_s_outnbelement;
static PyObject *__pyx_n_s_outquadrature;
static PyObject *__pyx_n_s_outreal;
static PyObject *__pyx_n_s_outreallowerband;
static PyObject *__pyx_n_s_outrealmiddleband;
static PyObject *__pyx_n_s_outrealupperband;
static PyObject *__pyx_n_s_outsine;
static PyObject *__pyx_n_s_outslowd;
static PyObject *__pyx_n_s_outslowk;
static PyObject *__pyx_n_s_penetration;
static PyObject *__pyx_n_s_periods;
static PyObject *__pyx_n_s_periods_data;
static PyObject *__pyx_kp_s_periods_has_wrong_dimensions;
static PyObject *__pyx_kp_s_periods_is_not_double;
static PyObject *__pyx_n_s_range;
static PyObject *__pyx_n_s_real;
static PyObject *__pyx_n_s_real0;
static PyObject *__pyx_n_s_real0_data;
static PyObject *__pyx_kp_s_real0_has_wrong_dimensions;
static PyObject *__pyx_kp_s_real0_is_not_double;
static PyObject *__pyx_n_s_real1;
static PyObject *__pyx_n_s_real1_data;
static PyObject *__pyx_kp_s_real1_has_wrong_dimensions;
static PyObject *__pyx_kp_s_real1_is_not_double;
static PyObject *__pyx_n_s_real_data;
static PyObject *__pyx_kp_s_real_has_wrong_dimensions;
static PyObject *__pyx_kp_s_real_is_not_double;
static PyObject *__pyx_n_s_retCode;
static PyObject *__pyx_n_s_signalmatype;
static PyObject *__pyx_n_s_signalperiod;
static PyObject *__pyx_n_s_slowd_matype;
static PyObject *__pyx_n_s_slowd_period;
static PyObject *__pyx_n_s_slowk_matype;
static PyObject *__pyx_n_s_slowk_period;
static PyObject *__pyx_n_s_slowlimit;
static PyObject *__pyx_n_s_slowmatype;
static PyObject *__pyx_n_s_slowperiod;
static PyObject *__pyx_n_s_startvalue;
static PyObject *__pyx_n_s_talib_stream;
static PyObject *__pyx_n_s_test;
static PyObject *__pyx_n_s_timeperiod;
static PyObject *__pyx_n_s_timeperiod1;
static PyObject *__pyx_n_s_timeperiod2;
static PyObject *__pyx_n_s_timeperiod3;
static PyObject *__pyx_kp_u_unknown_dtype_code_in_numpy_pxd;
static PyObject *__pyx_n_s_val;
static PyObject *__pyx_n_s_vfactor;
static PyObject *__pyx_n_s_volume;
static PyObject *__pyx_n_s_volume_data;
static PyObject *__pyx_kp_s_volume_has_wrong_dimensions;
static PyObject *__pyx_kp_s_volume_is_not_double;
static PyObject *__pyx_pf_5talib_6stream_ACOS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_2AD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, PyArrayObject *__pyx_v_volume); /* proto */
static PyObject *__pyx_pf_5talib_6stream_4ADD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */
static PyObject *__pyx_pf_5talib_6stream_6ADOSC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, PyArrayObject *__pyx_v_volume, int __pyx_v_fastperiod, int __pyx_v_slowperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_8ADX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_10ADXR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_12APO(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_fastperiod, int __pyx_v_slowperiod, int __pyx_v_matype); /* proto */
static PyObject *__pyx_pf_5talib_6stream_14AROON(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_16AROONOSC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_18ASIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_20ATAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_22ATR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_24AVGPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_26BBANDS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdevup, double __pyx_v_nbdevdn, int __pyx_v_matype); /* proto */
static PyObject *__pyx_pf_5talib_6stream_28BETA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_30BOP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_32CCI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_34CDL2CROWS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_36CDL3BLACKCROWS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_38CDL3INSIDE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_40CDL3LINESTRIKE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_42CDL3OUTSIDE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_44CDL3STARSINSOUTH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_46CDL3WHITESOLDIERS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_48CDLABANDONEDBABY(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration); /* proto */
static PyObject *__pyx_pf_5talib_6stream_50CDLADVANCEBLOCK(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_52CDLBELTHOLD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_54CDLBREAKAWAY(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_56CDLCLOSINGMARUBOZU(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_58CDLCONCEALBABYSWALL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_60CDLCOUNTERATTACK(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_62CDLDARKCLOUDCOVER(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration); /* proto */
static PyObject *__pyx_pf_5talib_6stream_64CDLDOJI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_66CDLDOJISTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_68CDLDRAGONFLYDOJI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_70CDLENGULFING(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_72CDLEVENINGDOJISTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration); /* proto */
static PyObject *__pyx_pf_5talib_6stream_74CDLEVENINGSTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration); /* proto */
static PyObject *__pyx_pf_5talib_6stream_76CDLGAPSIDESIDEWHITE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_78CDLGRAVESTONEDOJI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_80CDLHAMMER(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_82CDLHANGINGMAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_84CDLHARAMI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_86CDLHARAMICROSS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_88CDLHIGHWAVE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_90CDLHIKKAKE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_92CDLHIKKAKEMOD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_94CDLHOMINGPIGEON(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_96CDLIDENTICAL3CROWS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_98CDLINNECK(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_100CDLINVERTEDHAMMER(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_102CDLKICKING(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_104CDLKICKINGBYLENGTH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_106CDLLADDERBOTTOM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_108CDLLONGLEGGEDDOJI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_110CDLLONGLINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_112CDLMARUBOZU(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_114CDLMATCHINGLOW(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_116CDLMATHOLD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration); /* proto */
static PyObject *__pyx_pf_5talib_6stream_118CDLMORNINGDOJISTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration); /* proto */
static PyObject *__pyx_pf_5talib_6stream_120CDLMORNINGSTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration); /* proto */
static PyObject *__pyx_pf_5talib_6stream_122CDLONNECK(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_124CDLPIERCING(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_126CDLRICKSHAWMAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_128CDLRISEFALL3METHODS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_130CDLSEPARATINGLINES(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_132CDLSHOOTINGSTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_134CDLSHORTLINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_136CDLSPINNINGTOP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_138CDLSTALLEDPATTERN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_140CDLSTICKSANDWICH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_142CDLTAKURI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_144CDLTASUKIGAP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_146CDLTHRUSTING(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_148CDLTRISTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_150CDLUNIQUE3RIVER(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_152CDLUPSIDEGAP2CROWS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_154CDLXSIDEGAP3METHODS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_156CEIL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_158CMO(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_160CORREL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_162COS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_164COSH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_166DEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_168DIV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */
static PyObject *__pyx_pf_5talib_6stream_170DX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_172EMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_174EXP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_176FLOOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_178HT_DCPERIOD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_180HT_DCPHASE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_182HT_PHASOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_184HT_SINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_186HT_TRENDLINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_188HT_TRENDMODE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_190KAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_192LINEARREG(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_194LINEARREG_ANGLE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_196LINEARREG_INTERCEPT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_198LINEARREG_SLOPE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_200LN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_202LOG10(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_204MA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, int __pyx_v_matype); /* proto */
static PyObject *__pyx_pf_5talib_6stream_206MACD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_fastperiod, int __pyx_v_slowperiod, int __pyx_v_signalperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_208MACDEXT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_fastperiod, int __pyx_v_fastmatype, int __pyx_v_slowperiod, int __pyx_v_slowmatype, int __pyx_v_signalperiod, int __pyx_v_signalmatype); /* proto */
static PyObject *__pyx_pf_5talib_6stream_210MACDFIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_signalperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_212MAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, double __pyx_v_fastlimit, double __pyx_v_slowlimit); /* proto */
static PyObject *__pyx_pf_5talib_6stream_214MAVP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, PyArrayObject *__pyx_v_periods, int __pyx_v_minperiod, int __pyx_v_maxperiod, int __pyx_v_matype); /* proto */
static PyObject *__pyx_pf_5talib_6stream_216MAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_218MAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_220MEDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low); /* proto */
static PyObject *__pyx_pf_5talib_6stream_222MFI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, PyArrayObject *__pyx_v_volume, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_224MIDPOINT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_226MIDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_228MIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_230MININDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_232MINMAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_234MINMAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_236MINUS_DI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_238MINUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_240MOM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_242MULT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */
static PyObject *__pyx_pf_5talib_6stream_244NATR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_246OBV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, PyArrayObject *__pyx_v_volume); /* proto */
static PyObject *__pyx_pf_5talib_6stream_248PLUS_DI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_250PLUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_252PPO(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_fastperiod, int __pyx_v_slowperiod, int __pyx_v_matype); /* proto */
static PyObject *__pyx_pf_5talib_6stream_254ROC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_256ROCP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_258ROCR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_260ROCR100(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_262RSI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_264SAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, double __pyx_v_acceleration, double __pyx_v_maximum); /* proto */
static PyObject *__pyx_pf_5talib_6stream_266SAREXT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, double __pyx_v_startvalue, double __pyx_v_offsetonreverse, double __pyx_v_accelerationinitlong, double __pyx_v_accelerationlong, double __pyx_v_accelerationmaxlong, double __pyx_v_accelerationinitshort, double __pyx_v_accelerationshort, double __pyx_v_accelerationmaxshort); /* proto */
static PyObject *__pyx_pf_5talib_6stream_268SIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_270SINH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_272SMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_274SQRT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_276STDDEV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev); /* proto */
static PyObject *__pyx_pf_5talib_6stream_278STOCH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_fastk_period, int __pyx_v_slowk_period, int __pyx_v_slowk_matype, int __pyx_v_slowd_period, int __pyx_v_slowd_matype); /* proto */
static PyObject *__pyx_pf_5talib_6stream_280STOCHF(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_fastk_period, int __pyx_v_fastd_period, int __pyx_v_fastd_matype); /* proto */
static PyObject *__pyx_pf_5talib_6stream_282STOCHRSI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, int __pyx_v_fastk_period, int __pyx_v_fastd_period, int __pyx_v_fastd_matype); /* proto */
static PyObject *__pyx_pf_5talib_6stream_284SUB(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */
static PyObject *__pyx_pf_5talib_6stream_286SUM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_288T3(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_vfactor); /* proto */
static PyObject *__pyx_pf_5talib_6stream_290TAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_292TANH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */
static PyObject *__pyx_pf_5talib_6stream_294TEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_296TRANGE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_298TRIMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_300TRIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_302TSF(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_304TYPPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_306ULTOSC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod1, int __pyx_v_timeperiod2, int __pyx_v_timeperiod3); /* proto */
static PyObject *__pyx_pf_5talib_6stream_308VAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev); /* proto */
static PyObject *__pyx_pf_5talib_6stream_310WCLPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */
static PyObject *__pyx_pf_5talib_6stream_312WILLR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod); /* proto */
static PyObject *__pyx_pf_5talib_6stream_314WMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */
static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /* proto */
static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info); /* proto */
static PyObject *__pyx_tuple_;
static PyObject *__pyx_tuple__2;
static PyObject *__pyx_tuple__3;
static PyObject *__pyx_tuple__4;
static PyObject *__pyx_tuple__5;
static PyObject *__pyx_tuple__6;
static PyObject *__pyx_tuple__7;
static PyObject *__pyx_tuple__8;
static PyObject *__pyx_tuple__9;
static PyObject *__pyx_tuple__10;
static PyObject *__pyx_tuple__11;
static PyObject *__pyx_tuple__12;
static PyObject *__pyx_tuple__13;
static PyObject *__pyx_tuple__14;
static PyObject *__pyx_tuple__15;
static PyObject *__pyx_tuple__16;
static PyObject *__pyx_tuple__17;
static PyObject *__pyx_tuple__18;
static PyObject *__pyx_tuple__19;
static PyObject *__pyx_tuple__20;
static PyObject *__pyx_tuple__21;
static PyObject *__pyx_tuple__22;
static PyObject *__pyx_tuple__23;
static PyObject *__pyx_tuple__24;
static PyObject *__pyx_tuple__25;
static PyObject *__pyx_tuple__26;
static PyObject *__pyx_tuple__27;
static PyObject *__pyx_tuple__28;
static PyObject *__pyx_tuple__29;
static PyObject *__pyx_tuple__30;
static PyObject *__pyx_tuple__31;
static PyObject *__pyx_tuple__32;
static PyObject *__pyx_tuple__33;
static PyObject *__pyx_tuple__34;
static PyObject *__pyx_tuple__35;
static PyObject *__pyx_tuple__36;
static PyObject *__pyx_tuple__37;
static PyObject *__pyx_tuple__38;
static PyObject *__pyx_tuple__39;
static PyObject *__pyx_tuple__40;
static PyObject *__pyx_tuple__41;
static PyObject *__pyx_tuple__42;
static PyObject *__pyx_tuple__43;
static PyObject *__pyx_tuple__44;
static PyObject *__pyx_tuple__45;
static PyObject *__pyx_tuple__46;
static PyObject *__pyx_tuple__47;
static PyObject *__pyx_tuple__48;
static PyObject *__pyx_tuple__49;
static PyObject *__pyx_tuple__50;
static PyObject *__pyx_tuple__51;
static PyObject *__pyx_tuple__52;
static PyObject *__pyx_tuple__53;
static PyObject *__pyx_tuple__54;
static PyObject *__pyx_tuple__55;
static PyObject *__pyx_tuple__56;
static PyObject *__pyx_tuple__57;
static PyObject *__pyx_tuple__58;
static PyObject *__pyx_tuple__59;
static PyObject *__pyx_tuple__60;
static PyObject *__pyx_tuple__61;
static PyObject *__pyx_tuple__62;
static PyObject *__pyx_tuple__63;
static PyObject *__pyx_tuple__64;
static PyObject *__pyx_tuple__65;
static PyObject *__pyx_tuple__66;
static PyObject *__pyx_tuple__67;
static PyObject *__pyx_tuple__68;
static PyObject *__pyx_tuple__69;
static PyObject *__pyx_tuple__70;
static PyObject *__pyx_tuple__71;
static PyObject *__pyx_tuple__72;
static PyObject *__pyx_tuple__73;
static PyObject *__pyx_tuple__74;
static PyObject *__pyx_tuple__75;
static PyObject *__pyx_tuple__76;
static PyObject *__pyx_tuple__77;
static PyObject *__pyx_tuple__78;
static PyObject *__pyx_tuple__79;
static PyObject *__pyx_tuple__80;
static PyObject *__pyx_tuple__81;
static PyObject *__pyx_tuple__82;
static PyObject *__pyx_tuple__83;
static PyObject *__pyx_tuple__84;
static PyObject *__pyx_tuple__85;
static PyObject *__pyx_tuple__86;
static PyObject *__pyx_tuple__87;
static PyObject *__pyx_tuple__88;
static PyObject *__pyx_tuple__89;
static PyObject *__pyx_tuple__90;
static PyObject *__pyx_tuple__91;
static PyObject *__pyx_tuple__92;
static PyObject *__pyx_tuple__93;
static PyObject *__pyx_tuple__94;
static PyObject *__pyx_tuple__95;
static PyObject *__pyx_tuple__96;
static PyObject *__pyx_tuple__97;
static PyObject *__pyx_tuple__98;
static PyObject *__pyx_tuple__99;
static PyObject *__pyx_tuple__100;
static PyObject *__pyx_tuple__101;
static PyObject *__pyx_tuple__102;
static PyObject *__pyx_tuple__103;
static PyObject *__pyx_tuple__104;
static PyObject *__pyx_tuple__105;
static PyObject *__pyx_tuple__106;
static PyObject *__pyx_tuple__107;
static PyObject *__pyx_tuple__108;
static PyObject *__pyx_tuple__109;
static PyObject *__pyx_tuple__110;
static PyObject *__pyx_tuple__111;
static PyObject *__pyx_tuple__112;
static PyObject *__pyx_tuple__113;
static PyObject *__pyx_tuple__114;
static PyObject *__pyx_tuple__115;
static PyObject *__pyx_tuple__116;
static PyObject *__pyx_tuple__117;
static PyObject *__pyx_tuple__118;
static PyObject *__pyx_tuple__119;
static PyObject *__pyx_tuple__120;
static PyObject *__pyx_tuple__121;
static PyObject *__pyx_tuple__122;
static PyObject *__pyx_tuple__123;
static PyObject *__pyx_tuple__124;
static PyObject *__pyx_tuple__125;
static PyObject *__pyx_tuple__126;
static PyObject *__pyx_tuple__127;
static PyObject *__pyx_tuple__128;
static PyObject *__pyx_tuple__129;
static PyObject *__pyx_tuple__130;
static PyObject *__pyx_tuple__131;
static PyObject *__pyx_tuple__132;
static PyObject *__pyx_tuple__133;
static PyObject *__pyx_tuple__134;
static PyObject *__pyx_tuple__135;
static PyObject *__pyx_tuple__136;
static PyObject *__pyx_tuple__137;
static PyObject *__pyx_tuple__138;
static PyObject *__pyx_tuple__139;
static PyObject *__pyx_tuple__140;
static PyObject *__pyx_tuple__141;
static PyObject *__pyx_tuple__142;
static PyObject *__pyx_tuple__143;
static PyObject *__pyx_tuple__144;
static PyObject *__pyx_tuple__145;
static PyObject *__pyx_tuple__146;
static PyObject *__pyx_tuple__147;
static PyObject *__pyx_tuple__148;
static PyObject *__pyx_tuple__149;
static PyObject *__pyx_tuple__150;
static PyObject *__pyx_tuple__151;
static PyObject *__pyx_tuple__152;
static PyObject *__pyx_tuple__153;
static PyObject *__pyx_tuple__154;
static PyObject *__pyx_tuple__155;
static PyObject *__pyx_tuple__156;
static PyObject *__pyx_tuple__157;
static PyObject *__pyx_tuple__158;
static PyObject *__pyx_tuple__159;
static PyObject *__pyx_tuple__160;
static PyObject *__pyx_tuple__161;
static PyObject *__pyx_tuple__162;
static PyObject *__pyx_tuple__163;
static PyObject *__pyx_tuple__164;
static PyObject *__pyx_tuple__165;
static PyObject *__pyx_tuple__166;
static PyObject *__pyx_tuple__167;
static PyObject *__pyx_tuple__168;
static PyObject *__pyx_tuple__169;
static PyObject *__pyx_tuple__170;
static PyObject *__pyx_tuple__171;
static PyObject *__pyx_tuple__172;
static PyObject *__pyx_tuple__173;
static PyObject *__pyx_tuple__174;
static PyObject *__pyx_tuple__175;
static PyObject *__pyx_tuple__176;
static PyObject *__pyx_tuple__177;
static PyObject *__pyx_tuple__178;
static PyObject *__pyx_tuple__179;
static PyObject *__pyx_tuple__180;
static PyObject *__pyx_tuple__181;
static PyObject *__pyx_tuple__182;
static PyObject *__pyx_tuple__183;
static PyObject *__pyx_tuple__184;
static PyObject *__pyx_tuple__185;
static PyObject *__pyx_tuple__186;
static PyObject *__pyx_tuple__187;
static PyObject *__pyx_tuple__188;
static PyObject *__pyx_tuple__189;
static PyObject *__pyx_tuple__190;
static PyObject *__pyx_tuple__191;
static PyObject *__pyx_tuple__192;
static PyObject *__pyx_tuple__193;
static PyObject *__pyx_tuple__194;
static PyObject *__pyx_tuple__195;
static PyObject *__pyx_tuple__196;
static PyObject *__pyx_tuple__197;
static PyObject *__pyx_tuple__198;
static PyObject *__pyx_tuple__199;
static PyObject *__pyx_tuple__200;
static PyObject *__pyx_tuple__201;
static PyObject *__pyx_tuple__202;
static PyObject *__pyx_tuple__203;
static PyObject *__pyx_tuple__204;
static PyObject *__pyx_tuple__205;
static PyObject *__pyx_tuple__206;
static PyObject *__pyx_tuple__207;
static PyObject *__pyx_tuple__208;
static PyObject *__pyx_tuple__209;
static PyObject *__pyx_tuple__210;
static PyObject *__pyx_tuple__211;
static PyObject *__pyx_tuple__212;
static PyObject *__pyx_tuple__213;
static PyObject *__pyx_tuple__214;
static PyObject *__pyx_tuple__215;
static PyObject *__pyx_tuple__216;
static PyObject *__pyx_tuple__217;
static PyObject *__pyx_tuple__218;
static PyObject *__pyx_tuple__219;
static PyObject *__pyx_tuple__220;
static PyObject *__pyx_tuple__221;
static PyObject *__pyx_tuple__222;
static PyObject *__pyx_tuple__223;
static PyObject *__pyx_tuple__224;
static PyObject *__pyx_tuple__225;
static PyObject *__pyx_tuple__226;
static PyObject *__pyx_tuple__227;
static PyObject *__pyx_tuple__228;
static PyObject *__pyx_tuple__229;
static PyObject *__pyx_tuple__230;
static PyObject *__pyx_tuple__231;
static PyObject *__pyx_tuple__232;
static PyObject *__pyx_tuple__233;
static PyObject *__pyx_tuple__234;
static PyObject *__pyx_tuple__235;
static PyObject *__pyx_tuple__236;
static PyObject *__pyx_tuple__237;
static PyObject *__pyx_tuple__238;
static PyObject *__pyx_tuple__239;
static PyObject *__pyx_tuple__240;
static PyObject *__pyx_tuple__241;
static PyObject *__pyx_tuple__242;
static PyObject *__pyx_tuple__243;
static PyObject *__pyx_tuple__244;
static PyObject *__pyx_tuple__245;
static PyObject *__pyx_tuple__246;
static PyObject *__pyx_tuple__247;
static PyObject *__pyx_tuple__248;
static PyObject *__pyx_tuple__249;
static PyObject *__pyx_tuple__250;
static PyObject *__pyx_tuple__251;
static PyObject *__pyx_tuple__252;
static PyObject *__pyx_tuple__253;
static PyObject *__pyx_tuple__254;
static PyObject *__pyx_tuple__255;
static PyObject *__pyx_tuple__256;
static PyObject *__pyx_tuple__257;
static PyObject *__pyx_tuple__258;
static PyObject *__pyx_tuple__259;
static PyObject *__pyx_tuple__260;
static PyObject *__pyx_tuple__261;
static PyObject *__pyx_tuple__262;
static PyObject *__pyx_tuple__263;
static PyObject *__pyx_tuple__264;
static PyObject *__pyx_tuple__265;
static PyObject *__pyx_tuple__266;
static PyObject *__pyx_tuple__267;
static PyObject *__pyx_tuple__268;
static PyObject *__pyx_tuple__269;
static PyObject *__pyx_tuple__270;
static PyObject *__pyx_tuple__271;
static PyObject *__pyx_tuple__272;
static PyObject *__pyx_tuple__273;
static PyObject *__pyx_tuple__274;
static PyObject *__pyx_tuple__275;
static PyObject *__pyx_tuple__276;
static PyObject *__pyx_tuple__277;
static PyObject *__pyx_tuple__278;
static PyObject *__pyx_tuple__279;
static PyObject *__pyx_tuple__280;
static PyObject *__pyx_tuple__281;
static PyObject *__pyx_tuple__282;
static PyObject *__pyx_tuple__283;
static PyObject *__pyx_tuple__284;
static PyObject *__pyx_tuple__285;
static PyObject *__pyx_tuple__286;
static PyObject *__pyx_tuple__287;
static PyObject *__pyx_tuple__288;
static PyObject *__pyx_tuple__289;
static PyObject *__pyx_tuple__290;
static PyObject *__pyx_tuple__291;
static PyObject *__pyx_tuple__292;
static PyObject *__pyx_tuple__293;
static PyObject *__pyx_tuple__294;
static PyObject *__pyx_tuple__295;
static PyObject *__pyx_tuple__296;
static PyObject *__pyx_tuple__297;
static PyObject *__pyx_tuple__298;
static PyObject *__pyx_tuple__299;
static PyObject *__pyx_tuple__300;
static PyObject *__pyx_tuple__301;
static PyObject *__pyx_tuple__302;
static PyObject *__pyx_tuple__303;
static PyObject *__pyx_tuple__304;
static PyObject *__pyx_tuple__305;
static PyObject *__pyx_tuple__306;
static PyObject *__pyx_tuple__307;
static PyObject *__pyx_tuple__308;
static PyObject *__pyx_tuple__309;
static PyObject *__pyx_tuple__310;
static PyObject *__pyx_tuple__311;
static PyObject *__pyx_tuple__312;
static PyObject *__pyx_tuple__313;
static PyObject *__pyx_tuple__314;
static PyObject *__pyx_tuple__315;
static PyObject *__pyx_tuple__316;
static PyObject *__pyx_tuple__317;
static PyObject *__pyx_tuple__318;
static PyObject *__pyx_tuple__319;
static PyObject *__pyx_tuple__320;
static PyObject *__pyx_tuple__321;
static PyObject *__pyx_tuple__322;
static PyObject *__pyx_tuple__323;
static PyObject *__pyx_tuple__324;
static PyObject *__pyx_tuple__325;
static PyObject *__pyx_tuple__326;
static PyObject *__pyx_tuple__327;
static PyObject *__pyx_tuple__328;
static PyObject *__pyx_tuple__329;
static PyObject *__pyx_tuple__330;
static PyObject *__pyx_tuple__331;
static PyObject *__pyx_tuple__332;
static PyObject *__pyx_tuple__333;
static PyObject *__pyx_tuple__334;
static PyObject *__pyx_tuple__335;
static PyObject *__pyx_tuple__336;
static PyObject *__pyx_tuple__337;
static PyObject *__pyx_tuple__338;
static PyObject *__pyx_tuple__339;
static PyObject *__pyx_tuple__340;
static PyObject *__pyx_tuple__341;
static PyObject *__pyx_tuple__342;
static PyObject *__pyx_tuple__343;
static PyObject *__pyx_tuple__344;
static PyObject *__pyx_tuple__345;
static PyObject *__pyx_tuple__346;
static PyObject *__pyx_tuple__347;
static PyObject *__pyx_tuple__348;
static PyObject *__pyx_tuple__349;
static PyObject *__pyx_tuple__350;
static PyObject *__pyx_tuple__351;
static PyObject *__pyx_tuple__352;
static PyObject *__pyx_tuple__353;
static PyObject *__pyx_tuple__354;
static PyObject *__pyx_tuple__355;
static PyObject *__pyx_tuple__356;
static PyObject *__pyx_tuple__357;
static PyObject *__pyx_tuple__358;
static PyObject *__pyx_tuple__359;
static PyObject *__pyx_tuple__360;
static PyObject *__pyx_tuple__361;
static PyObject *__pyx_tuple__362;
static PyObject *__pyx_tuple__363;
static PyObject *__pyx_tuple__364;
static PyObject *__pyx_tuple__365;
static PyObject *__pyx_tuple__366;
static PyObject *__pyx_tuple__367;
static PyObject *__pyx_tuple__368;
static PyObject *__pyx_tuple__369;
static PyObject *__pyx_tuple__370;
static PyObject *__pyx_tuple__371;
static PyObject *__pyx_tuple__372;
static PyObject *__pyx_tuple__373;
static PyObject *__pyx_tuple__374;
static PyObject *__pyx_tuple__375;
static PyObject *__pyx_tuple__376;
static PyObject *__pyx_tuple__377;
static PyObject *__pyx_tuple__378;
static PyObject *__pyx_tuple__379;
static PyObject *__pyx_tuple__380;
static PyObject *__pyx_tuple__381;
static PyObject *__pyx_tuple__382;
static PyObject *__pyx_tuple__383;
static PyObject *__pyx_tuple__384;
static PyObject *__pyx_tuple__385;
static PyObject *__pyx_tuple__386;
static PyObject *__pyx_tuple__387;
static PyObject *__pyx_tuple__388;
static PyObject *__pyx_tuple__389;
static PyObject *__pyx_tuple__390;
static PyObject *__pyx_tuple__391;
static PyObject *__pyx_tuple__392;
static PyObject *__pyx_tuple__393;
static PyObject *__pyx_tuple__394;
static PyObject *__pyx_tuple__395;
static PyObject *__pyx_tuple__396;
static PyObject *__pyx_tuple__397;
static PyObject *__pyx_tuple__398;
static PyObject *__pyx_tuple__399;
static PyObject *__pyx_tuple__400;
static PyObject *__pyx_tuple__401;
static PyObject *__pyx_tuple__402;
static PyObject *__pyx_tuple__403;
static PyObject *__pyx_tuple__404;
static PyObject *__pyx_tuple__405;
static PyObject *__pyx_tuple__406;
static PyObject *__pyx_tuple__407;
static PyObject *__pyx_tuple__408;
static PyObject *__pyx_tuple__409;
static PyObject *__pyx_tuple__410;
static PyObject *__pyx_tuple__411;
static PyObject *__pyx_tuple__412;
static PyObject *__pyx_tuple__413;
static PyObject *__pyx_tuple__414;
static PyObject *__pyx_tuple__415;
static PyObject *__pyx_tuple__416;
static PyObject *__pyx_tuple__417;
static PyObject *__pyx_tuple__418;
static PyObject *__pyx_tuple__419;
static PyObject *__pyx_tuple__420;
static PyObject *__pyx_tuple__421;
static PyObject *__pyx_tuple__422;
static PyObject *__pyx_tuple__423;
static PyObject *__pyx_tuple__424;
static PyObject *__pyx_tuple__425;
static PyObject *__pyx_tuple__426;
static PyObject *__pyx_tuple__427;
static PyObject *__pyx_tuple__428;
static PyObject *__pyx_tuple__429;
static PyObject *__pyx_tuple__430;
static PyObject *__pyx_tuple__431;
static PyObject *__pyx_tuple__432;
static PyObject *__pyx_tuple__433;
static PyObject *__pyx_tuple__434;
static PyObject *__pyx_tuple__435;
static PyObject *__pyx_tuple__436;
static PyObject *__pyx_tuple__437;
static PyObject *__pyx_tuple__438;
static PyObject *__pyx_tuple__439;
static PyObject *__pyx_tuple__440;
static PyObject *__pyx_tuple__441;
static PyObject *__pyx_tuple__442;
static PyObject *__pyx_tuple__443;
static PyObject *__pyx_tuple__444;
static PyObject *__pyx_tuple__445;
static PyObject *__pyx_tuple__446;
static PyObject *__pyx_tuple__447;
static PyObject *__pyx_tuple__448;
static PyObject *__pyx_tuple__449;
static PyObject *__pyx_tuple__450;
static PyObject *__pyx_tuple__451;
static PyObject *__pyx_tuple__452;
static PyObject *__pyx_tuple__453;
static PyObject *__pyx_tuple__454;
static PyObject *__pyx_tuple__455;
static PyObject *__pyx_tuple__456;
static PyObject *__pyx_tuple__457;
static PyObject *__pyx_tuple__458;
static PyObject *__pyx_tuple__459;
static PyObject *__pyx_tuple__460;
static PyObject *__pyx_tuple__461;
static PyObject *__pyx_tuple__462;
static PyObject *__pyx_tuple__463;
static PyObject *__pyx_tuple__464;
static PyObject *__pyx_tuple__465;
static PyObject *__pyx_tuple__466;
static PyObject *__pyx_tuple__467;
static PyObject *__pyx_tuple__468;
static PyObject *__pyx_tuple__469;
static PyObject *__pyx_tuple__470;
static PyObject *__pyx_tuple__471;
static PyObject *__pyx_tuple__472;
static PyObject *__pyx_tuple__473;
static PyObject *__pyx_tuple__474;
static PyObject *__pyx_tuple__475;
static PyObject *__pyx_tuple__476;
static PyObject *__pyx_tuple__477;
static PyObject *__pyx_tuple__478;
static PyObject *__pyx_tuple__479;
static PyObject *__pyx_tuple__480;
static PyObject *__pyx_tuple__481;
static PyObject *__pyx_tuple__482;
static PyObject *__pyx_tuple__483;
static PyObject *__pyx_tuple__484;
static PyObject *__pyx_tuple__485;
static PyObject *__pyx_tuple__486;
static PyObject *__pyx_tuple__487;
static PyObject *__pyx_tuple__488;
static PyObject *__pyx_tuple__489;
static PyObject *__pyx_tuple__490;
static PyObject *__pyx_tuple__491;
static PyObject *__pyx_tuple__492;
static PyObject *__pyx_tuple__493;
static PyObject *__pyx_tuple__494;
static PyObject *__pyx_tuple__495;
static PyObject *__pyx_tuple__496;
static PyObject *__pyx_tuple__497;
static PyObject *__pyx_tuple__498;
static PyObject *__pyx_tuple__499;
static PyObject *__pyx_tuple__500;
static PyObject *__pyx_tuple__501;
static PyObject *__pyx_tuple__502;
static PyObject *__pyx_tuple__503;
static PyObject *__pyx_tuple__504;
static PyObject *__pyx_tuple__505;
static PyObject *__pyx_tuple__506;
static PyObject *__pyx_tuple__507;
static PyObject *__pyx_tuple__508;
static PyObject *__pyx_tuple__509;
static PyObject *__pyx_tuple__510;
static PyObject *__pyx_tuple__511;
static PyObject *__pyx_tuple__512;
static PyObject *__pyx_tuple__513;
static PyObject *__pyx_tuple__514;
static PyObject *__pyx_tuple__515;
static PyObject *__pyx_tuple__516;
static PyObject *__pyx_tuple__517;
static PyObject *__pyx_tuple__518;
static PyObject *__pyx_tuple__519;
static PyObject *__pyx_tuple__520;
static PyObject *__pyx_tuple__521;
static PyObject *__pyx_tuple__522;
static PyObject *__pyx_tuple__523;
static PyObject *__pyx_tuple__524;
static PyObject *__pyx_tuple__525;
static PyObject *__pyx_tuple__526;
static PyObject *__pyx_tuple__527;
static PyObject *__pyx_tuple__528;
static PyObject *__pyx_tuple__529;
static PyObject *__pyx_tuple__530;
static PyObject *__pyx_tuple__531;
static PyObject *__pyx_tuple__532;
static PyObject *__pyx_tuple__533;
static PyObject *__pyx_tuple__534;
static PyObject *__pyx_tuple__535;
static PyObject *__pyx_tuple__536;
static PyObject *__pyx_tuple__537;
static PyObject *__pyx_tuple__538;
static PyObject *__pyx_tuple__539;
static PyObject *__pyx_tuple__540;
static PyObject *__pyx_tuple__541;
static PyObject *__pyx_tuple__542;
static PyObject *__pyx_tuple__543;
static PyObject *__pyx_tuple__544;
static PyObject *__pyx_tuple__545;
static PyObject *__pyx_tuple__546;
static PyObject *__pyx_tuple__547;
static PyObject *__pyx_tuple__548;
static PyObject *__pyx_tuple__549;
static PyObject *__pyx_tuple__550;
static PyObject *__pyx_tuple__551;
static PyObject *__pyx_tuple__552;
static PyObject *__pyx_tuple__553;
static PyObject *__pyx_tuple__554;
static PyObject *__pyx_tuple__555;
static PyObject *__pyx_tuple__556;
static PyObject *__pyx_tuple__557;
static PyObject *__pyx_tuple__558;
static PyObject *__pyx_tuple__559;
static PyObject *__pyx_tuple__560;
static PyObject *__pyx_tuple__561;
static PyObject *__pyx_tuple__562;
static PyObject *__pyx_tuple__563;
static PyObject *__pyx_tuple__564;
static PyObject *__pyx_tuple__565;
static PyObject *__pyx_tuple__566;
static PyObject *__pyx_tuple__567;
static PyObject *__pyx_tuple__568;
static PyObject *__pyx_tuple__569;
static PyObject *__pyx_tuple__570;
static PyObject *__pyx_tuple__571;
static PyObject *__pyx_tuple__572;
static PyObject *__pyx_tuple__573;
static PyObject *__pyx_tuple__574;
static PyObject *__pyx_tuple__575;
static PyObject *__pyx_tuple__576;
static PyObject *__pyx_tuple__577;
static PyObject *__pyx_tuple__578;
static PyObject *__pyx_tuple__579;
static PyObject *__pyx_tuple__580;
static PyObject *__pyx_tuple__581;
static PyObject *__pyx_tuple__582;
static PyObject *__pyx_tuple__583;
static PyObject *__pyx_tuple__584;
static PyObject *__pyx_tuple__585;
static PyObject *__pyx_tuple__586;
static PyObject *__pyx_tuple__587;
static PyObject *__pyx_tuple__588;
static PyObject *__pyx_tuple__589;
static PyObject *__pyx_tuple__590;
static PyObject *__pyx_tuple__591;
static PyObject *__pyx_tuple__592;
static PyObject *__pyx_tuple__593;
static PyObject *__pyx_tuple__594;
static PyObject *__pyx_tuple__595;
static PyObject *__pyx_tuple__596;
static PyObject *__pyx_tuple__597;
static PyObject *__pyx_tuple__598;
static PyObject *__pyx_tuple__599;
static PyObject *__pyx_tuple__600;
static PyObject *__pyx_tuple__601;
static PyObject *__pyx_tuple__602;
static PyObject *__pyx_tuple__603;
static PyObject *__pyx_tuple__604;
static PyObject *__pyx_tuple__605;
static PyObject *__pyx_tuple__606;
static PyObject *__pyx_tuple__607;
static PyObject *__pyx_tuple__608;
static PyObject *__pyx_tuple__609;
static PyObject *__pyx_tuple__610;
static PyObject *__pyx_tuple__611;
static PyObject *__pyx_tuple__612;
static PyObject *__pyx_tuple__613;
static PyObject *__pyx_tuple__614;
static PyObject *__pyx_tuple__615;
static PyObject *__pyx_tuple__616;
static PyObject *__pyx_tuple__617;
static PyObject *__pyx_tuple__618;
static PyObject *__pyx_tuple__619;
static PyObject *__pyx_tuple__620;
static PyObject *__pyx_tuple__621;
static PyObject *__pyx_tuple__622;
static PyObject *__pyx_tuple__623;
static PyObject *__pyx_tuple__624;
static PyObject *__pyx_tuple__625;
static PyObject *__pyx_tuple__626;
static PyObject *__pyx_tuple__627;
static PyObject *__pyx_tuple__628;
static PyObject *__pyx_tuple__629;
static PyObject *__pyx_tuple__630;
static PyObject *__pyx_tuple__631;
static PyObject *__pyx_tuple__632;
static PyObject *__pyx_tuple__633;
static PyObject *__pyx_tuple__634;
static PyObject *__pyx_tuple__635;
static PyObject *__pyx_tuple__636;
static PyObject *__pyx_tuple__637;
static PyObject *__pyx_tuple__638;
static PyObject *__pyx_tuple__639;
static PyObject *__pyx_tuple__640;
static PyObject *__pyx_tuple__641;
static PyObject *__pyx_tuple__642;
static PyObject *__pyx_tuple__643;
static PyObject *__pyx_tuple__644;
static PyObject *__pyx_tuple__645;
static PyObject *__pyx_tuple__646;
static PyObject *__pyx_tuple__647;
static PyObject *__pyx_tuple__648;
static PyObject *__pyx_tuple__649;
static PyObject *__pyx_tuple__650;
static PyObject *__pyx_tuple__651;
static PyObject *__pyx_tuple__652;
static PyObject *__pyx_tuple__653;
static PyObject *__pyx_tuple__654;
static PyObject *__pyx_tuple__655;
static PyObject *__pyx_tuple__656;
static PyObject *__pyx_tuple__657;
static PyObject *__pyx_tuple__658;
static PyObject *__pyx_tuple__659;
static PyObject *__pyx_tuple__660;
static PyObject *__pyx_tuple__661;
static PyObject *__pyx_tuple__662;
static PyObject *__pyx_tuple__663;
static PyObject *__pyx_tuple__664;
static PyObject *__pyx_tuple__665;
static PyObject *__pyx_tuple__666;
static PyObject *__pyx_tuple__667;
static PyObject *__pyx_tuple__668;
static PyObject *__pyx_tuple__669;
static PyObject *__pyx_tuple__670;
static PyObject *__pyx_tuple__671;
static PyObject *__pyx_tuple__672;
static PyObject *__pyx_tuple__673;
static PyObject *__pyx_tuple__674;
static PyObject *__pyx_tuple__675;
static PyObject *__pyx_tuple__676;
static PyObject *__pyx_tuple__677;
static PyObject *__pyx_tuple__678;
static PyObject *__pyx_tuple__679;
static PyObject *__pyx_tuple__680;
static PyObject *__pyx_tuple__681;
static PyObject *__pyx_tuple__682;
static PyObject *__pyx_tuple__683;
static PyObject *__pyx_tuple__684;
static PyObject *__pyx_tuple__685;
static PyObject *__pyx_tuple__686;
static PyObject *__pyx_tuple__687;
static PyObject *__pyx_tuple__688;
static PyObject *__pyx_tuple__689;
static PyObject *__pyx_tuple__690;
static PyObject *__pyx_tuple__691;
static PyObject *__pyx_tuple__692;
static PyObject *__pyx_tuple__693;
static PyObject *__pyx_tuple__694;
static PyObject *__pyx_tuple__695;
static PyObject *__pyx_tuple__696;
static PyObject *__pyx_tuple__697;
static PyObject *__pyx_tuple__698;
static PyObject *__pyx_tuple__699;
static PyObject *__pyx_tuple__700;
static PyObject *__pyx_tuple__701;
static PyObject *__pyx_tuple__702;
static PyObject *__pyx_tuple__703;
static PyObject *__pyx_tuple__704;
static PyObject *__pyx_tuple__705;
static PyObject *__pyx_tuple__706;
static PyObject *__pyx_tuple__707;
static PyObject *__pyx_tuple__708;
static PyObject *__pyx_tuple__709;
static PyObject *__pyx_tuple__710;
static PyObject *__pyx_tuple__711;
static PyObject *__pyx_tuple__712;
static PyObject *__pyx_tuple__713;
static PyObject *__pyx_tuple__714;
static PyObject *__pyx_tuple__715;
static PyObject *__pyx_tuple__716;
static PyObject *__pyx_tuple__717;
static PyObject *__pyx_tuple__718;
static PyObject *__pyx_tuple__719;
static PyObject *__pyx_tuple__720;
static PyObject *__pyx_tuple__721;
static PyObject *__pyx_tuple__722;
static PyObject *__pyx_tuple__723;
static PyObject *__pyx_tuple__724;
static PyObject *__pyx_tuple__725;
static PyObject *__pyx_tuple__726;
static PyObject *__pyx_tuple__727;
static PyObject *__pyx_tuple__728;
static PyObject *__pyx_tuple__729;
static PyObject *__pyx_tuple__730;
static PyObject *__pyx_tuple__731;
static PyObject *__pyx_tuple__732;
static PyObject *__pyx_tuple__733;
static PyObject *__pyx_tuple__734;
static PyObject *__pyx_tuple__735;
static PyObject *__pyx_tuple__736;
static PyObject *__pyx_tuple__737;
static PyObject *__pyx_tuple__738;
static PyObject *__pyx_tuple__739;
static PyObject *__pyx_tuple__740;
static PyObject *__pyx_tuple__741;
static PyObject *__pyx_tuple__742;
static PyObject *__pyx_tuple__743;
static PyObject *__pyx_tuple__744;
static PyObject *__pyx_tuple__745;
static PyObject *__pyx_tuple__746;
static PyObject *__pyx_tuple__747;
static PyObject *__pyx_tuple__748;
static PyObject *__pyx_tuple__749;
static PyObject *__pyx_tuple__750;
static PyObject *__pyx_tuple__751;
static PyObject *__pyx_tuple__752;
static PyObject *__pyx_tuple__753;
static PyObject *__pyx_tuple__754;
static PyObject *__pyx_tuple__755;
static PyObject *__pyx_tuple__756;
static PyObject *__pyx_tuple__757;
static PyObject *__pyx_tuple__758;
static PyObject *__pyx_tuple__759;
static PyObject *__pyx_tuple__760;
static PyObject *__pyx_tuple__761;
static PyObject *__pyx_tuple__762;
static PyObject *__pyx_tuple__763;
static PyObject *__pyx_tuple__764;
static PyObject *__pyx_tuple__765;
static PyObject *__pyx_tuple__766;
static PyObject *__pyx_tuple__767;
static PyObject *__pyx_tuple__768;
static PyObject *__pyx_tuple__769;
static PyObject *__pyx_tuple__770;
static PyObject *__pyx_tuple__771;
static PyObject *__pyx_tuple__772;
static PyObject *__pyx_tuple__773;
static PyObject *__pyx_tuple__774;
static PyObject *__pyx_tuple__775;
static PyObject *__pyx_tuple__776;
static PyObject *__pyx_tuple__777;
static PyObject *__pyx_tuple__778;
static PyObject *__pyx_tuple__779;
static PyObject *__pyx_tuple__780;
static PyObject *__pyx_tuple__781;
static PyObject *__pyx_tuple__782;
static PyObject *__pyx_tuple__783;
static PyObject *__pyx_tuple__784;
static PyObject *__pyx_tuple__785;
static PyObject *__pyx_tuple__786;
static PyObject *__pyx_tuple__787;
static PyObject *__pyx_tuple__788;
static PyObject *__pyx_tuple__789;
static PyObject *__pyx_tuple__790;
static PyObject *__pyx_tuple__791;
static PyObject *__pyx_tuple__792;
static PyObject *__pyx_tuple__793;
static PyObject *__pyx_tuple__794;
static PyObject *__pyx_tuple__795;
static PyObject *__pyx_tuple__796;
static PyObject *__pyx_tuple__797;
static PyObject *__pyx_tuple__798;
static PyObject *__pyx_tuple__799;
static PyObject *__pyx_tuple__800;
static PyObject *__pyx_tuple__801;
static PyObject *__pyx_tuple__802;
static PyObject *__pyx_tuple__803;
static PyObject *__pyx_tuple__804;
static PyObject *__pyx_tuple__805;
static PyObject *__pyx_tuple__806;
static PyObject *__pyx_tuple__807;
static PyObject *__pyx_tuple__808;
static PyObject *__pyx_tuple__809;
static PyObject *__pyx_tuple__810;
static PyObject *__pyx_tuple__811;
static PyObject *__pyx_tuple__812;
static PyObject *__pyx_tuple__813;
static PyObject *__pyx_tuple__814;
static PyObject *__pyx_tuple__815;
static PyObject *__pyx_tuple__816;
static PyObject *__pyx_tuple__817;
static PyObject *__pyx_tuple__818;
static PyObject *__pyx_tuple__819;
static PyObject *__pyx_tuple__820;
static PyObject *__pyx_tuple__821;
static PyObject *__pyx_tuple__822;
static PyObject *__pyx_tuple__823;
static PyObject *__pyx_tuple__824;
static PyObject *__pyx_tuple__825;
static PyObject *__pyx_tuple__826;
static PyObject *__pyx_tuple__827;
static PyObject *__pyx_tuple__828;
static PyObject *__pyx_tuple__829;
static PyObject *__pyx_tuple__830;
static PyObject *__pyx_tuple__831;
static PyObject *__pyx_tuple__832;
static PyObject *__pyx_tuple__833;
static PyObject *__pyx_tuple__834;
static PyObject *__pyx_tuple__835;
static PyObject *__pyx_tuple__836;
static PyObject *__pyx_tuple__837;
static PyObject *__pyx_tuple__838;
static PyObject *__pyx_tuple__839;
static PyObject *__pyx_tuple__840;
static PyObject *__pyx_tuple__841;
static PyObject *__pyx_tuple__842;
static PyObject *__pyx_tuple__843;
static PyObject *__pyx_tuple__844;
static PyObject *__pyx_tuple__845;
static PyObject *__pyx_tuple__846;
static PyObject *__pyx_tuple__847;
static PyObject *__pyx_tuple__848;
static PyObject *__pyx_tuple__849;
static PyObject *__pyx_tuple__850;
static PyObject *__pyx_tuple__851;
static PyObject *__pyx_tuple__852;
static PyObject *__pyx_tuple__853;
static PyObject *__pyx_tuple__854;
static PyObject *__pyx_tuple__855;
static PyObject *__pyx_tuple__856;
static PyObject *__pyx_tuple__857;
static PyObject *__pyx_tuple__858;
static PyObject *__pyx_tuple__859;
static PyObject *__pyx_tuple__860;
static PyObject *__pyx_tuple__861;
static PyObject *__pyx_tuple__862;
static PyObject *__pyx_tuple__863;
static PyObject *__pyx_tuple__864;
static PyObject *__pyx_tuple__865;
static PyObject *__pyx_tuple__866;
static PyObject *__pyx_tuple__867;
static PyObject *__pyx_tuple__868;
static PyObject *__pyx_tuple__869;
static PyObject *__pyx_tuple__870;
static PyObject *__pyx_tuple__871;
static PyObject *__pyx_tuple__872;
static PyObject *__pyx_tuple__873;
static PyObject *__pyx_tuple__874;
static PyObject *__pyx_tuple__875;
static PyObject *__pyx_tuple__876;
static PyObject *__pyx_tuple__877;
static PyObject *__pyx_tuple__878;
static PyObject *__pyx_tuple__879;
static PyObject *__pyx_tuple__880;
static PyObject *__pyx_tuple__881;
static PyObject *__pyx_tuple__882;
static PyObject *__pyx_tuple__883;
static PyObject *__pyx_tuple__884;
static PyObject *__pyx_tuple__885;
static PyObject *__pyx_tuple__886;
static PyObject *__pyx_tuple__887;
static PyObject *__pyx_tuple__888;
static PyObject *__pyx_tuple__889;
static PyObject *__pyx_tuple__890;
static PyObject *__pyx_tuple__891;
static PyObject *__pyx_tuple__892;
static PyObject *__pyx_tuple__893;
static PyObject *__pyx_tuple__894;
static PyObject *__pyx_tuple__895;
static PyObject *__pyx_tuple__896;
static PyObject *__pyx_tuple__897;
static PyObject *__pyx_tuple__898;
static PyObject *__pyx_tuple__899;
static PyObject *__pyx_tuple__900;
static PyObject *__pyx_tuple__901;
static PyObject *__pyx_tuple__902;
static PyObject *__pyx_tuple__903;
static PyObject *__pyx_tuple__904;
static PyObject *__pyx_tuple__905;
static PyObject *__pyx_tuple__906;
static PyObject *__pyx_tuple__907;
static PyObject *__pyx_tuple__908;
static PyObject *__pyx_tuple__909;
static PyObject *__pyx_tuple__910;
static PyObject *__pyx_tuple__911;
static PyObject *__pyx_tuple__912;
static PyObject *__pyx_tuple__913;
static PyObject *__pyx_tuple__914;
static PyObject *__pyx_tuple__915;
static PyObject *__pyx_tuple__916;
static PyObject *__pyx_tuple__917;
static PyObject *__pyx_tuple__918;
static PyObject *__pyx_tuple__919;
static PyObject *__pyx_tuple__920;
static PyObject *__pyx_tuple__921;
static PyObject *__pyx_tuple__922;
static PyObject *__pyx_tuple__923;
static PyObject *__pyx_tuple__924;
static PyObject *__pyx_tuple__925;
static PyObject *__pyx_tuple__926;
static PyObject *__pyx_tuple__927;
static PyObject *__pyx_tuple__928;
static PyObject *__pyx_tuple__929;
static PyObject *__pyx_tuple__930;
static PyObject *__pyx_tuple__931;
static PyObject *__pyx_tuple__932;
static PyObject *__pyx_tuple__933;
static PyObject *__pyx_tuple__934;
static PyObject *__pyx_tuple__935;
static PyObject *__pyx_tuple__936;
static PyObject *__pyx_tuple__937;
static PyObject *__pyx_tuple__938;
static PyObject *__pyx_tuple__939;
static PyObject *__pyx_tuple__940;
static PyObject *__pyx_tuple__941;
static PyObject *__pyx_tuple__942;
static PyObject *__pyx_tuple__943;
static PyObject *__pyx_tuple__944;
static PyObject *__pyx_tuple__945;
static PyObject *__pyx_tuple__946;
static PyObject *__pyx_tuple__947;
static PyObject *__pyx_tuple__948;
static PyObject *__pyx_tuple__949;
static PyObject *__pyx_tuple__950;
static PyObject *__pyx_tuple__951;
static PyObject *__pyx_tuple__952;
static PyObject *__pyx_tuple__953;
static PyObject *__pyx_tuple__954;
static PyObject *__pyx_tuple__955;
static PyObject *__pyx_tuple__956;
static PyObject *__pyx_tuple__957;
static PyObject *__pyx_tuple__958;
static PyObject *__pyx_tuple__959;
static PyObject *__pyx_tuple__960;
static PyObject *__pyx_tuple__961;
static PyObject *__pyx_tuple__962;
static PyObject *__pyx_tuple__963;
static PyObject *__pyx_tuple__964;
static PyObject *__pyx_tuple__965;
static PyObject *__pyx_tuple__966;
static PyObject *__pyx_tuple__967;
static PyObject *__pyx_tuple__968;
static PyObject *__pyx_tuple__969;
static PyObject *__pyx_tuple__970;
static PyObject *__pyx_tuple__971;
static PyObject *__pyx_tuple__972;
static PyObject *__pyx_tuple__973;
static PyObject *__pyx_tuple__974;
static PyObject *__pyx_tuple__975;
static PyObject *__pyx_tuple__976;
static PyObject *__pyx_tuple__977;
static PyObject *__pyx_tuple__978;
static PyObject *__pyx_tuple__979;
static PyObject *__pyx_tuple__980;
static PyObject *__pyx_tuple__981;
static PyObject *__pyx_tuple__982;
static PyObject *__pyx_tuple__983;
static PyObject *__pyx_tuple__984;
static PyObject *__pyx_tuple__985;
static PyObject *__pyx_tuple__986;
static PyObject *__pyx_tuple__987;
static PyObject *__pyx_tuple__988;
static PyObject *__pyx_tuple__989;
static PyObject *__pyx_tuple__990;
static PyObject *__pyx_tuple__991;
static PyObject *__pyx_tuple__992;
static PyObject *__pyx_tuple__993;
static PyObject *__pyx_tuple__994;
static PyObject *__pyx_tuple__995;
static PyObject *__pyx_tuple__996;
static PyObject *__pyx_tuple__997;
static PyObject *__pyx_tuple__998;
static PyObject *__pyx_tuple__999;
static PyObject *__pyx_tuple__1000;
static PyObject *__pyx_tuple__1001;
static PyObject *__pyx_tuple__1002;
static PyObject *__pyx_tuple__1003;
static PyObject *__pyx_tuple__1004;
static PyObject *__pyx_tuple__1005;
static PyObject *__pyx_tuple__1006;
static PyObject *__pyx_tuple__1007;
static PyObject *__pyx_tuple__1008;
static PyObject *__pyx_tuple__1009;
static PyObject *__pyx_tuple__1010;
static PyObject *__pyx_tuple__1011;
static PyObject *__pyx_tuple__1012;
static PyObject *__pyx_tuple__1013;
static PyObject *__pyx_tuple__1014;
static PyObject *__pyx_tuple__1015;
static PyObject *__pyx_tuple__1016;
static PyObject *__pyx_tuple__1017;
static PyObject *__pyx_tuple__1018;
static PyObject *__pyx_tuple__1019;
static PyObject *__pyx_tuple__1020;
static PyObject *__pyx_tuple__1021;
static PyObject *__pyx_tuple__1022;
static PyObject *__pyx_tuple__1023;
static PyObject *__pyx_tuple__1024;
static PyObject *__pyx_tuple__1025;
static PyObject *__pyx_tuple__1026;
static PyObject *__pyx_tuple__1027;
static PyObject *__pyx_tuple__1028;
static PyObject *__pyx_tuple__1029;
static PyObject *__pyx_tuple__1030;
static PyObject *__pyx_tuple__1031;
static PyObject *__pyx_tuple__1032;
static PyObject *__pyx_tuple__1033;
static PyObject *__pyx_tuple__1034;
static PyObject *__pyx_tuple__1035;
static PyObject *__pyx_tuple__1036;
static PyObject *__pyx_tuple__1037;
static PyObject *__pyx_tuple__1038;
static PyObject *__pyx_tuple__1039;
static PyObject *__pyx_tuple__1040;
static PyObject *__pyx_tuple__1041;
static PyObject *__pyx_tuple__1042;
static PyObject *__pyx_tuple__1043;
static PyObject *__pyx_tuple__1044;
static PyObject *__pyx_tuple__1045;
static PyObject *__pyx_tuple__1046;
static PyObject *__pyx_tuple__1047;
static PyObject *__pyx_tuple__1048;
static PyObject *__pyx_tuple__1049;
static PyObject *__pyx_tuple__1050;
static PyObject *__pyx_tuple__1051;
static PyObject *__pyx_tuple__1052;
static PyObject *__pyx_tuple__1053;
static PyObject *__pyx_tuple__1054;
static PyObject *__pyx_tuple__1055;
static PyObject *__pyx_tuple__1057;
static PyObject *__pyx_tuple__1059;
static PyObject *__pyx_tuple__1061;
static PyObject *__pyx_tuple__1063;
static PyObject *__pyx_tuple__1065;
static PyObject *__pyx_tuple__1067;
static PyObject *__pyx_tuple__1069;
static PyObject *__pyx_tuple__1071;
static PyObject *__pyx_tuple__1073;
static PyObject *__pyx_tuple__1075;
static PyObject *__pyx_tuple__1077;
static PyObject *__pyx_tuple__1079;
static PyObject *__pyx_tuple__1081;
static PyObject *__pyx_tuple__1083;
static PyObject *__pyx_tuple__1085;
static PyObject *__pyx_tuple__1087;
static PyObject *__pyx_tuple__1089;
static PyObject *__pyx_tuple__1091;
static PyObject *__pyx_tuple__1093;
static PyObject *__pyx_tuple__1095;
static PyObject *__pyx_tuple__1097;
static PyObject *__pyx_tuple__1099;
static PyObject *__pyx_tuple__1101;
static PyObject *__pyx_tuple__1103;
static PyObject *__pyx_tuple__1105;
static PyObject *__pyx_tuple__1107;
static PyObject *__pyx_tuple__1109;
static PyObject *__pyx_tuple__1111;
static PyObject *__pyx_tuple__1113;
static PyObject *__pyx_tuple__1115;
static PyObject *__pyx_tuple__1117;
static PyObject *__pyx_tuple__1119;
static PyObject *__pyx_tuple__1121;
static PyObject *__pyx_tuple__1123;
static PyObject *__pyx_tuple__1125;
static PyObject *__pyx_tuple__1127;
static PyObject *__pyx_tuple__1129;
static PyObject *__pyx_tuple__1131;
static PyObject *__pyx_tuple__1133;
static PyObject *__pyx_tuple__1135;
static PyObject *__pyx_tuple__1137;
static PyObject *__pyx_tuple__1139;
static PyObject *__pyx_tuple__1141;
static PyObject *__pyx_tuple__1143;
static PyObject *__pyx_tuple__1145;
static PyObject *__pyx_tuple__1147;
static PyObject *__pyx_tuple__1149;
static PyObject *__pyx_tuple__1151;
static PyObject *__pyx_tuple__1153;
static PyObject *__pyx_tuple__1155;
static PyObject *__pyx_tuple__1157;
static PyObject *__pyx_tuple__1159;
static PyObject *__pyx_tuple__1161;
static PyObject *__pyx_tuple__1163;
static PyObject *__pyx_tuple__1165;
static PyObject *__pyx_tuple__1167;
static PyObject *__pyx_tuple__1169;
static PyObject *__pyx_tuple__1171;
static PyObject *__pyx_tuple__1173;
static PyObject *__pyx_tuple__1175;
static PyObject *__pyx_tuple__1177;
static PyObject *__pyx_tuple__1179;
static PyObject *__pyx_tuple__1181;
static PyObject *__pyx_tuple__1183;
static PyObject *__pyx_tuple__1185;
static PyObject *__pyx_tuple__1187;
static PyObject *__pyx_tuple__1189;
static PyObject *__pyx_tuple__1191;
static PyObject *__pyx_tuple__1193;
static PyObject *__pyx_tuple__1195;
static PyObject *__pyx_tuple__1197;
static PyObject *__pyx_tuple__1199;
static PyObject *__pyx_tuple__1201;
static PyObject *__pyx_tuple__1203;
static PyObject *__pyx_tuple__1205;
static PyObject *__pyx_tuple__1207;
static PyObject *__pyx_tuple__1209;
static PyObject *__pyx_tuple__1211;
static PyObject *__pyx_tuple__1213;
static PyObject *__pyx_tuple__1215;
static PyObject *__pyx_tuple__1217;
static PyObject *__pyx_tuple__1219;
static PyObject *__pyx_tuple__1221;
static PyObject *__pyx_tuple__1223;
static PyObject *__pyx_tuple__1225;
static PyObject *__pyx_tuple__1227;
static PyObject *__pyx_tuple__1229;
static PyObject *__pyx_tuple__1231;
static PyObject *__pyx_tuple__1233;
static PyObject *__pyx_tuple__1235;
static PyObject *__pyx_tuple__1237;
static PyObject *__pyx_tuple__1239;
static PyObject *__pyx_tuple__1241;
static PyObject *__pyx_tuple__1243;
static PyObject *__pyx_tuple__1245;
static PyObject *__pyx_tuple__1247;
static PyObject *__pyx_tuple__1249;
static PyObject *__pyx_tuple__1251;
static PyObject *__pyx_tuple__1253;
static PyObject *__pyx_tuple__1255;
static PyObject *__pyx_tuple__1257;
static PyObject *__pyx_tuple__1259;
static PyObject *__pyx_tuple__1261;
static PyObject *__pyx_tuple__1263;
static PyObject *__pyx_tuple__1265;
static PyObject *__pyx_tuple__1267;
static PyObject *__pyx_tuple__1269;
static PyObject *__pyx_tuple__1271;
static PyObject *__pyx_tuple__1273;
static PyObject *__pyx_tuple__1275;
static PyObject *__pyx_tuple__1277;
static PyObject *__pyx_tuple__1279;
static PyObject *__pyx_tuple__1281;
static PyObject *__pyx_tuple__1283;
static PyObject *__pyx_tuple__1285;
static PyObject *__pyx_tuple__1287;
static PyObject *__pyx_tuple__1289;
static PyObject *__pyx_tuple__1291;
static PyObject *__pyx_tuple__1293;
static PyObject *__pyx_tuple__1295;
static PyObject *__pyx_tuple__1297;
static PyObject *__pyx_tuple__1299;
static PyObject *__pyx_tuple__1301;
static PyObject *__pyx_tuple__1303;
static PyObject *__pyx_tuple__1305;
static PyObject *__pyx_tuple__1307;
static PyObject *__pyx_tuple__1309;
static PyObject *__pyx_tuple__1311;
static PyObject *__pyx_tuple__1313;
static PyObject *__pyx_tuple__1315;
static PyObject *__pyx_tuple__1317;
static PyObject *__pyx_tuple__1319;
static PyObject *__pyx_tuple__1321;
static PyObject *__pyx_tuple__1323;
static PyObject *__pyx_tuple__1325;
static PyObject *__pyx_tuple__1327;
static PyObject *__pyx_tuple__1329;
static PyObject *__pyx_tuple__1331;
static PyObject *__pyx_tuple__1333;
static PyObject *__pyx_tuple__1335;
static PyObject *__pyx_tuple__1337;
static PyObject *__pyx_tuple__1339;
static PyObject *__pyx_tuple__1341;
static PyObject *__pyx_tuple__1343;
static PyObject *__pyx_tuple__1345;
static PyObject *__pyx_tuple__1347;
static PyObject *__pyx_tuple__1349;
static PyObject *__pyx_tuple__1351;
static PyObject *__pyx_tuple__1353;
static PyObject *__pyx_tuple__1355;
static PyObject *__pyx_tuple__1357;
static PyObject *__pyx_tuple__1359;
static PyObject *__pyx_tuple__1361;
static PyObject *__pyx_tuple__1363;
static PyObject *__pyx_tuple__1365;
static PyObject *__pyx_tuple__1367;
static PyObject *__pyx_tuple__1369;
static PyObject *__pyx_codeobj__1056;
static PyObject *__pyx_codeobj__1058;
static PyObject *__pyx_codeobj__1060;
static PyObject *__pyx_codeobj__1062;
static PyObject *__pyx_codeobj__1064;
static PyObject *__pyx_codeobj__1066;
static PyObject *__pyx_codeobj__1068;
static PyObject *__pyx_codeobj__1070;
static PyObject *__pyx_codeobj__1072;
static PyObject *__pyx_codeobj__1074;
static PyObject *__pyx_codeobj__1076;
static PyObject *__pyx_codeobj__1078;
static PyObject *__pyx_codeobj__1080;
static PyObject *__pyx_codeobj__1082;
static PyObject *__pyx_codeobj__1084;
static PyObject *__pyx_codeobj__1086;
static PyObject *__pyx_codeobj__1088;
static PyObject *__pyx_codeobj__1090;
static PyObject *__pyx_codeobj__1092;
static PyObject *__pyx_codeobj__1094;
static PyObject *__pyx_codeobj__1096;
static PyObject *__pyx_codeobj__1098;
static PyObject *__pyx_codeobj__1100;
static PyObject *__pyx_codeobj__1102;
static PyObject *__pyx_codeobj__1104;
static PyObject *__pyx_codeobj__1106;
static PyObject *__pyx_codeobj__1108;
static PyObject *__pyx_codeobj__1110;
static PyObject *__pyx_codeobj__1112;
static PyObject *__pyx_codeobj__1114;
static PyObject *__pyx_codeobj__1116;
static PyObject *__pyx_codeobj__1118;
static PyObject *__pyx_codeobj__1120;
static PyObject *__pyx_codeobj__1122;
static PyObject *__pyx_codeobj__1124;
static PyObject *__pyx_codeobj__1126;
static PyObject *__pyx_codeobj__1128;
static PyObject *__pyx_codeobj__1130;
static PyObject *__pyx_codeobj__1132;
static PyObject *__pyx_codeobj__1134;
static PyObject *__pyx_codeobj__1136;
static PyObject *__pyx_codeobj__1138;
static PyObject *__pyx_codeobj__1140;
static PyObject *__pyx_codeobj__1142;
static PyObject *__pyx_codeobj__1144;
static PyObject *__pyx_codeobj__1146;
static PyObject *__pyx_codeobj__1148;
static PyObject *__pyx_codeobj__1150;
static PyObject *__pyx_codeobj__1152;
static PyObject *__pyx_codeobj__1154;
static PyObject *__pyx_codeobj__1156;
static PyObject *__pyx_codeobj__1158;
static PyObject *__pyx_codeobj__1160;
static PyObject *__pyx_codeobj__1162;
static PyObject *__pyx_codeobj__1164;
static PyObject *__pyx_codeobj__1166;
static PyObject *__pyx_codeobj__1168;
static PyObject *__pyx_codeobj__1170;
static PyObject *__pyx_codeobj__1172;
static PyObject *__pyx_codeobj__1174;
static PyObject *__pyx_codeobj__1176;
static PyObject *__pyx_codeobj__1178;
static PyObject *__pyx_codeobj__1180;
static PyObject *__pyx_codeobj__1182;
static PyObject *__pyx_codeobj__1184;
static PyObject *__pyx_codeobj__1186;
static PyObject *__pyx_codeobj__1188;
static PyObject *__pyx_codeobj__1190;
static PyObject *__pyx_codeobj__1192;
static PyObject *__pyx_codeobj__1194;
static PyObject *__pyx_codeobj__1196;
static PyObject *__pyx_codeobj__1198;
static PyObject *__pyx_codeobj__1200;
static PyObject *__pyx_codeobj__1202;
static PyObject *__pyx_codeobj__1204;
static PyObject *__pyx_codeobj__1206;
static PyObject *__pyx_codeobj__1208;
static PyObject *__pyx_codeobj__1210;
static PyObject *__pyx_codeobj__1212;
static PyObject *__pyx_codeobj__1214;
static PyObject *__pyx_codeobj__1216;
static PyObject *__pyx_codeobj__1218;
static PyObject *__pyx_codeobj__1220;
static PyObject *__pyx_codeobj__1222;
static PyObject *__pyx_codeobj__1224;
static PyObject *__pyx_codeobj__1226;
static PyObject *__pyx_codeobj__1228;
static PyObject *__pyx_codeobj__1230;
static PyObject *__pyx_codeobj__1232;
static PyObject *__pyx_codeobj__1234;
static PyObject *__pyx_codeobj__1236;
static PyObject *__pyx_codeobj__1238;
static PyObject *__pyx_codeobj__1240;
static PyObject *__pyx_codeobj__1242;
static PyObject *__pyx_codeobj__1244;
static PyObject *__pyx_codeobj__1246;
static PyObject *__pyx_codeobj__1248;
static PyObject *__pyx_codeobj__1250;
static PyObject *__pyx_codeobj__1252;
static PyObject *__pyx_codeobj__1254;
static PyObject *__pyx_codeobj__1256;
static PyObject *__pyx_codeobj__1258;
static PyObject *__pyx_codeobj__1260;
static PyObject *__pyx_codeobj__1262;
static PyObject *__pyx_codeobj__1264;
static PyObject *__pyx_codeobj__1266;
static PyObject *__pyx_codeobj__1268;
static PyObject *__pyx_codeobj__1270;
static PyObject *__pyx_codeobj__1272;
static PyObject *__pyx_codeobj__1274;
static PyObject *__pyx_codeobj__1276;
static PyObject *__pyx_codeobj__1278;
static PyObject *__pyx_codeobj__1280;
static PyObject *__pyx_codeobj__1282;
static PyObject *__pyx_codeobj__1284;
static PyObject *__pyx_codeobj__1286;
static PyObject *__pyx_codeobj__1288;
static PyObject *__pyx_codeobj__1290;
static PyObject *__pyx_codeobj__1292;
static PyObject *__pyx_codeobj__1294;
static PyObject *__pyx_codeobj__1296;
static PyObject *__pyx_codeobj__1298;
static PyObject *__pyx_codeobj__1300;
static PyObject *__pyx_codeobj__1302;
static PyObject *__pyx_codeobj__1304;
static PyObject *__pyx_codeobj__1306;
static PyObject *__pyx_codeobj__1308;
static PyObject *__pyx_codeobj__1310;
static PyObject *__pyx_codeobj__1312;
static PyObject *__pyx_codeobj__1314;
static PyObject *__pyx_codeobj__1316;
static PyObject *__pyx_codeobj__1318;
static PyObject *__pyx_codeobj__1320;
static PyObject *__pyx_codeobj__1322;
static PyObject *__pyx_codeobj__1324;
static PyObject *__pyx_codeobj__1326;
static PyObject *__pyx_codeobj__1328;
static PyObject *__pyx_codeobj__1330;
static PyObject *__pyx_codeobj__1332;
static PyObject *__pyx_codeobj__1334;
static PyObject *__pyx_codeobj__1336;
static PyObject *__pyx_codeobj__1338;
static PyObject *__pyx_codeobj__1340;
static PyObject *__pyx_codeobj__1342;
static PyObject *__pyx_codeobj__1344;
static PyObject *__pyx_codeobj__1346;
static PyObject *__pyx_codeobj__1348;
static PyObject *__pyx_codeobj__1350;
static PyObject *__pyx_codeobj__1352;
static PyObject *__pyx_codeobj__1354;
static PyObject *__pyx_codeobj__1356;
static PyObject *__pyx_codeobj__1358;
static PyObject *__pyx_codeobj__1360;
static PyObject *__pyx_codeobj__1362;
static PyObject *__pyx_codeobj__1364;
static PyObject *__pyx_codeobj__1366;
static PyObject *__pyx_codeobj__1368;
static PyObject *__pyx_codeobj__1370;

/* "talib/stream.pyx":24
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ACOS( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ACOS(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_1ACOS(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_ACOS[] = " ACOS(real)\n\n    Vector Trigonometric ACos (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_1ACOS = {"ACOS", (PyCFunction)__pyx_pw_5talib_6stream_1ACOS, METH_O, __pyx_doc_5talib_6stream_ACOS};
static PyObject *__pyx_pw_5talib_6stream_1ACOS(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ACOS (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 24, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_ACOS(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_ACOS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ACOS", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":43
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":44
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 44, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 44, __pyx_L1_error)

    /* "talib/stream.pyx":43
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":45
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":46
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 46, __pyx_L1_error)

    /* "talib/stream.pyx":45
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":47
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":48
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 48, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 48, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":47
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":49
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":50
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ACOS( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":51
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ACOS( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ACOS", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":52
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_ACOS( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ACOS", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ACOS((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":53
 *     outreal = NaN
 *     retCode = lib.TA_ACOS( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ACOS", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ACOS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":54
 *     retCode = lib.TA_ACOS( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ACOS", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":24
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ACOS( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ACOS(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ACOS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":58
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AD( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None ):             # <<<<<<<<<<<<<<
 *     """ AD(high, low, close, volume)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_3AD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_2AD[] = " AD(high, low, close, volume)\n\n    Chaikin A/D Line (Volume Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close', 'volume']\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_3AD = {"AD", (PyCFunction)__pyx_pw_5talib_6stream_3AD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_2AD};
static PyObject *__pyx_pw_5talib_6stream_3AD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyArrayObject *__pyx_v_volume = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("AD (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_volume,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("AD", 1, 4, 4, 1); __PYX_ERR(0, 58, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("AD", 1, 4, 4, 2); __PYX_ERR(0, 58, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_volume)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("AD", 1, 4, 4, 3); __PYX_ERR(0, 58, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "AD") < 0)) __PYX_ERR(0, 58, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    __pyx_v_volume = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("AD", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 58, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.AD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 58, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 58, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 58, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(0, 58, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_2AD(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_volume);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_2AD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, PyArrayObject *__pyx_v_volume) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  double *__pyx_v_volume_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("AD", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);
  __Pyx_INCREF((PyObject *)__pyx_v_volume);

  /* "talib/stream.pyx":80
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":81
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 81, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 81, __pyx_L1_error)

    /* "talib/stream.pyx":80
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":82
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":83
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 83, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 83, __pyx_L1_error)

    /* "talib/stream.pyx":82
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":84
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":85
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 85, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 85, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":84
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":86
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":87
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":88
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 88, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 88, __pyx_L1_error)

    /* "talib/stream.pyx":87
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":89
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":90
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 90, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 90, __pyx_L1_error)

    /* "talib/stream.pyx":89
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":91
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":92
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 92, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 92, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":91
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":93
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":94
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":95
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 95, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 95, __pyx_L1_error)

    /* "talib/stream.pyx":94
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":96
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":97
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 97, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 97, __pyx_L1_error)

    /* "talib/stream.pyx":96
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":98
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":99
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 99, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":98
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":100
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":101
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_volume) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":102
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")             # <<<<<<<<<<<<<<
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 102, __pyx_L1_error)

    /* "talib/stream.pyx":101
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 */
  }

  /* "talib/stream.pyx":103
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_volume->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":104
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 104, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 104, __pyx_L1_error)

    /* "talib/stream.pyx":103
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":105
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":106
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)             # <<<<<<<<<<<<<<
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 106, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":105
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 */
  }

  /* "talib/stream.pyx":107
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_volume_data = ((double *)__pyx_v_volume->data);

  /* "talib/stream.pyx":108
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":109
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":110
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 110, __pyx_L1_error)

    /* "talib/stream.pyx":109
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":111
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":112
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 112, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 112, __pyx_L1_error)

    /* "talib/stream.pyx":111
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 */
  }

  /* "talib/stream.pyx":113
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":114
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_AD( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__13, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 114, __pyx_L1_error)

    /* "talib/stream.pyx":113
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":115
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_AD( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_AD", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":116
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_AD( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_AD", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_AD((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_volume_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":117
 *     outreal = NaN
 *     retCode = lib.TA_AD( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_AD", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_AD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":118
 *     retCode = lib.TA_AD( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_AD", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":58
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AD( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None ):             # <<<<<<<<<<<<<<
 *     """ AD(high, low, close, volume)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.AD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XDECREF((PyObject *)__pyx_v_volume);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":122
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADD( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ ADD(real0, real1)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_5ADD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_4ADD[] = " ADD(real0, real1)\n\n    Vector Arithmetic Add (Math Operators)\n\n    Inputs:\n        real0: (any ndarray)\n        real1: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_5ADD = {"ADD", (PyCFunction)__pyx_pw_5talib_6stream_5ADD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_4ADD};
static PyObject *__pyx_pw_5talib_6stream_5ADD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real0 = 0;
  PyArrayObject *__pyx_v_real1 = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ADD (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real0,&__pyx_n_s_real1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ADD", 1, 2, 2, 1); __PYX_ERR(0, 122, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ADD") < 0)) __PYX_ERR(0, 122, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_real0 = ((PyArrayObject *)values[0]);
    __pyx_v_real1 = ((PyArrayObject *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ADD", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 122, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.ADD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real0), __pyx_ptype_5numpy_ndarray, 0, "real0", 0))) __PYX_ERR(0, 122, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 122, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_4ADD(__pyx_self, __pyx_v_real0, __pyx_v_real1);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_4ADD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real0_data;
  double *__pyx_v_real1_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ADD", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real0);
  __Pyx_INCREF((PyObject *)__pyx_v_real1);

  /* "talib/stream.pyx":143
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real0) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":144
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 144, __pyx_L1_error)

    /* "talib/stream.pyx":143
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  }

  /* "talib/stream.pyx":145
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real0->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":146
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 146, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 146, __pyx_L1_error)

    /* "talib/stream.pyx":145
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":147
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":148
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)             # <<<<<<<<<<<<<<
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 148, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":147
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  }

  /* "talib/stream.pyx":149
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 */
  __pyx_v_real0_data = ((double *)__pyx_v_real0->data);

  /* "talib/stream.pyx":150
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real1) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":151
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__16, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 151, __pyx_L1_error)

    /* "talib/stream.pyx":150
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  }

  /* "talib/stream.pyx":152
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real1->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":153
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__17, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 153, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 153, __pyx_L1_error)

    /* "talib/stream.pyx":152
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":154
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":155
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)             # <<<<<<<<<<<<<<
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 155, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 155, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":154
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  }

  /* "talib/stream.pyx":156
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data             # <<<<<<<<<<<<<<
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 */
  __pyx_v_real1_data = ((double *)__pyx_v_real1->data);

  /* "talib/stream.pyx":157
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]             # <<<<<<<<<<<<<<
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_real0->dimensions[0]);

  /* "talib/stream.pyx":158
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":159
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ADD( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__18, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 159, __pyx_L1_error)

    /* "talib/stream.pyx":158
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":160
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ADD( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADD", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":161
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_ADD( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ADD", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ADD((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real0_data, __pyx_v_real1_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":162
 *     outreal = NaN
 *     retCode = lib.TA_ADD( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADD", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ADD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":163
 *     retCode = lib.TA_ADD( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADD", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 163, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":122
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADD( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ ADD(real0, real1)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ADD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real0);
  __Pyx_XDECREF((PyObject *)__pyx_v_real1);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":167
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADOSC( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None , int fastperiod=-2**31 , int slowperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADOSC(high, low, close, volume[, fastperiod=?, slowperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_7ADOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_6ADOSC[] = " ADOSC(high, low, close, volume[, fastperiod=?, slowperiod=?])\n\n    Chaikin A/D Oscillator (Volume Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close', 'volume']\n    Parameters:\n        fastperiod: 3\n        slowperiod: 10\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_7ADOSC = {"ADOSC", (PyCFunction)__pyx_pw_5talib_6stream_7ADOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_6ADOSC};
static PyObject *__pyx_pw_5talib_6stream_7ADOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyArrayObject *__pyx_v_volume = 0;
  int __pyx_v_fastperiod;
  int __pyx_v_slowperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ADOSC (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_volume,&__pyx_n_s_fastperiod,&__pyx_n_s_slowperiod,0};
    PyObject* values[6] = {0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ADOSC", 0, 4, 6, 1); __PYX_ERR(0, 167, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ADOSC", 0, 4, 6, 2); __PYX_ERR(0, 167, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_volume)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ADOSC", 0, 4, 6, 3); __PYX_ERR(0, 167, __pyx_L3_error)
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastperiod);
          if (value) { values[4] = value; kw_args--; }
        }
        case  5:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_slowperiod);
          if (value) { values[5] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ADOSC") < 0)) __PYX_ERR(0, 167, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    __pyx_v_volume = ((PyArrayObject *)values[3]);
    if (values[4]) {
      __pyx_v_fastperiod = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_fastperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
    } else {
      __pyx_v_fastperiod = ((int)-2147483648);
    }
    if (values[5]) {
      __pyx_v_slowperiod = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_slowperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 167, __pyx_L3_error)
    } else {
      __pyx_v_slowperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ADOSC", 0, 4, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 167, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.ADOSC", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 167, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 167, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 167, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(0, 167, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_6ADOSC(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_volume, __pyx_v_fastperiod, __pyx_v_slowperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_6ADOSC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, PyArrayObject *__pyx_v_volume, int __pyx_v_fastperiod, int __pyx_v_slowperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  double *__pyx_v_volume_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ADOSC", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);
  __Pyx_INCREF((PyObject *)__pyx_v_volume);

  /* "talib/stream.pyx":192
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":193
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__19, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 193, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 193, __pyx_L1_error)

    /* "talib/stream.pyx":192
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":194
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":195
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 195, __pyx_L1_error)

    /* "talib/stream.pyx":194
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":196
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":197
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 197, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 197, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":196
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":198
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":199
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":200
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 200, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 200, __pyx_L1_error)

    /* "talib/stream.pyx":199
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":201
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":202
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__22, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 202, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 202, __pyx_L1_error)

    /* "talib/stream.pyx":201
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":203
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":204
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 204, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 204, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":203
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":205
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":206
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":207
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__23, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 207, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 207, __pyx_L1_error)

    /* "talib/stream.pyx":206
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":208
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":209
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__24, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 209, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 209, __pyx_L1_error)

    /* "talib/stream.pyx":208
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":210
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":211
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 211, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":210
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":212
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":213
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_volume) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":214
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")             # <<<<<<<<<<<<<<
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__25, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 214, __pyx_L1_error)

    /* "talib/stream.pyx":213
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 */
  }

  /* "talib/stream.pyx":215
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_volume->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":216
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__26, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 216, __pyx_L1_error)

    /* "talib/stream.pyx":215
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":217
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":218
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)             # <<<<<<<<<<<<<<
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 218, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 218, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":217
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 */
  }

  /* "talib/stream.pyx":219
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_volume_data = ((double *)__pyx_v_volume->data);

  /* "talib/stream.pyx":220
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":221
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":222
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__27, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 222, __pyx_L1_error)

    /* "talib/stream.pyx":221
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":223
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":224
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__28, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 224, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 224, __pyx_L1_error)

    /* "talib/stream.pyx":223
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 */
  }

  /* "talib/stream.pyx":225
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":226
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ADOSC( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , fastperiod , slowperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__29, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 226, __pyx_L1_error)

    /* "talib/stream.pyx":225
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":227
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ADOSC( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , fastperiod , slowperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADOSC", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":228
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_ADOSC( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , fastperiod , slowperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ADOSC", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ADOSC((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_volume_data, __pyx_v_fastperiod, __pyx_v_slowperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":229
 *     outreal = NaN
 *     retCode = lib.TA_ADOSC( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , fastperiod , slowperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADOSC", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ADOSC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":230
 *     retCode = lib.TA_ADOSC( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , fastperiod , slowperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADOSC", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":167
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADOSC( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None , int fastperiod=-2**31 , int slowperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADOSC(high, low, close, volume[, fastperiod=?, slowperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ADOSC", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XDECREF((PyObject *)__pyx_v_volume);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":234
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADX( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADX(high, low, close[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_9ADX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_8ADX[] = " ADX(high, low, close[, timeperiod=?])\n\n    Average Directional Movement Index (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_9ADX = {"ADX", (PyCFunction)__pyx_pw_5talib_6stream_9ADX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_8ADX};
static PyObject *__pyx_pw_5talib_6stream_9ADX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ADX (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_timeperiod,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ADX", 0, 3, 4, 1); __PYX_ERR(0, 234, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ADX", 0, 3, 4, 2); __PYX_ERR(0, 234, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ADX") < 0)) __PYX_ERR(0, 234, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 234, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ADX", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 234, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.ADX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 234, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 234, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 234, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_8ADX(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_8ADX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ADX", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":257
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":258
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__30, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 258, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 258, __pyx_L1_error)

    /* "talib/stream.pyx":257
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":259
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":260
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__31, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 260, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 260, __pyx_L1_error)

    /* "talib/stream.pyx":259
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":261
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":262
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 262, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":261
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":263
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":264
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":265
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 265, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 265, __pyx_L1_error)

    /* "talib/stream.pyx":264
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":266
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":267
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 267, __pyx_L1_error)

    /* "talib/stream.pyx":266
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":268
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":269
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 269, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 269, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":268
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":270
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":271
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":272
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__34, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 272, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 272, __pyx_L1_error)

    /* "talib/stream.pyx":271
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":273
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":274
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__35, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 274, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 274, __pyx_L1_error)

    /* "talib/stream.pyx":273
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":275
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":276
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 276, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 276, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":275
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":277
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":278
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":279
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":280
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__36, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 280, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 280, __pyx_L1_error)

    /* "talib/stream.pyx":279
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":281
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":282
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ADX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__37, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 282, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 282, __pyx_L1_error)

    /* "talib/stream.pyx":281
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":283
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ADX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADX", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":284
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_ADX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ADX", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ADX((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":285
 *     outreal = NaN
 *     retCode = lib.TA_ADX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADX", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ADX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":286
 *     retCode = lib.TA_ADX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADX", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":234
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADX( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADX(high, low, close[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ADX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":290
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADXR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADXR(high, low, close[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_11ADXR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_10ADXR[] = " ADXR(high, low, close[, timeperiod=?])\n\n    Average Directional Movement Index Rating (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_11ADXR = {"ADXR", (PyCFunction)__pyx_pw_5talib_6stream_11ADXR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_10ADXR};
static PyObject *__pyx_pw_5talib_6stream_11ADXR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ADXR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_timeperiod,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ADXR", 0, 3, 4, 1); __PYX_ERR(0, 290, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ADXR", 0, 3, 4, 2); __PYX_ERR(0, 290, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ADXR") < 0)) __PYX_ERR(0, 290, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 290, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ADXR", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 290, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.ADXR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 290, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 290, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 290, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_10ADXR(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_10ADXR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ADXR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":313
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":314
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__38, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 314, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 314, __pyx_L1_error)

    /* "talib/stream.pyx":313
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":315
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":316
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__39, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 316, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 316, __pyx_L1_error)

    /* "talib/stream.pyx":315
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":317
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":318
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 318, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 318, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":317
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":319
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":320
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":321
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__40, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 321, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 321, __pyx_L1_error)

    /* "talib/stream.pyx":320
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":322
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":323
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__41, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 323, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 323, __pyx_L1_error)

    /* "talib/stream.pyx":322
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":324
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":325
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 325, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 325, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":324
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":326
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":327
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":328
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__42, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 328, __pyx_L1_error)

    /* "talib/stream.pyx":327
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":329
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":330
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__43, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 330, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 330, __pyx_L1_error)

    /* "talib/stream.pyx":329
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":331
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":332
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 332, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 332, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":331
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":333
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":334
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":335
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":336
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__44, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 336, __pyx_L1_error)

    /* "talib/stream.pyx":335
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":337
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":338
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ADXR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__45, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 338, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 338, __pyx_L1_error)

    /* "talib/stream.pyx":337
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":339
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ADXR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADXR", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":340
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_ADXR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ADXR", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ADXR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":341
 *     outreal = NaN
 *     retCode = lib.TA_ADXR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADXR", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ADXR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":342
 *     retCode = lib.TA_ADXR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ADXR", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":290
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADXR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADXR(high, low, close[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ADXR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":346
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def APO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ APO(real[, fastperiod=?, slowperiod=?, matype=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_13APO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_12APO[] = " APO(real[, fastperiod=?, slowperiod=?, matype=?])\n\n    Absolute Price Oscillator (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        fastperiod: 12\n        slowperiod: 26\n        matype: 0 (Simple Moving Average)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_13APO = {"APO", (PyCFunction)__pyx_pw_5talib_6stream_13APO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_12APO};
static PyObject *__pyx_pw_5talib_6stream_13APO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_fastperiod;
  int __pyx_v_slowperiod;
  int __pyx_v_matype;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("APO (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_fastperiod,&__pyx_n_s_slowperiod,&__pyx_n_s_matype,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastperiod);
          if (value) { values[1] = value; kw_args--; }
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_slowperiod);
          if (value) { values[2] = value; kw_args--; }
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_matype);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "APO") < 0)) __PYX_ERR(0, 346, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_fastperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_fastperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 346, __pyx_L3_error)
    } else {
      __pyx_v_fastperiod = ((int)-2147483648);
    }
    if (values[2]) {
      __pyx_v_slowperiod = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_slowperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 346, __pyx_L3_error)
    } else {
      __pyx_v_slowperiod = ((int)-2147483648);
    }
    if (values[3]) {
      __pyx_v_matype = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_matype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 346, __pyx_L3_error)
    } else {
      __pyx_v_matype = ((int)0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("APO", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 346, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.APO", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 346, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_12APO(__pyx_self, __pyx_v_real, __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_12APO(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_fastperiod, int __pyx_v_slowperiod, int __pyx_v_matype) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("APO", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":369
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":370
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__46, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 370, __pyx_L1_error)

    /* "talib/stream.pyx":369
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":371
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":372
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__47, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 372, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 372, __pyx_L1_error)

    /* "talib/stream.pyx":371
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":373
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":374
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 374, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 374, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":373
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":375
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":376
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_APO( length - 1 , length - 1 , real_data , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":377
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_APO( length - 1 , length - 1 , real_data , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_APO", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":378
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_APO( length - 1 , length - 1 , real_data , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_APO", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_APO((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":379
 *     outreal = NaN
 *     retCode = lib.TA_APO( length - 1 , length - 1 , real_data , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_APO", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_APO, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":380
 *     retCode = lib.TA_APO( length - 1 , length - 1 , real_data , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_APO", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":346
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def APO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ APO(real[, fastperiod=?, slowperiod=?, matype=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.APO", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":384
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AROON( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ AROON(high, low[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_15AROON(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_14AROON[] = " AROON(high, low[, timeperiod=?])\n\n    Aroon (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        aroondown\n        aroonup\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_15AROON = {"AROON", (PyCFunction)__pyx_pw_5talib_6stream_15AROON, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_14AROON};
static PyObject *__pyx_pw_5talib_6stream_15AROON(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("AROON (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_timeperiod,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("AROON", 0, 2, 3, 1); __PYX_ERR(0, 384, __pyx_L3_error)
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "AROON") < 0)) __PYX_ERR(0, 384, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    if (values[2]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 384, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("AROON", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 384, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.AROON", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 384, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 384, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_14AROON(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_14AROON(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outaroondown;
  double __pyx_v_outaroonup;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("AROON", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);

  /* "talib/stream.pyx":408
 *         double outaroondown
 *         double outaroonup
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":409
 *         double outaroonup
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__48, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 409, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 409, __pyx_L1_error)

    /* "talib/stream.pyx":408
 *         double outaroondown
 *         double outaroonup
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":410
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":411
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__49, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 411, __pyx_L1_error)

    /* "talib/stream.pyx":410
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":412
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":413
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 413, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":412
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":414
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":415
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":416
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 416, __pyx_L1_error)

    /* "talib/stream.pyx":415
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":417
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":418
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 418, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 418, __pyx_L1_error)

    /* "talib/stream.pyx":417
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":419
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":420
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 420, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 420, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":419
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":421
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":422
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":423
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outaroondown = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":424
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outaroondown = NaN
 *     outaroonup = NaN
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__52, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 424, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 424, __pyx_L1_error)

    /* "talib/stream.pyx":423
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outaroondown = NaN
 */
  }

  /* "talib/stream.pyx":425
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     outaroondown = NaN             # <<<<<<<<<<<<<<
 *     outaroonup = NaN
 *     retCode = lib.TA_AROON( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outaroondown , &outaroonup )
 */
  __pyx_v_outaroondown = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":426
 *         raise Exception("input lengths are different")
 *     outaroondown = NaN
 *     outaroonup = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_AROON( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outaroondown , &outaroonup )
 *     _ta_check_success("TA_AROON", retCode)
 */
  __pyx_v_outaroonup = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":427
 *     outaroondown = NaN
 *     outaroonup = NaN
 *     retCode = lib.TA_AROON( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outaroondown , &outaroonup )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_AROON", retCode)
 *     return outaroondown , outaroonup
 */
  __pyx_v_retCode = TA_AROON((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outaroondown), (&__pyx_v_outaroonup));

  /* "talib/stream.pyx":428
 *     outaroonup = NaN
 *     retCode = lib.TA_AROON( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outaroondown , &outaroonup )
 *     _ta_check_success("TA_AROON", retCode)             # <<<<<<<<<<<<<<
 *     return outaroondown , outaroonup
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_AROON, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":429
 *     retCode = lib.TA_AROON( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outaroondown , &outaroonup )
 *     _ta_check_success("TA_AROON", retCode)
 *     return outaroondown , outaroonup             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outaroondown); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outaroonup); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":384
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AROON( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ AROON(high, low[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("talib.stream.AROON", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":433
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AROONOSC( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ AROONOSC(high, low[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_17AROONOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_16AROONOSC[] = " AROONOSC(high, low[, timeperiod=?])\n\n    Aroon Oscillator (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_17AROONOSC = {"AROONOSC", (PyCFunction)__pyx_pw_5talib_6stream_17AROONOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_16AROONOSC};
static PyObject *__pyx_pw_5talib_6stream_17AROONOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("AROONOSC (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_timeperiod,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("AROONOSC", 0, 2, 3, 1); __PYX_ERR(0, 433, __pyx_L3_error)
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "AROONOSC") < 0)) __PYX_ERR(0, 433, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    if (values[2]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 433, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("AROONOSC", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 433, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.AROONOSC", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 433, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 433, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_16AROONOSC(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_16AROONOSC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("AROONOSC", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);

  /* "talib/stream.pyx":455
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":456
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__53, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 456, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 456, __pyx_L1_error)

    /* "talib/stream.pyx":455
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":457
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":458
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 458, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 458, __pyx_L1_error)

    /* "talib/stream.pyx":457
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":459
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":460
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 460, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 460, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":459
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":461
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":462
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":463
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__55, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 463, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 463, __pyx_L1_error)

    /* "talib/stream.pyx":462
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":464
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":465
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__56, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 465, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 465, __pyx_L1_error)

    /* "talib/stream.pyx":464
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":466
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":467
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 467, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 467, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":466
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":468
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":469
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":470
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":471
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_AROONOSC( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__57, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 471, __pyx_L1_error)

    /* "talib/stream.pyx":470
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":472
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_AROONOSC( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_AROONOSC", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":473
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_AROONOSC( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_AROONOSC", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_AROONOSC((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":474
 *     outreal = NaN
 *     retCode = lib.TA_AROONOSC( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_AROONOSC", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_AROONOSC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 474, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":475
 *     retCode = lib.TA_AROONOSC( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_AROONOSC", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 475, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":433
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AROONOSC( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ AROONOSC(high, low[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.AROONOSC", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":479
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ASIN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ASIN(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_19ASIN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_18ASIN[] = " ASIN(real)\n\n    Vector Trigonometric ASin (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_19ASIN = {"ASIN", (PyCFunction)__pyx_pw_5talib_6stream_19ASIN, METH_O, __pyx_doc_5talib_6stream_18ASIN};
static PyObject *__pyx_pw_5talib_6stream_19ASIN(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ASIN (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 479, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_18ASIN(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_18ASIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ASIN", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":498
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":499
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__58, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 499, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 499, __pyx_L1_error)

    /* "talib/stream.pyx":498
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":500
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":501
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__59, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 501, __pyx_L1_error)

    /* "talib/stream.pyx":500
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":502
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":503
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 503, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 503, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":502
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":504
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":505
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ASIN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":506
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ASIN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ASIN", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":507
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_ASIN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ASIN", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ASIN((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":508
 *     outreal = NaN
 *     retCode = lib.TA_ASIN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ASIN", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ASIN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 508, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":509
 *     retCode = lib.TA_ASIN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ASIN", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":479
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ASIN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ASIN(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ASIN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":513
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ATAN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ATAN(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_21ATAN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_20ATAN[] = " ATAN(real)\n\n    Vector Trigonometric ATan (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_21ATAN = {"ATAN", (PyCFunction)__pyx_pw_5talib_6stream_21ATAN, METH_O, __pyx_doc_5talib_6stream_20ATAN};
static PyObject *__pyx_pw_5talib_6stream_21ATAN(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ATAN (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 513, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_20ATAN(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_20ATAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ATAN", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":532
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":533
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__60, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 533, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 533, __pyx_L1_error)

    /* "talib/stream.pyx":532
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":534
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":535
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__61, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 535, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 535, __pyx_L1_error)

    /* "talib/stream.pyx":534
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":536
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":537
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 537, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":536
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":538
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":539
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ATAN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":540
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ATAN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ATAN", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":541
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_ATAN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ATAN", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ATAN((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":542
 *     outreal = NaN
 *     retCode = lib.TA_ATAN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ATAN", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ATAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 542, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":543
 *     retCode = lib.TA_ATAN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ATAN", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":513
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ATAN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ATAN(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ATAN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":547
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ATR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ATR(high, low, close[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_23ATR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_22ATR[] = " ATR(high, low, close[, timeperiod=?])\n\n    Average True Range (Volatility Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_23ATR = {"ATR", (PyCFunction)__pyx_pw_5talib_6stream_23ATR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_22ATR};
static PyObject *__pyx_pw_5talib_6stream_23ATR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ATR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_timeperiod,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ATR", 0, 3, 4, 1); __PYX_ERR(0, 547, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ATR", 0, 3, 4, 2); __PYX_ERR(0, 547, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ATR") < 0)) __PYX_ERR(0, 547, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 547, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ATR", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 547, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.ATR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 547, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 547, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 547, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_22ATR(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_22ATR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ATR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":570
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":571
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__62, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 571, __pyx_L1_error)

    /* "talib/stream.pyx":570
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":572
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":573
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__63, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 573, __pyx_L1_error)

    /* "talib/stream.pyx":572
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":574
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":575
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 575, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":574
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":576
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":577
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":578
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__64, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 578, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 578, __pyx_L1_error)

    /* "talib/stream.pyx":577
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":579
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":580
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__65, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 580, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 580, __pyx_L1_error)

    /* "talib/stream.pyx":579
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":581
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":582
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 582, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 582, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":581
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":583
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":584
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":585
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__66, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 585, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 585, __pyx_L1_error)

    /* "talib/stream.pyx":584
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":586
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":587
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__67, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 587, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 587, __pyx_L1_error)

    /* "talib/stream.pyx":586
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":588
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":589
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 589, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":588
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":590
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":591
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":592
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":593
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__68, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 593, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 593, __pyx_L1_error)

    /* "talib/stream.pyx":592
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":594
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":595
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__69, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 595, __pyx_L1_error)

    /* "talib/stream.pyx":594
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":596
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ATR", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":597
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_ATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ATR", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ATR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":598
 *     outreal = NaN
 *     retCode = lib.TA_ATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ATR", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ATR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 598, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":599
 *     retCode = lib.TA_ATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ATR", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":547
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ATR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ATR(high, low, close[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ATR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":603
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AVGPRICE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ AVGPRICE(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_25AVGPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_24AVGPRICE[] = " AVGPRICE(open, high, low, close)\n\n    Average Price (Price Transform)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_25AVGPRICE = {"AVGPRICE", (PyCFunction)__pyx_pw_5talib_6stream_25AVGPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_24AVGPRICE};
static PyObject *__pyx_pw_5talib_6stream_25AVGPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("AVGPRICE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("AVGPRICE", 1, 4, 4, 1); __PYX_ERR(0, 603, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("AVGPRICE", 1, 4, 4, 2); __PYX_ERR(0, 603, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("AVGPRICE", 1, 4, 4, 3); __PYX_ERR(0, 603, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "AVGPRICE") < 0)) __PYX_ERR(0, 603, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("AVGPRICE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 603, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.AVGPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 603, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 603, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 603, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 603, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_24AVGPRICE(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_24AVGPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("AVGPRICE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":625
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":626
 *         double outreal
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__70, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 626, __pyx_L1_error)

    /* "talib/stream.pyx":625
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":627
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":628
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__71, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 628, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 628, __pyx_L1_error)

    /* "talib/stream.pyx":627
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":629
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":630
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 630, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 630, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":629
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":631
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":632
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":633
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__72, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 633, __pyx_L1_error)

    /* "talib/stream.pyx":632
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":634
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":635
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__73, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 635, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 635, __pyx_L1_error)

    /* "talib/stream.pyx":634
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":636
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":637
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 637, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":636
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":638
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":639
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":640
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__74, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 640, __pyx_L1_error)

    /* "talib/stream.pyx":639
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":641
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":642
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__75, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 642, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 642, __pyx_L1_error)

    /* "talib/stream.pyx":641
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":643
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":644
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 644, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 644, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":643
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":645
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":646
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":647
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__76, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 647, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 647, __pyx_L1_error)

    /* "talib/stream.pyx":646
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":648
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":649
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__77, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 649, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 649, __pyx_L1_error)

    /* "talib/stream.pyx":648
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":650
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":651
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 651, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 651, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":650
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":652
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":653
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":654
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":655
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__78, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 655, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 655, __pyx_L1_error)

    /* "talib/stream.pyx":654
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":656
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":657
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__79, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 657, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 657, __pyx_L1_error)

    /* "talib/stream.pyx":656
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":658
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":659
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_AVGPRICE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__80, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 659, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 659, __pyx_L1_error)

    /* "talib/stream.pyx":658
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":660
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_AVGPRICE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_AVGPRICE", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":661
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_AVGPRICE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_AVGPRICE", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_AVGPRICE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":662
 *     outreal = NaN
 *     retCode = lib.TA_AVGPRICE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_AVGPRICE", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_AVGPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":663
 *     retCode = lib.TA_AVGPRICE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_AVGPRICE", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 663, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":603
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AVGPRICE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ AVGPRICE(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.AVGPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":667
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BBANDS( np.ndarray real not None , int timeperiod=-2**31 , double nbdevup=-4e37 , double nbdevdn=-4e37 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ BBANDS(real[, timeperiod=?, nbdevup=?, nbdevdn=?, matype=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_27BBANDS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_26BBANDS[] = " BBANDS(real[, timeperiod=?, nbdevup=?, nbdevdn=?, matype=?])\n\n    Bollinger Bands (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 5\n        nbdevup: 2\n        nbdevdn: 2\n        matype: 0 (Simple Moving Average)\n    Outputs:\n        upperband\n        middleband\n        lowerband\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_27BBANDS = {"BBANDS", (PyCFunction)__pyx_pw_5talib_6stream_27BBANDS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_26BBANDS};
static PyObject *__pyx_pw_5talib_6stream_27BBANDS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  double __pyx_v_nbdevup;
  double __pyx_v_nbdevdn;
  int __pyx_v_matype;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("BBANDS (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,&__pyx_n_s_nbdevup,&__pyx_n_s_nbdevdn,&__pyx_n_s_matype,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_nbdevup);
          if (value) { values[2] = value; kw_args--; }
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_nbdevdn);
          if (value) { values[3] = value; kw_args--; }
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_matype);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "BBANDS") < 0)) __PYX_ERR(0, 667, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 667, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
    if (values[2]) {
      __pyx_v_nbdevup = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nbdevup == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 667, __pyx_L3_error)
    } else {
      __pyx_v_nbdevup = ((double)-4e37);
    }
    if (values[3]) {
      __pyx_v_nbdevdn = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_nbdevdn == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 667, __pyx_L3_error)
    } else {
      __pyx_v_nbdevdn = ((double)-4e37);
    }
    if (values[4]) {
      __pyx_v_matype = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_matype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 667, __pyx_L3_error)
    } else {
      __pyx_v_matype = ((int)0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("BBANDS", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 667, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.BBANDS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 667, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_26BBANDS(__pyx_self, __pyx_v_real, __pyx_v_timeperiod, __pyx_v_nbdevup, __pyx_v_nbdevdn, __pyx_v_matype);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_26BBANDS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdevup, double __pyx_v_nbdevdn, int __pyx_v_matype) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outrealupperband;
  double __pyx_v_outrealmiddleband;
  double __pyx_v_outreallowerband;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("BBANDS", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":695
 *         double outrealmiddleband
 *         double outreallowerband
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":696
 *         double outreallowerband
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__81, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 696, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 696, __pyx_L1_error)

    /* "talib/stream.pyx":695
 *         double outrealmiddleband
 *         double outreallowerband
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":697
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":698
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__82, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 698, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 698, __pyx_L1_error)

    /* "talib/stream.pyx":697
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":699
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":700
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 700, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 700, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":699
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":701
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outrealupperband = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":702
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outrealupperband = NaN
 *     outrealmiddleband = NaN
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":703
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outrealupperband = NaN             # <<<<<<<<<<<<<<
 *     outrealmiddleband = NaN
 *     outreallowerband = NaN
 */
  __pyx_v_outrealupperband = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":704
 *     length = real.shape[0]
 *     outrealupperband = NaN
 *     outrealmiddleband = NaN             # <<<<<<<<<<<<<<
 *     outreallowerband = NaN
 *     retCode = lib.TA_BBANDS( length - 1 , length - 1 , real_data , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , &outrealupperband , &outrealmiddleband , &outreallowerband )
 */
  __pyx_v_outrealmiddleband = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":705
 *     outrealupperband = NaN
 *     outrealmiddleband = NaN
 *     outreallowerband = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_BBANDS( length - 1 , length - 1 , real_data , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , &outrealupperband , &outrealmiddleband , &outreallowerband )
 *     _ta_check_success("TA_BBANDS", retCode)
 */
  __pyx_v_outreallowerband = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":706
 *     outrealmiddleband = NaN
 *     outreallowerband = NaN
 *     retCode = lib.TA_BBANDS( length - 1 , length - 1 , real_data , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , &outrealupperband , &outrealmiddleband , &outreallowerband )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_BBANDS", retCode)
 *     return outrealupperband , outrealmiddleband , outreallowerband
 */
  __pyx_v_retCode = TA_BBANDS((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, __pyx_v_nbdevup, __pyx_v_nbdevdn, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outrealupperband), (&__pyx_v_outrealmiddleband), (&__pyx_v_outreallowerband));

  /* "talib/stream.pyx":707
 *     outreallowerband = NaN
 *     retCode = lib.TA_BBANDS( length - 1 , length - 1 , real_data , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , &outrealupperband , &outrealmiddleband , &outreallowerband )
 *     _ta_check_success("TA_BBANDS", retCode)             # <<<<<<<<<<<<<<
 *     return outrealupperband , outrealmiddleband , outreallowerband
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_BBANDS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":708
 *     retCode = lib.TA_BBANDS( length - 1 , length - 1 , real_data , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , &outrealupperband , &outrealmiddleband , &outreallowerband )
 *     _ta_check_success("TA_BBANDS", retCode)
 *     return outrealupperband , outrealmiddleband , outreallowerband             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outrealupperband); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outrealmiddleband); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_outreallowerband); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":667
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BBANDS( np.ndarray real not None , int timeperiod=-2**31 , double nbdevup=-4e37 , double nbdevdn=-4e37 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ BBANDS(real[, timeperiod=?, nbdevup=?, nbdevdn=?, matype=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("talib.stream.BBANDS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":712
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BETA( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ BETA(real0, real1[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_29BETA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_28BETA[] = " BETA(real0, real1[, timeperiod=?])\n\n    Beta (Statistic Functions)\n\n    Inputs:\n        real0: (any ndarray)\n        real1: (any ndarray)\n    Parameters:\n        timeperiod: 5\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_29BETA = {"BETA", (PyCFunction)__pyx_pw_5talib_6stream_29BETA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_28BETA};
static PyObject *__pyx_pw_5talib_6stream_29BETA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real0 = 0;
  PyArrayObject *__pyx_v_real1 = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("BETA (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real0,&__pyx_n_s_real1,&__pyx_n_s_timeperiod,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("BETA", 0, 2, 3, 1); __PYX_ERR(0, 712, __pyx_L3_error)
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "BETA") < 0)) __PYX_ERR(0, 712, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real0 = ((PyArrayObject *)values[0]);
    __pyx_v_real1 = ((PyArrayObject *)values[1]);
    if (values[2]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 712, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("BETA", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 712, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.BETA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real0), __pyx_ptype_5numpy_ndarray, 0, "real0", 0))) __PYX_ERR(0, 712, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 712, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_28BETA(__pyx_self, __pyx_v_real0, __pyx_v_real1, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_28BETA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real0_data;
  double *__pyx_v_real1_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("BETA", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real0);
  __Pyx_INCREF((PyObject *)__pyx_v_real1);

  /* "talib/stream.pyx":735
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real0) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":736
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__83, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 736, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 736, __pyx_L1_error)

    /* "talib/stream.pyx":735
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  }

  /* "talib/stream.pyx":737
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real0->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":738
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__84, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 738, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 738, __pyx_L1_error)

    /* "talib/stream.pyx":737
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":739
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":740
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)             # <<<<<<<<<<<<<<
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 740, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":739
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  }

  /* "talib/stream.pyx":741
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 */
  __pyx_v_real0_data = ((double *)__pyx_v_real0->data);

  /* "talib/stream.pyx":742
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real1) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":743
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__85, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 743, __pyx_L1_error)

    /* "talib/stream.pyx":742
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  }

  /* "talib/stream.pyx":744
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real1->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":745
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__86, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 745, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 745, __pyx_L1_error)

    /* "talib/stream.pyx":744
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":746
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":747
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)             # <<<<<<<<<<<<<<
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 747, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 747, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":746
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  }

  /* "talib/stream.pyx":748
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data             # <<<<<<<<<<<<<<
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 */
  __pyx_v_real1_data = ((double *)__pyx_v_real1->data);

  /* "talib/stream.pyx":749
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]             # <<<<<<<<<<<<<<
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_real0->dimensions[0]);

  /* "talib/stream.pyx":750
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":751
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_BETA( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__87, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 751, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 751, __pyx_L1_error)

    /* "talib/stream.pyx":750
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":752
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_BETA( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_BETA", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":753
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_BETA( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_BETA", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_BETA((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real0_data, __pyx_v_real1_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":754
 *     outreal = NaN
 *     retCode = lib.TA_BETA( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_BETA", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_BETA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 754, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":755
 *     retCode = lib.TA_BETA( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_BETA", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 755, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":712
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BETA( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ BETA(real0, real1[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.BETA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real0);
  __Pyx_XDECREF((PyObject *)__pyx_v_real1);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":759
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BOP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ BOP(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_31BOP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_30BOP[] = " BOP(open, high, low, close)\n\n    Balance Of Power (Momentum Indicators)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_31BOP = {"BOP", (PyCFunction)__pyx_pw_5talib_6stream_31BOP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_30BOP};
static PyObject *__pyx_pw_5talib_6stream_31BOP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("BOP (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("BOP", 1, 4, 4, 1); __PYX_ERR(0, 759, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("BOP", 1, 4, 4, 2); __PYX_ERR(0, 759, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("BOP", 1, 4, 4, 3); __PYX_ERR(0, 759, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "BOP") < 0)) __PYX_ERR(0, 759, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("BOP", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 759, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.BOP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 759, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 759, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 759, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 759, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_30BOP(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_30BOP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("BOP", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":781
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":782
 *         double outreal
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__88, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 782, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 782, __pyx_L1_error)

    /* "talib/stream.pyx":781
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":783
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":784
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__89, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 784, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 784, __pyx_L1_error)

    /* "talib/stream.pyx":783
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":785
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":786
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 786, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 786, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":785
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":787
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":788
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":789
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__90, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 789, __pyx_L1_error)

    /* "talib/stream.pyx":788
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":790
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":791
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__91, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 791, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 791, __pyx_L1_error)

    /* "talib/stream.pyx":790
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":792
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":793
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 793, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":792
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":794
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":795
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":796
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__92, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 796, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 796, __pyx_L1_error)

    /* "talib/stream.pyx":795
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":797
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":798
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__93, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 798, __pyx_L1_error)

    /* "talib/stream.pyx":797
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":799
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":800
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 800, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 800, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":799
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":801
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":802
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":803
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__94, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 803, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 803, __pyx_L1_error)

    /* "talib/stream.pyx":802
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":804
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":805
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__95, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 805, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 805, __pyx_L1_error)

    /* "talib/stream.pyx":804
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":806
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":807
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 807, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 807, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":806
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":808
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":809
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":810
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":811
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__96, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 811, __pyx_L1_error)

    /* "talib/stream.pyx":810
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":812
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":813
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__97, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 813, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 813, __pyx_L1_error)

    /* "talib/stream.pyx":812
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":814
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":815
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_BOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__98, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 815, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 815, __pyx_L1_error)

    /* "talib/stream.pyx":814
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":816
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_BOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_BOP", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":817
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_BOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_BOP", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_BOP((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":818
 *     outreal = NaN
 *     retCode = lib.TA_BOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_BOP", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_BOP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":819
 *     retCode = lib.TA_BOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_BOP", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":759
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BOP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ BOP(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.BOP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":823
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CCI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CCI(high, low, close[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_33CCI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_32CCI[] = " CCI(high, low, close[, timeperiod=?])\n\n    Commodity Channel Index (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_33CCI = {"CCI", (PyCFunction)__pyx_pw_5talib_6stream_33CCI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_32CCI};
static PyObject *__pyx_pw_5talib_6stream_33CCI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CCI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_timeperiod,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CCI", 0, 3, 4, 1); __PYX_ERR(0, 823, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CCI", 0, 3, 4, 2); __PYX_ERR(0, 823, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CCI") < 0)) __PYX_ERR(0, 823, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 823, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CCI", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 823, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CCI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 823, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 823, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 823, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_32CCI(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_32CCI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CCI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":846
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":847
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__99, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 847, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 847, __pyx_L1_error)

    /* "talib/stream.pyx":846
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":848
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":849
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__100, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 849, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 849, __pyx_L1_error)

    /* "talib/stream.pyx":848
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":850
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":851
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 851, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 851, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":850
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":852
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":853
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":854
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__101, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 854, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 854, __pyx_L1_error)

    /* "talib/stream.pyx":853
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":855
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":856
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__102, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 856, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 856, __pyx_L1_error)

    /* "talib/stream.pyx":855
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":857
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":858
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 858, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 858, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":857
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":859
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":860
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":861
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__103, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 861, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 861, __pyx_L1_error)

    /* "talib/stream.pyx":860
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":862
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":863
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__104, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 863, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 863, __pyx_L1_error)

    /* "talib/stream.pyx":862
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":864
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":865
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 865, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 865, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":864
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":866
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":867
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":868
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":869
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__105, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 869, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 869, __pyx_L1_error)

    /* "talib/stream.pyx":868
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":870
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":871
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_CCI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__106, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 871, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 871, __pyx_L1_error)

    /* "talib/stream.pyx":870
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":872
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CCI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CCI", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":873
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_CCI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CCI", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_CCI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":874
 *     outreal = NaN
 *     retCode = lib.TA_CCI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CCI", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CCI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 874, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":875
 *     retCode = lib.TA_CCI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CCI", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":823
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CCI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CCI(high, low, close[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CCI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":879
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL2CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL2CROWS(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_35CDL2CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_34CDL2CROWS[] = " CDL2CROWS(open, high, low, close)\n\n    Two Crows (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_35CDL2CROWS = {"CDL2CROWS", (PyCFunction)__pyx_pw_5talib_6stream_35CDL2CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_34CDL2CROWS};
static PyObject *__pyx_pw_5talib_6stream_35CDL2CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDL2CROWS (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL2CROWS", 1, 4, 4, 1); __PYX_ERR(0, 879, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL2CROWS", 1, 4, 4, 2); __PYX_ERR(0, 879, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL2CROWS", 1, 4, 4, 3); __PYX_ERR(0, 879, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL2CROWS") < 0)) __PYX_ERR(0, 879, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDL2CROWS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 879, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDL2CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 879, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 879, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 879, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 879, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_34CDL2CROWS(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_34CDL2CROWS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDL2CROWS", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":901
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":902
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__107, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 902, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 902, __pyx_L1_error)

    /* "talib/stream.pyx":901
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":903
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":904
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__108, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 904, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 904, __pyx_L1_error)

    /* "talib/stream.pyx":903
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":905
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":906
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 906, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 906, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":905
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":907
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":908
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":909
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__109, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 909, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 909, __pyx_L1_error)

    /* "talib/stream.pyx":908
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":910
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":911
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__110, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 911, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 911, __pyx_L1_error)

    /* "talib/stream.pyx":910
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":912
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":913
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 913, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 913, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":912
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":914
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":915
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":916
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__111, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 916, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 916, __pyx_L1_error)

    /* "talib/stream.pyx":915
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":917
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":918
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__112, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 918, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 918, __pyx_L1_error)

    /* "talib/stream.pyx":917
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":919
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":920
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 920, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":919
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":921
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":922
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":923
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__113, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 923, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 923, __pyx_L1_error)

    /* "talib/stream.pyx":922
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":924
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":925
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__114, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 925, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 925, __pyx_L1_error)

    /* "talib/stream.pyx":924
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":926
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":927
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 927, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 927, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":926
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":928
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":929
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":930
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":931
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__115, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 931, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 931, __pyx_L1_error)

    /* "talib/stream.pyx":930
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":932
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":933
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__116, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 933, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 933, __pyx_L1_error)

    /* "talib/stream.pyx":932
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":934
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":935
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__117, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 935, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 935, __pyx_L1_error)

    /* "talib/stream.pyx":934
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":936
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDL2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL2CROWS", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":937
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDL2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDL2CROWS", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDL2CROWS((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":938
 *     outinteger = 0
 *     retCode = lib.TA_CDL2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL2CROWS", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDL2CROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":939
 *     retCode = lib.TA_CDL2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL2CROWS", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 939, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":879
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL2CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL2CROWS(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDL2CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":943
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3BLACKCROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3BLACKCROWS(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_37CDL3BLACKCROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_36CDL3BLACKCROWS[] = " CDL3BLACKCROWS(open, high, low, close)\n\n    Three Black Crows (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_37CDL3BLACKCROWS = {"CDL3BLACKCROWS", (PyCFunction)__pyx_pw_5talib_6stream_37CDL3BLACKCROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_36CDL3BLACKCROWS};
static PyObject *__pyx_pw_5talib_6stream_37CDL3BLACKCROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDL3BLACKCROWS (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3BLACKCROWS", 1, 4, 4, 1); __PYX_ERR(0, 943, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3BLACKCROWS", 1, 4, 4, 2); __PYX_ERR(0, 943, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3BLACKCROWS", 1, 4, 4, 3); __PYX_ERR(0, 943, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3BLACKCROWS") < 0)) __PYX_ERR(0, 943, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDL3BLACKCROWS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 943, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDL3BLACKCROWS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 943, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 943, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 943, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 943, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_36CDL3BLACKCROWS(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_36CDL3BLACKCROWS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDL3BLACKCROWS", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":965
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":966
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__118, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 966, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 966, __pyx_L1_error)

    /* "talib/stream.pyx":965
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":967
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":968
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__119, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 968, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 968, __pyx_L1_error)

    /* "talib/stream.pyx":967
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":969
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":970
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 970, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 970, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":969
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":971
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":972
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":973
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__120, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 973, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 973, __pyx_L1_error)

    /* "talib/stream.pyx":972
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":974
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":975
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__121, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 975, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 975, __pyx_L1_error)

    /* "talib/stream.pyx":974
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":976
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":977
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 977, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 977, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":976
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":978
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":979
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":980
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__122, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 980, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 980, __pyx_L1_error)

    /* "talib/stream.pyx":979
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":981
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":982
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__123, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 982, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 982, __pyx_L1_error)

    /* "talib/stream.pyx":981
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":983
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":984
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 984, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 984, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":983
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":985
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":986
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":987
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__124, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 987, __pyx_L1_error)

    /* "talib/stream.pyx":986
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":988
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":989
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__125, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 989, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 989, __pyx_L1_error)

    /* "talib/stream.pyx":988
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":990
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":991
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 991, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 991, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":990
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":992
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":993
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":994
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":995
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__126, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 995, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 995, __pyx_L1_error)

    /* "talib/stream.pyx":994
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":996
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":997
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__127, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 997, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 997, __pyx_L1_error)

    /* "talib/stream.pyx":996
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":998
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":999
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3BLACKCROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__128, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 999, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 999, __pyx_L1_error)

    /* "talib/stream.pyx":998
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1000
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDL3BLACKCROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3BLACKCROWS", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1001
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDL3BLACKCROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDL3BLACKCROWS", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDL3BLACKCROWS((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1002
 *     outinteger = 0
 *     retCode = lib.TA_CDL3BLACKCROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3BLACKCROWS", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDL3BLACKCROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1002, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1003
 *     retCode = lib.TA_CDL3BLACKCROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3BLACKCROWS", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":943
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3BLACKCROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3BLACKCROWS(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDL3BLACKCROWS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1007
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3INSIDE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3INSIDE(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_39CDL3INSIDE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_38CDL3INSIDE[] = " CDL3INSIDE(open, high, low, close)\n\n    Three Inside Up/Down (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_39CDL3INSIDE = {"CDL3INSIDE", (PyCFunction)__pyx_pw_5talib_6stream_39CDL3INSIDE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_38CDL3INSIDE};
static PyObject *__pyx_pw_5talib_6stream_39CDL3INSIDE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDL3INSIDE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3INSIDE", 1, 4, 4, 1); __PYX_ERR(0, 1007, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3INSIDE", 1, 4, 4, 2); __PYX_ERR(0, 1007, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3INSIDE", 1, 4, 4, 3); __PYX_ERR(0, 1007, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3INSIDE") < 0)) __PYX_ERR(0, 1007, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDL3INSIDE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1007, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDL3INSIDE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1007, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1007, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1007, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1007, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_38CDL3INSIDE(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_38CDL3INSIDE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDL3INSIDE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1029
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1030
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__129, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1030, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1030, __pyx_L1_error)

    /* "talib/stream.pyx":1029
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1031
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1032
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__130, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1032, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1032, __pyx_L1_error)

    /* "talib/stream.pyx":1031
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1033
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1034
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1034, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1034, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1033
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1035
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1036
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1037
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__131, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1037, __pyx_L1_error)

    /* "talib/stream.pyx":1036
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1038
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1039
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__132, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1039, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1039, __pyx_L1_error)

    /* "talib/stream.pyx":1038
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1040
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1041
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1041, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1041, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1040
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1042
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1043
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1044
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__133, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1044, __pyx_L1_error)

    /* "talib/stream.pyx":1043
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1045
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1046
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__134, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1046, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1046, __pyx_L1_error)

    /* "talib/stream.pyx":1045
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1047
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1048
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1048, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1048, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1047
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1049
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1050
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1051
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__135, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1051, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1051, __pyx_L1_error)

    /* "talib/stream.pyx":1050
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1052
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1053
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__136, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1053, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1053, __pyx_L1_error)

    /* "talib/stream.pyx":1052
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1054
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1055
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1055, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1055, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1054
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1056
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1057
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1058
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1059
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__137, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1059, __pyx_L1_error)

    /* "talib/stream.pyx":1058
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1060
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1061
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__138, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1061, __pyx_L1_error)

    /* "talib/stream.pyx":1060
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1062
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1063
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3INSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__139, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1063, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1063, __pyx_L1_error)

    /* "talib/stream.pyx":1062
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1064
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDL3INSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3INSIDE", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1065
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDL3INSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDL3INSIDE", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDL3INSIDE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1066
 *     outinteger = 0
 *     retCode = lib.TA_CDL3INSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3INSIDE", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDL3INSIDE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1067
 *     retCode = lib.TA_CDL3INSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3INSIDE", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1067, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1007
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3INSIDE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3INSIDE(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDL3INSIDE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1071
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3LINESTRIKE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3LINESTRIKE(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_41CDL3LINESTRIKE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_40CDL3LINESTRIKE[] = " CDL3LINESTRIKE(open, high, low, close)\n\n    Three-Line Strike  (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_41CDL3LINESTRIKE = {"CDL3LINESTRIKE", (PyCFunction)__pyx_pw_5talib_6stream_41CDL3LINESTRIKE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_40CDL3LINESTRIKE};
static PyObject *__pyx_pw_5talib_6stream_41CDL3LINESTRIKE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDL3LINESTRIKE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3LINESTRIKE", 1, 4, 4, 1); __PYX_ERR(0, 1071, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3LINESTRIKE", 1, 4, 4, 2); __PYX_ERR(0, 1071, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3LINESTRIKE", 1, 4, 4, 3); __PYX_ERR(0, 1071, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3LINESTRIKE") < 0)) __PYX_ERR(0, 1071, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDL3LINESTRIKE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1071, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDL3LINESTRIKE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1071, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1071, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1071, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1071, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_40CDL3LINESTRIKE(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_40CDL3LINESTRIKE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDL3LINESTRIKE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1093
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1094
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__140, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1094, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1094, __pyx_L1_error)

    /* "talib/stream.pyx":1093
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1095
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1096
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__141, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1096, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1096, __pyx_L1_error)

    /* "talib/stream.pyx":1095
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1097
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1098
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1098, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1098, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1097
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1099
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1100
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1101
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__142, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1101, __pyx_L1_error)

    /* "talib/stream.pyx":1100
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1102
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1103
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__143, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1103, __pyx_L1_error)

    /* "talib/stream.pyx":1102
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1104
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1105
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1105, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1105, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1104
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1106
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1107
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1108
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__144, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1108, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1108, __pyx_L1_error)

    /* "talib/stream.pyx":1107
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1109
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1110
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__145, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1110, __pyx_L1_error)

    /* "talib/stream.pyx":1109
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1111
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1112
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1112, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1112, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1111
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1113
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1114
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1115
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__146, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1115, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1115, __pyx_L1_error)

    /* "talib/stream.pyx":1114
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1116
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1117
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__147, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1117, __pyx_L1_error)

    /* "talib/stream.pyx":1116
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1118
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1119
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1119, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1118
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1120
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1121
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1122
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1123
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__148, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1123, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1123, __pyx_L1_error)

    /* "talib/stream.pyx":1122
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1124
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1125
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__149, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1125, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1125, __pyx_L1_error)

    /* "talib/stream.pyx":1124
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1126
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1127
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3LINESTRIKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__150, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1127, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1127, __pyx_L1_error)

    /* "talib/stream.pyx":1126
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1128
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDL3LINESTRIKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3LINESTRIKE", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1129
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDL3LINESTRIKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDL3LINESTRIKE", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDL3LINESTRIKE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1130
 *     outinteger = 0
 *     retCode = lib.TA_CDL3LINESTRIKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3LINESTRIKE", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDL3LINESTRIKE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1131
 *     retCode = lib.TA_CDL3LINESTRIKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3LINESTRIKE", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1131, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1071
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3LINESTRIKE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3LINESTRIKE(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDL3LINESTRIKE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1135
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3OUTSIDE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3OUTSIDE(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_43CDL3OUTSIDE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_42CDL3OUTSIDE[] = " CDL3OUTSIDE(open, high, low, close)\n\n    Three Outside Up/Down (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_43CDL3OUTSIDE = {"CDL3OUTSIDE", (PyCFunction)__pyx_pw_5talib_6stream_43CDL3OUTSIDE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_42CDL3OUTSIDE};
static PyObject *__pyx_pw_5talib_6stream_43CDL3OUTSIDE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDL3OUTSIDE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3OUTSIDE", 1, 4, 4, 1); __PYX_ERR(0, 1135, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3OUTSIDE", 1, 4, 4, 2); __PYX_ERR(0, 1135, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3OUTSIDE", 1, 4, 4, 3); __PYX_ERR(0, 1135, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3OUTSIDE") < 0)) __PYX_ERR(0, 1135, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDL3OUTSIDE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1135, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDL3OUTSIDE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1135, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1135, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1135, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1135, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_42CDL3OUTSIDE(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_42CDL3OUTSIDE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDL3OUTSIDE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1157
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1158
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__151, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1158, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1158, __pyx_L1_error)

    /* "talib/stream.pyx":1157
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1159
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1160
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__152, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1160, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1160, __pyx_L1_error)

    /* "talib/stream.pyx":1159
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1161
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1162
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1162, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1161
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1163
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1164
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1165
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__153, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1165, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1165, __pyx_L1_error)

    /* "talib/stream.pyx":1164
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1166
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1167
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__154, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1167, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1167, __pyx_L1_error)

    /* "talib/stream.pyx":1166
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1168
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1169
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1169, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1169, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1168
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1170
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1171
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1172
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__155, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1172, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1172, __pyx_L1_error)

    /* "talib/stream.pyx":1171
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1173
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1174
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__156, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1174, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1174, __pyx_L1_error)

    /* "talib/stream.pyx":1173
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1175
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1176
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1176, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1176, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1175
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1177
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1178
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1179
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__157, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1179, __pyx_L1_error)

    /* "talib/stream.pyx":1178
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1180
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1181
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__158, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1181, __pyx_L1_error)

    /* "talib/stream.pyx":1180
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1182
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1183
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1183, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1183, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1182
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1184
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1185
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1186
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1187
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__159, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1187, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1187, __pyx_L1_error)

    /* "talib/stream.pyx":1186
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1188
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1189
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__160, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1189, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1189, __pyx_L1_error)

    /* "talib/stream.pyx":1188
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1190
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1191
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3OUTSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__161, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1191, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1191, __pyx_L1_error)

    /* "talib/stream.pyx":1190
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1192
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDL3OUTSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3OUTSIDE", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1193
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDL3OUTSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDL3OUTSIDE", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDL3OUTSIDE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1194
 *     outinteger = 0
 *     retCode = lib.TA_CDL3OUTSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3OUTSIDE", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDL3OUTSIDE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1195
 *     retCode = lib.TA_CDL3OUTSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3OUTSIDE", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1135
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3OUTSIDE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3OUTSIDE(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDL3OUTSIDE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1199
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3STARSINSOUTH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3STARSINSOUTH(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_45CDL3STARSINSOUTH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_44CDL3STARSINSOUTH[] = " CDL3STARSINSOUTH(open, high, low, close)\n\n    Three Stars In The South (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_45CDL3STARSINSOUTH = {"CDL3STARSINSOUTH", (PyCFunction)__pyx_pw_5talib_6stream_45CDL3STARSINSOUTH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_44CDL3STARSINSOUTH};
static PyObject *__pyx_pw_5talib_6stream_45CDL3STARSINSOUTH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDL3STARSINSOUTH (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3STARSINSOUTH", 1, 4, 4, 1); __PYX_ERR(0, 1199, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3STARSINSOUTH", 1, 4, 4, 2); __PYX_ERR(0, 1199, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3STARSINSOUTH", 1, 4, 4, 3); __PYX_ERR(0, 1199, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3STARSINSOUTH") < 0)) __PYX_ERR(0, 1199, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDL3STARSINSOUTH", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1199, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDL3STARSINSOUTH", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1199, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1199, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1199, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1199, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_44CDL3STARSINSOUTH(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_44CDL3STARSINSOUTH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDL3STARSINSOUTH", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1221
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1222
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__162, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1222, __pyx_L1_error)

    /* "talib/stream.pyx":1221
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1223
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1224
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__163, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1224, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1224, __pyx_L1_error)

    /* "talib/stream.pyx":1223
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1225
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1226
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1226, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1225
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1227
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1228
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1229
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__164, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1229, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1229, __pyx_L1_error)

    /* "talib/stream.pyx":1228
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1230
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1231
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__165, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1231, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1231, __pyx_L1_error)

    /* "talib/stream.pyx":1230
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1232
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1233
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1233, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1233, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1232
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1234
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1235
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1236
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__166, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1236, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1236, __pyx_L1_error)

    /* "talib/stream.pyx":1235
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1237
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1238
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__167, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1238, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1238, __pyx_L1_error)

    /* "talib/stream.pyx":1237
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1239
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1240
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1240, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1240, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1239
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1241
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1242
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1243
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__168, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1243, __pyx_L1_error)

    /* "talib/stream.pyx":1242
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1244
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1245
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__169, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1245, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1245, __pyx_L1_error)

    /* "talib/stream.pyx":1244
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1246
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1247
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1247, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1246
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1248
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1249
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1250
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1251
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__170, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1251, __pyx_L1_error)

    /* "talib/stream.pyx":1250
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1252
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1253
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__171, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1253, __pyx_L1_error)

    /* "talib/stream.pyx":1252
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1254
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1255
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3STARSINSOUTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__172, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1255, __pyx_L1_error)

    /* "talib/stream.pyx":1254
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1256
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDL3STARSINSOUTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3STARSINSOUTH", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1257
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDL3STARSINSOUTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDL3STARSINSOUTH", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDL3STARSINSOUTH((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1258
 *     outinteger = 0
 *     retCode = lib.TA_CDL3STARSINSOUTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3STARSINSOUTH", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDL3STARSINSOUTH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1259
 *     retCode = lib.TA_CDL3STARSINSOUTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3STARSINSOUTH", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1199
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3STARSINSOUTH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3STARSINSOUTH(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDL3STARSINSOUTH", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1263
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3WHITESOLDIERS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3WHITESOLDIERS(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_47CDL3WHITESOLDIERS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_46CDL3WHITESOLDIERS[] = " CDL3WHITESOLDIERS(open, high, low, close)\n\n    Three Advancing White Soldiers (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_47CDL3WHITESOLDIERS = {"CDL3WHITESOLDIERS", (PyCFunction)__pyx_pw_5talib_6stream_47CDL3WHITESOLDIERS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_46CDL3WHITESOLDIERS};
static PyObject *__pyx_pw_5talib_6stream_47CDL3WHITESOLDIERS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDL3WHITESOLDIERS (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3WHITESOLDIERS", 1, 4, 4, 1); __PYX_ERR(0, 1263, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3WHITESOLDIERS", 1, 4, 4, 2); __PYX_ERR(0, 1263, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDL3WHITESOLDIERS", 1, 4, 4, 3); __PYX_ERR(0, 1263, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3WHITESOLDIERS") < 0)) __PYX_ERR(0, 1263, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDL3WHITESOLDIERS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1263, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDL3WHITESOLDIERS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1263, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1263, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1263, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1263, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_46CDL3WHITESOLDIERS(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_46CDL3WHITESOLDIERS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDL3WHITESOLDIERS", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1285
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1286
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__173, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1286, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1286, __pyx_L1_error)

    /* "talib/stream.pyx":1285
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1287
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1288
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__174, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1288, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1288, __pyx_L1_error)

    /* "talib/stream.pyx":1287
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1289
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1290
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1290, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1290, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1289
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1291
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1292
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1293
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__175, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1293, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1293, __pyx_L1_error)

    /* "talib/stream.pyx":1292
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1294
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1295
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__176, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1295, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1295, __pyx_L1_error)

    /* "talib/stream.pyx":1294
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1296
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1297
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1297, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1297, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1296
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1298
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1299
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1300
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__177, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1300, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1300, __pyx_L1_error)

    /* "talib/stream.pyx":1299
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1301
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1302
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__178, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1302, __pyx_L1_error)

    /* "talib/stream.pyx":1301
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1303
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1304
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1304, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1303
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1305
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1306
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1307
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__179, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1307, __pyx_L1_error)

    /* "talib/stream.pyx":1306
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1308
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1309
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__180, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1309, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1309, __pyx_L1_error)

    /* "talib/stream.pyx":1308
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1310
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1311
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1311, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1311, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1310
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1312
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1313
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1314
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1315
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__181, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1315, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1315, __pyx_L1_error)

    /* "talib/stream.pyx":1314
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1316
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1317
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__182, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1317, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1317, __pyx_L1_error)

    /* "talib/stream.pyx":1316
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1318
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1319
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3WHITESOLDIERS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__183, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1319, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1319, __pyx_L1_error)

    /* "talib/stream.pyx":1318
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1320
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDL3WHITESOLDIERS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3WHITESOLDIERS", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1321
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDL3WHITESOLDIERS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDL3WHITESOLDIERS", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDL3WHITESOLDIERS((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1322
 *     outinteger = 0
 *     retCode = lib.TA_CDL3WHITESOLDIERS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3WHITESOLDIERS", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDL3WHITESOLDIERS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1322, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1323
 *     retCode = lib.TA_CDL3WHITESOLDIERS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDL3WHITESOLDIERS", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1263
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3WHITESOLDIERS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3WHITESOLDIERS(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDL3WHITESOLDIERS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1327
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLABANDONEDBABY( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLABANDONEDBABY(open, high, low, close[, penetration=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_49CDLABANDONEDBABY(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_48CDLABANDONEDBABY[] = " CDLABANDONEDBABY(open, high, low, close[, penetration=?])\n\n    Abandoned Baby (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Parameters:\n        penetration: 0.3\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_49CDLABANDONEDBABY = {"CDLABANDONEDBABY", (PyCFunction)__pyx_pw_5talib_6stream_49CDLABANDONEDBABY, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_48CDLABANDONEDBABY};
static PyObject *__pyx_pw_5talib_6stream_49CDLABANDONEDBABY(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  double __pyx_v_penetration;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLABANDONEDBABY (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_penetration,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLABANDONEDBABY", 0, 4, 5, 1); __PYX_ERR(0, 1327, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLABANDONEDBABY", 0, 4, 5, 2); __PYX_ERR(0, 1327, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLABANDONEDBABY", 0, 4, 5, 3); __PYX_ERR(0, 1327, __pyx_L3_error)
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_penetration);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLABANDONEDBABY") < 0)) __PYX_ERR(0, 1327, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
    if (values[4]) {
      __pyx_v_penetration = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_penetration == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1327, __pyx_L3_error)
    } else {
      __pyx_v_penetration = ((double)0.3);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLABANDONEDBABY", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1327, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLABANDONEDBABY", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1327, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1327, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1327, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1327, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_48CDLABANDONEDBABY(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_penetration);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_48CDLABANDONEDBABY(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLABANDONEDBABY", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1351
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1352
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__184, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1352, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1352, __pyx_L1_error)

    /* "talib/stream.pyx":1351
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1353
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1354
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__185, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1354, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1354, __pyx_L1_error)

    /* "talib/stream.pyx":1353
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1355
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1356
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1356, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1356, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1355
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1357
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1358
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1359
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__186, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1359, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1359, __pyx_L1_error)

    /* "talib/stream.pyx":1358
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1360
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1361
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__187, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1361, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1361, __pyx_L1_error)

    /* "talib/stream.pyx":1360
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1362
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1363
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1363, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1363, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1362
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1364
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1365
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1366
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__188, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1366, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1366, __pyx_L1_error)

    /* "talib/stream.pyx":1365
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1367
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1368
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__189, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1368, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1368, __pyx_L1_error)

    /* "talib/stream.pyx":1367
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1369
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1370
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1370, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1370, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1369
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1371
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1372
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1373
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__190, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1373, __pyx_L1_error)

    /* "talib/stream.pyx":1372
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1374
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1375
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__191, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1375, __pyx_L1_error)

    /* "talib/stream.pyx":1374
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1376
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1377
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1377, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1377, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1376
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1378
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1379
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1380
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1381
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__192, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1381, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1381, __pyx_L1_error)

    /* "talib/stream.pyx":1380
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1382
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1383
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__193, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1383, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1383, __pyx_L1_error)

    /* "talib/stream.pyx":1382
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1384
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1385
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLABANDONEDBABY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__194, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1385, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1385, __pyx_L1_error)

    /* "talib/stream.pyx":1384
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1386
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLABANDONEDBABY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLABANDONEDBABY", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1387
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLABANDONEDBABY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLABANDONEDBABY", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLABANDONEDBABY((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1388
 *     outinteger = 0
 *     retCode = lib.TA_CDLABANDONEDBABY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLABANDONEDBABY", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLABANDONEDBABY, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1388, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1389
 *     retCode = lib.TA_CDLABANDONEDBABY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLABANDONEDBABY", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1327
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLABANDONEDBABY( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLABANDONEDBABY(open, high, low, close[, penetration=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLABANDONEDBABY", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1393
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLADVANCEBLOCK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLADVANCEBLOCK(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_51CDLADVANCEBLOCK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_50CDLADVANCEBLOCK[] = " CDLADVANCEBLOCK(open, high, low, close)\n\n    Advance Block (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_51CDLADVANCEBLOCK = {"CDLADVANCEBLOCK", (PyCFunction)__pyx_pw_5talib_6stream_51CDLADVANCEBLOCK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_50CDLADVANCEBLOCK};
static PyObject *__pyx_pw_5talib_6stream_51CDLADVANCEBLOCK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLADVANCEBLOCK (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLADVANCEBLOCK", 1, 4, 4, 1); __PYX_ERR(0, 1393, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLADVANCEBLOCK", 1, 4, 4, 2); __PYX_ERR(0, 1393, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLADVANCEBLOCK", 1, 4, 4, 3); __PYX_ERR(0, 1393, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLADVANCEBLOCK") < 0)) __PYX_ERR(0, 1393, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLADVANCEBLOCK", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1393, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLADVANCEBLOCK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1393, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1393, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1393, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1393, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_50CDLADVANCEBLOCK(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_50CDLADVANCEBLOCK(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLADVANCEBLOCK", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1415
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1416
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__195, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1416, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1416, __pyx_L1_error)

    /* "talib/stream.pyx":1415
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1417
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1418
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__196, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1418, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1418, __pyx_L1_error)

    /* "talib/stream.pyx":1417
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1419
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1420
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1420, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1420, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1419
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1421
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1422
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1423
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__197, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1423, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1423, __pyx_L1_error)

    /* "talib/stream.pyx":1422
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1424
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1425
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__198, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1425, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1425, __pyx_L1_error)

    /* "talib/stream.pyx":1424
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1426
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1427
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1427, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1427, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1426
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1428
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1429
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1430
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__199, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1430, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1430, __pyx_L1_error)

    /* "talib/stream.pyx":1429
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1431
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1432
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__200, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1432, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1432, __pyx_L1_error)

    /* "talib/stream.pyx":1431
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1433
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1434
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1434, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1434, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1433
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1435
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1436
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1437
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__201, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1437, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1437, __pyx_L1_error)

    /* "talib/stream.pyx":1436
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1438
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1439
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__202, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1439, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1439, __pyx_L1_error)

    /* "talib/stream.pyx":1438
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1440
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1441
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1441, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1441, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1440
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1442
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1443
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1444
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1445
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__203, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1445, __pyx_L1_error)

    /* "talib/stream.pyx":1444
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1446
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1447
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__204, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1447, __pyx_L1_error)

    /* "talib/stream.pyx":1446
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1448
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1449
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLADVANCEBLOCK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__205, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1449, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1449, __pyx_L1_error)

    /* "talib/stream.pyx":1448
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1450
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLADVANCEBLOCK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLADVANCEBLOCK", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1451
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLADVANCEBLOCK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLADVANCEBLOCK", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLADVANCEBLOCK((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1452
 *     outinteger = 0
 *     retCode = lib.TA_CDLADVANCEBLOCK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLADVANCEBLOCK", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLADVANCEBLOCK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1452, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1453
 *     retCode = lib.TA_CDLADVANCEBLOCK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLADVANCEBLOCK", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1393
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLADVANCEBLOCK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLADVANCEBLOCK(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLADVANCEBLOCK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1457
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLBELTHOLD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLBELTHOLD(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_53CDLBELTHOLD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_52CDLBELTHOLD[] = " CDLBELTHOLD(open, high, low, close)\n\n    Belt-hold (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_53CDLBELTHOLD = {"CDLBELTHOLD", (PyCFunction)__pyx_pw_5talib_6stream_53CDLBELTHOLD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_52CDLBELTHOLD};
static PyObject *__pyx_pw_5talib_6stream_53CDLBELTHOLD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLBELTHOLD (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLBELTHOLD", 1, 4, 4, 1); __PYX_ERR(0, 1457, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLBELTHOLD", 1, 4, 4, 2); __PYX_ERR(0, 1457, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLBELTHOLD", 1, 4, 4, 3); __PYX_ERR(0, 1457, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLBELTHOLD") < 0)) __PYX_ERR(0, 1457, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLBELTHOLD", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1457, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLBELTHOLD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1457, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1457, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1457, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1457, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_52CDLBELTHOLD(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_52CDLBELTHOLD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLBELTHOLD", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1479
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1480
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__206, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1480, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1480, __pyx_L1_error)

    /* "talib/stream.pyx":1479
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1481
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1482
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__207, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1482, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1482, __pyx_L1_error)

    /* "talib/stream.pyx":1481
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1483
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1484
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1484, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1484, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1483
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1485
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1486
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1487
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__208, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1487, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1487, __pyx_L1_error)

    /* "talib/stream.pyx":1486
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1488
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1489
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__209, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1489, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1489, __pyx_L1_error)

    /* "talib/stream.pyx":1488
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1490
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1491
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1491, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1490
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1492
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1493
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1494
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__210, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1494, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1494, __pyx_L1_error)

    /* "talib/stream.pyx":1493
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1495
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1496
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__211, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1496, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1496, __pyx_L1_error)

    /* "talib/stream.pyx":1495
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1497
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1498
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1498, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1498, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1497
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1499
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1500
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1501
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__212, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1501, __pyx_L1_error)

    /* "talib/stream.pyx":1500
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1502
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1503
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__213, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1503, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1503, __pyx_L1_error)

    /* "talib/stream.pyx":1502
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1504
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1505
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1505, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1504
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1506
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1507
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1508
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1509
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__214, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1509, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1509, __pyx_L1_error)

    /* "talib/stream.pyx":1508
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1510
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1511
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__215, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1511, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1511, __pyx_L1_error)

    /* "talib/stream.pyx":1510
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1512
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1513
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLBELTHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__216, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1513, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1513, __pyx_L1_error)

    /* "talib/stream.pyx":1512
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1514
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLBELTHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLBELTHOLD", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1515
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLBELTHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLBELTHOLD", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLBELTHOLD((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1516
 *     outinteger = 0
 *     retCode = lib.TA_CDLBELTHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLBELTHOLD", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLBELTHOLD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1516, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1517
 *     retCode = lib.TA_CDLBELTHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLBELTHOLD", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1457
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLBELTHOLD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLBELTHOLD(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLBELTHOLD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1521
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLBREAKAWAY( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLBREAKAWAY(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_55CDLBREAKAWAY(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_54CDLBREAKAWAY[] = " CDLBREAKAWAY(open, high, low, close)\n\n    Breakaway (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_55CDLBREAKAWAY = {"CDLBREAKAWAY", (PyCFunction)__pyx_pw_5talib_6stream_55CDLBREAKAWAY, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_54CDLBREAKAWAY};
static PyObject *__pyx_pw_5talib_6stream_55CDLBREAKAWAY(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLBREAKAWAY (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLBREAKAWAY", 1, 4, 4, 1); __PYX_ERR(0, 1521, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLBREAKAWAY", 1, 4, 4, 2); __PYX_ERR(0, 1521, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLBREAKAWAY", 1, 4, 4, 3); __PYX_ERR(0, 1521, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLBREAKAWAY") < 0)) __PYX_ERR(0, 1521, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLBREAKAWAY", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1521, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLBREAKAWAY", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1521, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1521, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1521, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1521, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_54CDLBREAKAWAY(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_54CDLBREAKAWAY(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLBREAKAWAY", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1543
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1544
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__217, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1544, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1544, __pyx_L1_error)

    /* "talib/stream.pyx":1543
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1545
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1546
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__218, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1546, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1546, __pyx_L1_error)

    /* "talib/stream.pyx":1545
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1547
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1548
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1548, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1548, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1547
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1549
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1550
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1551
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__219, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1551, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1551, __pyx_L1_error)

    /* "talib/stream.pyx":1550
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1552
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1553
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__220, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1553, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1553, __pyx_L1_error)

    /* "talib/stream.pyx":1552
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1554
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1555
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1555, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1555, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1554
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1556
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1557
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1558
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__221, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1558, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1558, __pyx_L1_error)

    /* "talib/stream.pyx":1557
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1559
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1560
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__222, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1560, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1560, __pyx_L1_error)

    /* "talib/stream.pyx":1559
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1561
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1562
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1562, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1562, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1561
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1563
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1564
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1565
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__223, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1565, __pyx_L1_error)

    /* "talib/stream.pyx":1564
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1566
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1567
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__224, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1567, __pyx_L1_error)

    /* "talib/stream.pyx":1566
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1568
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1569
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1569, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1569, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1568
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1570
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1571
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1572
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1573
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__225, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1573, __pyx_L1_error)

    /* "talib/stream.pyx":1572
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1574
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1575
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__226, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1575, __pyx_L1_error)

    /* "talib/stream.pyx":1574
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1576
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1577
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLBREAKAWAY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__227, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1577, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1577, __pyx_L1_error)

    /* "talib/stream.pyx":1576
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1578
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLBREAKAWAY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLBREAKAWAY", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1579
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLBREAKAWAY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLBREAKAWAY", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLBREAKAWAY((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1580
 *     outinteger = 0
 *     retCode = lib.TA_CDLBREAKAWAY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLBREAKAWAY", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLBREAKAWAY, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1581
 *     retCode = lib.TA_CDLBREAKAWAY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLBREAKAWAY", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1521
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLBREAKAWAY( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLBREAKAWAY(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLBREAKAWAY", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1585
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCLOSINGMARUBOZU( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCLOSINGMARUBOZU(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_57CDLCLOSINGMARUBOZU(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_56CDLCLOSINGMARUBOZU[] = " CDLCLOSINGMARUBOZU(open, high, low, close)\n\n    Closing Marubozu (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_57CDLCLOSINGMARUBOZU = {"CDLCLOSINGMARUBOZU", (PyCFunction)__pyx_pw_5talib_6stream_57CDLCLOSINGMARUBOZU, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_56CDLCLOSINGMARUBOZU};
static PyObject *__pyx_pw_5talib_6stream_57CDLCLOSINGMARUBOZU(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLCLOSINGMARUBOZU (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLCLOSINGMARUBOZU", 1, 4, 4, 1); __PYX_ERR(0, 1585, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLCLOSINGMARUBOZU", 1, 4, 4, 2); __PYX_ERR(0, 1585, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLCLOSINGMARUBOZU", 1, 4, 4, 3); __PYX_ERR(0, 1585, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLCLOSINGMARUBOZU") < 0)) __PYX_ERR(0, 1585, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLCLOSINGMARUBOZU", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1585, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLCLOSINGMARUBOZU", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1585, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1585, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1585, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1585, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_56CDLCLOSINGMARUBOZU(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_56CDLCLOSINGMARUBOZU(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLCLOSINGMARUBOZU", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1607
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1608
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__228, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1608, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1608, __pyx_L1_error)

    /* "talib/stream.pyx":1607
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1609
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1610
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__229, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1610, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1610, __pyx_L1_error)

    /* "talib/stream.pyx":1609
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1611
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1612
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1612, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1612, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1611
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1613
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1614
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1615
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__230, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1615, __pyx_L1_error)

    /* "talib/stream.pyx":1614
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1616
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1617
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__231, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1617, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1617, __pyx_L1_error)

    /* "talib/stream.pyx":1616
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1618
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1619
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1619, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1618
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1620
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1621
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1622
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__232, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1622, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1622, __pyx_L1_error)

    /* "talib/stream.pyx":1621
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1623
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1624
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__233, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1624, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1624, __pyx_L1_error)

    /* "talib/stream.pyx":1623
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1625
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1626
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1626, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1625
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1627
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1628
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1629
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__234, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1629, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1629, __pyx_L1_error)

    /* "talib/stream.pyx":1628
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1630
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1631
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__235, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1631, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1631, __pyx_L1_error)

    /* "talib/stream.pyx":1630
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1632
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1633
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1633, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1632
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1634
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1635
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1636
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1637
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__236, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1637, __pyx_L1_error)

    /* "talib/stream.pyx":1636
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1638
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1639
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__237, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1639, __pyx_L1_error)

    /* "talib/stream.pyx":1638
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1640
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1641
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLCLOSINGMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__238, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1641, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1641, __pyx_L1_error)

    /* "talib/stream.pyx":1640
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1642
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLCLOSINGMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLCLOSINGMARUBOZU", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1643
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLCLOSINGMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLCLOSINGMARUBOZU", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLCLOSINGMARUBOZU((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1644
 *     outinteger = 0
 *     retCode = lib.TA_CDLCLOSINGMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLCLOSINGMARUBOZU", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLCLOSINGMARUBOZU, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1645
 *     retCode = lib.TA_CDLCLOSINGMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLCLOSINGMARUBOZU", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1585
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCLOSINGMARUBOZU( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCLOSINGMARUBOZU(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLCLOSINGMARUBOZU", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1649
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCONCEALBABYSWALL( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCONCEALBABYSWALL(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_59CDLCONCEALBABYSWALL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_58CDLCONCEALBABYSWALL[] = " CDLCONCEALBABYSWALL(open, high, low, close)\n\n    Concealing Baby Swallow (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_59CDLCONCEALBABYSWALL = {"CDLCONCEALBABYSWALL", (PyCFunction)__pyx_pw_5talib_6stream_59CDLCONCEALBABYSWALL, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_58CDLCONCEALBABYSWALL};
static PyObject *__pyx_pw_5talib_6stream_59CDLCONCEALBABYSWALL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLCONCEALBABYSWALL (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLCONCEALBABYSWALL", 1, 4, 4, 1); __PYX_ERR(0, 1649, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLCONCEALBABYSWALL", 1, 4, 4, 2); __PYX_ERR(0, 1649, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLCONCEALBABYSWALL", 1, 4, 4, 3); __PYX_ERR(0, 1649, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLCONCEALBABYSWALL") < 0)) __PYX_ERR(0, 1649, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLCONCEALBABYSWALL", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1649, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLCONCEALBABYSWALL", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1649, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1649, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1649, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1649, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_58CDLCONCEALBABYSWALL(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_58CDLCONCEALBABYSWALL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLCONCEALBABYSWALL", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1671
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1672
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__239, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1672, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1672, __pyx_L1_error)

    /* "talib/stream.pyx":1671
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1673
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1674
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__240, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1674, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1674, __pyx_L1_error)

    /* "talib/stream.pyx":1673
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1675
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1676
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1676, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1676, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1675
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1677
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1678
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1679
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__241, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1679, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1679, __pyx_L1_error)

    /* "talib/stream.pyx":1678
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1680
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1681
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__242, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1681, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1681, __pyx_L1_error)

    /* "talib/stream.pyx":1680
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1682
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1683
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1683, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1683, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1682
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1684
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1685
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1686
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__243, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1686, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1686, __pyx_L1_error)

    /* "talib/stream.pyx":1685
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1687
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1688
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__244, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1688, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1688, __pyx_L1_error)

    /* "talib/stream.pyx":1687
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1689
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1690
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1690, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1690, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1689
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1691
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1692
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1693
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__245, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1693, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1693, __pyx_L1_error)

    /* "talib/stream.pyx":1692
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1694
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1695
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__246, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1695, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1695, __pyx_L1_error)

    /* "talib/stream.pyx":1694
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1696
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1697
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1697, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1697, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1696
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1698
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1699
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1700
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1701
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__247, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1701, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1701, __pyx_L1_error)

    /* "talib/stream.pyx":1700
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1702
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1703
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__248, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1703, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1703, __pyx_L1_error)

    /* "talib/stream.pyx":1702
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1704
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1705
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLCONCEALBABYSWALL( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__249, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1705, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1705, __pyx_L1_error)

    /* "talib/stream.pyx":1704
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1706
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLCONCEALBABYSWALL( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLCONCEALBABYSWALL", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1707
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLCONCEALBABYSWALL( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLCONCEALBABYSWALL", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLCONCEALBABYSWALL((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1708
 *     outinteger = 0
 *     retCode = lib.TA_CDLCONCEALBABYSWALL( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLCONCEALBABYSWALL", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLCONCEALBABYSWALL, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1709
 *     retCode = lib.TA_CDLCONCEALBABYSWALL( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLCONCEALBABYSWALL", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1649
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCONCEALBABYSWALL( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCONCEALBABYSWALL(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLCONCEALBABYSWALL", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1713
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCOUNTERATTACK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCOUNTERATTACK(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_61CDLCOUNTERATTACK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_60CDLCOUNTERATTACK[] = " CDLCOUNTERATTACK(open, high, low, close)\n\n    Counterattack (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_61CDLCOUNTERATTACK = {"CDLCOUNTERATTACK", (PyCFunction)__pyx_pw_5talib_6stream_61CDLCOUNTERATTACK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_60CDLCOUNTERATTACK};
static PyObject *__pyx_pw_5talib_6stream_61CDLCOUNTERATTACK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLCOUNTERATTACK (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLCOUNTERATTACK", 1, 4, 4, 1); __PYX_ERR(0, 1713, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLCOUNTERATTACK", 1, 4, 4, 2); __PYX_ERR(0, 1713, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLCOUNTERATTACK", 1, 4, 4, 3); __PYX_ERR(0, 1713, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLCOUNTERATTACK") < 0)) __PYX_ERR(0, 1713, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLCOUNTERATTACK", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1713, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLCOUNTERATTACK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1713, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1713, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1713, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1713, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_60CDLCOUNTERATTACK(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_60CDLCOUNTERATTACK(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLCOUNTERATTACK", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1735
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1736
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__250, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1736, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1736, __pyx_L1_error)

    /* "talib/stream.pyx":1735
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1737
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1738
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__251, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1738, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1738, __pyx_L1_error)

    /* "talib/stream.pyx":1737
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1739
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1740
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1740, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1740, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1739
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1741
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1742
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1743
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__252, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1743, __pyx_L1_error)

    /* "talib/stream.pyx":1742
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1744
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1745
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__253, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1745, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1745, __pyx_L1_error)

    /* "talib/stream.pyx":1744
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1746
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1747
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1747, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1747, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1746
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1748
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1749
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1750
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__254, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1750, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1750, __pyx_L1_error)

    /* "talib/stream.pyx":1749
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1751
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1752
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__255, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1752, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1752, __pyx_L1_error)

    /* "talib/stream.pyx":1751
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1753
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1754
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1754, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1754, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1753
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1755
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1756
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1757
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__256, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1757, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1757, __pyx_L1_error)

    /* "talib/stream.pyx":1756
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1758
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1759
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__257, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1759, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1759, __pyx_L1_error)

    /* "talib/stream.pyx":1758
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1760
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1761
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1761, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1761, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1760
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1762
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1763
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1764
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1765
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__258, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1765, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1765, __pyx_L1_error)

    /* "talib/stream.pyx":1764
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1766
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1767
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__259, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1767, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1767, __pyx_L1_error)

    /* "talib/stream.pyx":1766
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1768
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1769
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLCOUNTERATTACK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__260, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1769, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1769, __pyx_L1_error)

    /* "talib/stream.pyx":1768
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1770
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLCOUNTERATTACK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLCOUNTERATTACK", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1771
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLCOUNTERATTACK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLCOUNTERATTACK", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLCOUNTERATTACK((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1772
 *     outinteger = 0
 *     retCode = lib.TA_CDLCOUNTERATTACK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLCOUNTERATTACK", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLCOUNTERATTACK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1773
 *     retCode = lib.TA_CDLCOUNTERATTACK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLCOUNTERATTACK", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1713
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCOUNTERATTACK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCOUNTERATTACK(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLCOUNTERATTACK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1777
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDARKCLOUDCOVER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.5 ):             # <<<<<<<<<<<<<<
 *     """ CDLDARKCLOUDCOVER(open, high, low, close[, penetration=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_63CDLDARKCLOUDCOVER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_62CDLDARKCLOUDCOVER[] = " CDLDARKCLOUDCOVER(open, high, low, close[, penetration=?])\n\n    Dark Cloud Cover (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Parameters:\n        penetration: 0.5\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_63CDLDARKCLOUDCOVER = {"CDLDARKCLOUDCOVER", (PyCFunction)__pyx_pw_5talib_6stream_63CDLDARKCLOUDCOVER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_62CDLDARKCLOUDCOVER};
static PyObject *__pyx_pw_5talib_6stream_63CDLDARKCLOUDCOVER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  double __pyx_v_penetration;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLDARKCLOUDCOVER (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_penetration,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDARKCLOUDCOVER", 0, 4, 5, 1); __PYX_ERR(0, 1777, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDARKCLOUDCOVER", 0, 4, 5, 2); __PYX_ERR(0, 1777, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDARKCLOUDCOVER", 0, 4, 5, 3); __PYX_ERR(0, 1777, __pyx_L3_error)
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_penetration);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLDARKCLOUDCOVER") < 0)) __PYX_ERR(0, 1777, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
    if (values[4]) {
      __pyx_v_penetration = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_penetration == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 1777, __pyx_L3_error)
    } else {
      __pyx_v_penetration = ((double)0.5);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLDARKCLOUDCOVER", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1777, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLDARKCLOUDCOVER", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1777, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1777, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1777, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1777, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_62CDLDARKCLOUDCOVER(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_penetration);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_62CDLDARKCLOUDCOVER(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLDARKCLOUDCOVER", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1801
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1802
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__261, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1802, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1802, __pyx_L1_error)

    /* "talib/stream.pyx":1801
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1803
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1804
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__262, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1804, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1804, __pyx_L1_error)

    /* "talib/stream.pyx":1803
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1805
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1806
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1806, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1806, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1805
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1807
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1808
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1809
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__263, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1809, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1809, __pyx_L1_error)

    /* "talib/stream.pyx":1808
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1810
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1811
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__264, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1811, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1811, __pyx_L1_error)

    /* "talib/stream.pyx":1810
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1812
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1813
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1813, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1813, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1812
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1814
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1815
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1816
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__265, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1816, __pyx_L1_error)

    /* "talib/stream.pyx":1815
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1817
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1818
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__266, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1818, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1818, __pyx_L1_error)

    /* "talib/stream.pyx":1817
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1819
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1820
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1820, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1820, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1819
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1821
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1822
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1823
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__267, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1823, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1823, __pyx_L1_error)

    /* "talib/stream.pyx":1822
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1824
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1825
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__268, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1825, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1825, __pyx_L1_error)

    /* "talib/stream.pyx":1824
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1826
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1827
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1827, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1826
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1828
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1829
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1830
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1831
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__269, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1831, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1831, __pyx_L1_error)

    /* "talib/stream.pyx":1830
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1832
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1833
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__270, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1833, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1833, __pyx_L1_error)

    /* "talib/stream.pyx":1832
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1834
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1835
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLDARKCLOUDCOVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__271, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1835, __pyx_L1_error)

    /* "talib/stream.pyx":1834
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1836
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLDARKCLOUDCOVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDARKCLOUDCOVER", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1837
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLDARKCLOUDCOVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLDARKCLOUDCOVER", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLDARKCLOUDCOVER((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1838
 *     outinteger = 0
 *     retCode = lib.TA_CDLDARKCLOUDCOVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDARKCLOUDCOVER", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLDARKCLOUDCOVER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1839
 *     retCode = lib.TA_CDLDARKCLOUDCOVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDARKCLOUDCOVER", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1839, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1777
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDARKCLOUDCOVER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.5 ):             # <<<<<<<<<<<<<<
 *     """ CDLDARKCLOUDCOVER(open, high, low, close[, penetration=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLDARKCLOUDCOVER", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1843
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDOJI(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_65CDLDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_64CDLDOJI[] = " CDLDOJI(open, high, low, close)\n\n    Doji (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_65CDLDOJI = {"CDLDOJI", (PyCFunction)__pyx_pw_5talib_6stream_65CDLDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_64CDLDOJI};
static PyObject *__pyx_pw_5talib_6stream_65CDLDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLDOJI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDOJI", 1, 4, 4, 1); __PYX_ERR(0, 1843, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDOJI", 1, 4, 4, 2); __PYX_ERR(0, 1843, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDOJI", 1, 4, 4, 3); __PYX_ERR(0, 1843, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLDOJI") < 0)) __PYX_ERR(0, 1843, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLDOJI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1843, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1843, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1843, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1843, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1843, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_64CDLDOJI(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_64CDLDOJI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLDOJI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1865
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1866
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__272, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1866, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1866, __pyx_L1_error)

    /* "talib/stream.pyx":1865
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1867
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1868
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__273, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1868, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1868, __pyx_L1_error)

    /* "talib/stream.pyx":1867
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1869
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1870
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1870, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1870, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1869
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1871
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1872
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1873
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__274, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1873, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1873, __pyx_L1_error)

    /* "talib/stream.pyx":1872
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1874
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1875
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__275, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1875, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1875, __pyx_L1_error)

    /* "talib/stream.pyx":1874
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1876
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1877
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1877, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1877, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1876
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1878
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1879
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1880
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__276, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1880, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1880, __pyx_L1_error)

    /* "talib/stream.pyx":1879
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1881
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1882
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__277, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1882, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1882, __pyx_L1_error)

    /* "talib/stream.pyx":1881
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1883
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1884
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1884, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1884, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1883
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1885
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1886
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1887
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__278, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1887, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1887, __pyx_L1_error)

    /* "talib/stream.pyx":1886
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1888
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1889
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__279, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1889, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1889, __pyx_L1_error)

    /* "talib/stream.pyx":1888
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1890
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1891
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1891, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1891, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1890
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1892
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1893
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1894
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1895
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__280, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1895, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1895, __pyx_L1_error)

    /* "talib/stream.pyx":1894
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1896
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1897
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__281, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1897, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1897, __pyx_L1_error)

    /* "talib/stream.pyx":1896
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1898
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1899
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__282, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1899, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1899, __pyx_L1_error)

    /* "talib/stream.pyx":1898
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1900
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDOJI", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1901
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLDOJI", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLDOJI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1902
 *     outinteger = 0
 *     retCode = lib.TA_CDLDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDOJI", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1903
 *     retCode = lib.TA_CDLDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDOJI", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1843
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDOJI(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1907
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDOJISTAR(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_67CDLDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_66CDLDOJISTAR[] = " CDLDOJISTAR(open, high, low, close)\n\n    Doji Star (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_67CDLDOJISTAR = {"CDLDOJISTAR", (PyCFunction)__pyx_pw_5talib_6stream_67CDLDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_66CDLDOJISTAR};
static PyObject *__pyx_pw_5talib_6stream_67CDLDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLDOJISTAR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDOJISTAR", 1, 4, 4, 1); __PYX_ERR(0, 1907, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDOJISTAR", 1, 4, 4, 2); __PYX_ERR(0, 1907, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDOJISTAR", 1, 4, 4, 3); __PYX_ERR(0, 1907, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLDOJISTAR") < 0)) __PYX_ERR(0, 1907, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLDOJISTAR", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1907, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1907, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1907, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1907, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1907, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_66CDLDOJISTAR(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_66CDLDOJISTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLDOJISTAR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1929
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1930
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__283, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1930, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1930, __pyx_L1_error)

    /* "talib/stream.pyx":1929
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1931
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1932
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__284, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1932, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1932, __pyx_L1_error)

    /* "talib/stream.pyx":1931
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1933
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1934
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1934, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1934, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1933
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1935
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":1936
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1937
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__285, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1937, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1937, __pyx_L1_error)

    /* "talib/stream.pyx":1936
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1938
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1939
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__286, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1939, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1939, __pyx_L1_error)

    /* "talib/stream.pyx":1938
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1940
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1941
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1941, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1941, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1940
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":1942
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":1943
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1944
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__287, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1944, __pyx_L1_error)

    /* "talib/stream.pyx":1943
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1945
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1946
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__288, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1946, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1946, __pyx_L1_error)

    /* "talib/stream.pyx":1945
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1947
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1948
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1948, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1948, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1947
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":1949
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":1950
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1951
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__289, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1951, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1951, __pyx_L1_error)

    /* "talib/stream.pyx":1950
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1952
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1953
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__290, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1953, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1953, __pyx_L1_error)

    /* "talib/stream.pyx":1952
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1954
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1955
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1955, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1955, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1954
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":1956
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":1957
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":1958
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1959
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__291, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1959, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1959, __pyx_L1_error)

    /* "talib/stream.pyx":1958
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":1960
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1961
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__292, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1961, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1961, __pyx_L1_error)

    /* "talib/stream.pyx":1960
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":1962
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1963
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__293, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1963, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1963, __pyx_L1_error)

    /* "talib/stream.pyx":1962
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":1964
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDOJISTAR", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":1965
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLDOJISTAR", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLDOJISTAR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":1966
 *     outinteger = 0
 *     retCode = lib.TA_CDLDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDOJISTAR", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLDOJISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":1967
 *     retCode = lib.TA_CDLDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDOJISTAR", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1907
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDOJISTAR(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":1971
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDRAGONFLYDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDRAGONFLYDOJI(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_69CDLDRAGONFLYDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_68CDLDRAGONFLYDOJI[] = " CDLDRAGONFLYDOJI(open, high, low, close)\n\n    Dragonfly Doji (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_69CDLDRAGONFLYDOJI = {"CDLDRAGONFLYDOJI", (PyCFunction)__pyx_pw_5talib_6stream_69CDLDRAGONFLYDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_68CDLDRAGONFLYDOJI};
static PyObject *__pyx_pw_5talib_6stream_69CDLDRAGONFLYDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLDRAGONFLYDOJI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDRAGONFLYDOJI", 1, 4, 4, 1); __PYX_ERR(0, 1971, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDRAGONFLYDOJI", 1, 4, 4, 2); __PYX_ERR(0, 1971, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLDRAGONFLYDOJI", 1, 4, 4, 3); __PYX_ERR(0, 1971, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLDRAGONFLYDOJI") < 0)) __PYX_ERR(0, 1971, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLDRAGONFLYDOJI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 1971, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLDRAGONFLYDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 1971, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1971, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1971, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1971, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_68CDLDRAGONFLYDOJI(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_68CDLDRAGONFLYDOJI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLDRAGONFLYDOJI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":1993
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1994
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__294, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1994, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1994, __pyx_L1_error)

    /* "talib/stream.pyx":1993
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":1995
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1996
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__295, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1996, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 1996, __pyx_L1_error)

    /* "talib/stream.pyx":1995
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":1997
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":1998
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1998, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1998, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":1997
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":1999
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2000
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2001
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__296, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2001, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2001, __pyx_L1_error)

    /* "talib/stream.pyx":2000
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2002
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2003
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__297, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2003, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2003, __pyx_L1_error)

    /* "talib/stream.pyx":2002
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2004
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2005
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2005, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2005, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2004
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2006
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2007
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2008
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__298, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2008, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2008, __pyx_L1_error)

    /* "talib/stream.pyx":2007
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2009
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2010
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__299, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2010, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2010, __pyx_L1_error)

    /* "talib/stream.pyx":2009
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2011
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2012
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2012, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2012, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2011
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2013
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2014
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2015
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__300, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2015, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2015, __pyx_L1_error)

    /* "talib/stream.pyx":2014
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2016
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2017
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__301, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2017, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2017, __pyx_L1_error)

    /* "talib/stream.pyx":2016
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2018
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2019
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2019, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2019, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2018
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2020
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2021
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2022
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2023
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__302, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2023, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2023, __pyx_L1_error)

    /* "talib/stream.pyx":2022
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2024
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2025
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__303, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2025, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2025, __pyx_L1_error)

    /* "talib/stream.pyx":2024
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2026
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2027
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLDRAGONFLYDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__304, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2027, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2027, __pyx_L1_error)

    /* "talib/stream.pyx":2026
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2028
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLDRAGONFLYDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDRAGONFLYDOJI", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2029
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLDRAGONFLYDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLDRAGONFLYDOJI", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLDRAGONFLYDOJI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2030
 *     outinteger = 0
 *     retCode = lib.TA_CDLDRAGONFLYDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDRAGONFLYDOJI", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLDRAGONFLYDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2030, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2031
 *     retCode = lib.TA_CDLDRAGONFLYDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLDRAGONFLYDOJI", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2031, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":1971
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDRAGONFLYDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDRAGONFLYDOJI(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLDRAGONFLYDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2035
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLENGULFING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLENGULFING(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_71CDLENGULFING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_70CDLENGULFING[] = " CDLENGULFING(open, high, low, close)\n\n    Engulfing Pattern (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_71CDLENGULFING = {"CDLENGULFING", (PyCFunction)__pyx_pw_5talib_6stream_71CDLENGULFING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_70CDLENGULFING};
static PyObject *__pyx_pw_5talib_6stream_71CDLENGULFING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLENGULFING (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLENGULFING", 1, 4, 4, 1); __PYX_ERR(0, 2035, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLENGULFING", 1, 4, 4, 2); __PYX_ERR(0, 2035, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLENGULFING", 1, 4, 4, 3); __PYX_ERR(0, 2035, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLENGULFING") < 0)) __PYX_ERR(0, 2035, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLENGULFING", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2035, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLENGULFING", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2035, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2035, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2035, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2035, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_70CDLENGULFING(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_70CDLENGULFING(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLENGULFING", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2057
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2058
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__305, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2058, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2058, __pyx_L1_error)

    /* "talib/stream.pyx":2057
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2059
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2060
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__306, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2060, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2060, __pyx_L1_error)

    /* "talib/stream.pyx":2059
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2061
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2062
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2062, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2062, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2061
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2063
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2064
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2065
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__307, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2065, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2065, __pyx_L1_error)

    /* "talib/stream.pyx":2064
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2066
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2067
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__308, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2067, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2067, __pyx_L1_error)

    /* "talib/stream.pyx":2066
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2068
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2069
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2069, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2069, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2068
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2070
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2071
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2072
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__309, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2072, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2072, __pyx_L1_error)

    /* "talib/stream.pyx":2071
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2073
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2074
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__310, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2074, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2074, __pyx_L1_error)

    /* "talib/stream.pyx":2073
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2075
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2076
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2076, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2076, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2075
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2077
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2078
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2079
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__311, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2079, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2079, __pyx_L1_error)

    /* "talib/stream.pyx":2078
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2080
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2081
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__312, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2081, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2081, __pyx_L1_error)

    /* "talib/stream.pyx":2080
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2082
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2083
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2083, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2083, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2082
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2084
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2085
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2086
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2087
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__313, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2087, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2087, __pyx_L1_error)

    /* "talib/stream.pyx":2086
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2088
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2089
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__314, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2089, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2089, __pyx_L1_error)

    /* "talib/stream.pyx":2088
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2090
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2091
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLENGULFING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__315, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2091, __pyx_L1_error)

    /* "talib/stream.pyx":2090
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2092
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLENGULFING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLENGULFING", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2093
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLENGULFING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLENGULFING", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLENGULFING((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2094
 *     outinteger = 0
 *     retCode = lib.TA_CDLENGULFING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLENGULFING", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLENGULFING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2095
 *     retCode = lib.TA_CDLENGULFING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLENGULFING", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2035
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLENGULFING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLENGULFING(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLENGULFING", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2099
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLEVENINGDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLEVENINGDOJISTAR(open, high, low, close[, penetration=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_73CDLEVENINGDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_72CDLEVENINGDOJISTAR[] = " CDLEVENINGDOJISTAR(open, high, low, close[, penetration=?])\n\n    Evening Doji Star (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Parameters:\n        penetration: 0.3\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_73CDLEVENINGDOJISTAR = {"CDLEVENINGDOJISTAR", (PyCFunction)__pyx_pw_5talib_6stream_73CDLEVENINGDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_72CDLEVENINGDOJISTAR};
static PyObject *__pyx_pw_5talib_6stream_73CDLEVENINGDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  double __pyx_v_penetration;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLEVENINGDOJISTAR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_penetration,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLEVENINGDOJISTAR", 0, 4, 5, 1); __PYX_ERR(0, 2099, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLEVENINGDOJISTAR", 0, 4, 5, 2); __PYX_ERR(0, 2099, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLEVENINGDOJISTAR", 0, 4, 5, 3); __PYX_ERR(0, 2099, __pyx_L3_error)
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_penetration);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLEVENINGDOJISTAR") < 0)) __PYX_ERR(0, 2099, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
    if (values[4]) {
      __pyx_v_penetration = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_penetration == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2099, __pyx_L3_error)
    } else {
      __pyx_v_penetration = ((double)0.3);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLEVENINGDOJISTAR", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2099, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLEVENINGDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2099, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2099, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2099, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2099, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_72CDLEVENINGDOJISTAR(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_penetration);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_72CDLEVENINGDOJISTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLEVENINGDOJISTAR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2123
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2124
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__316, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2124, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2124, __pyx_L1_error)

    /* "talib/stream.pyx":2123
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2125
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2126
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__317, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2126, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2126, __pyx_L1_error)

    /* "talib/stream.pyx":2125
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2127
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2128
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2128, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2128, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2127
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2129
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2130
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2131
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__318, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2131, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2131, __pyx_L1_error)

    /* "talib/stream.pyx":2130
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2132
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2133
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__319, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2133, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2133, __pyx_L1_error)

    /* "talib/stream.pyx":2132
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2134
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2135
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2135, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2135, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2134
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2136
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2137
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2138
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__320, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2138, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2138, __pyx_L1_error)

    /* "talib/stream.pyx":2137
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2139
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2140
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__321, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2140, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2140, __pyx_L1_error)

    /* "talib/stream.pyx":2139
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2141
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2142
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2142, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2142, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2141
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2143
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2144
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2145
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__322, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2145, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2145, __pyx_L1_error)

    /* "talib/stream.pyx":2144
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2146
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2147
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__323, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2147, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2147, __pyx_L1_error)

    /* "talib/stream.pyx":2146
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2148
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2149
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2149, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2149, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2148
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2150
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2151
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2152
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2153
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__324, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2153, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2153, __pyx_L1_error)

    /* "talib/stream.pyx":2152
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2154
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2155
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__325, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2155, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2155, __pyx_L1_error)

    /* "talib/stream.pyx":2154
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2156
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2157
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLEVENINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__326, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2157, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2157, __pyx_L1_error)

    /* "talib/stream.pyx":2156
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2158
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLEVENINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLEVENINGDOJISTAR", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2159
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLEVENINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLEVENINGDOJISTAR", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLEVENINGDOJISTAR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2160
 *     outinteger = 0
 *     retCode = lib.TA_CDLEVENINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLEVENINGDOJISTAR", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLEVENINGDOJISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2161
 *     retCode = lib.TA_CDLEVENINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLEVENINGDOJISTAR", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2161, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2099
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLEVENINGDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLEVENINGDOJISTAR(open, high, low, close[, penetration=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLEVENINGDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2165
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLEVENINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLEVENINGSTAR(open, high, low, close[, penetration=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_75CDLEVENINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_74CDLEVENINGSTAR[] = " CDLEVENINGSTAR(open, high, low, close[, penetration=?])\n\n    Evening Star (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Parameters:\n        penetration: 0.3\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_75CDLEVENINGSTAR = {"CDLEVENINGSTAR", (PyCFunction)__pyx_pw_5talib_6stream_75CDLEVENINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_74CDLEVENINGSTAR};
static PyObject *__pyx_pw_5talib_6stream_75CDLEVENINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  double __pyx_v_penetration;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLEVENINGSTAR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_penetration,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLEVENINGSTAR", 0, 4, 5, 1); __PYX_ERR(0, 2165, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLEVENINGSTAR", 0, 4, 5, 2); __PYX_ERR(0, 2165, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLEVENINGSTAR", 0, 4, 5, 3); __PYX_ERR(0, 2165, __pyx_L3_error)
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_penetration);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLEVENINGSTAR") < 0)) __PYX_ERR(0, 2165, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
    if (values[4]) {
      __pyx_v_penetration = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_penetration == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 2165, __pyx_L3_error)
    } else {
      __pyx_v_penetration = ((double)0.3);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLEVENINGSTAR", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2165, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLEVENINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2165, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2165, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2165, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2165, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_74CDLEVENINGSTAR(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_penetration);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_74CDLEVENINGSTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLEVENINGSTAR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2189
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2190
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__327, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2190, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2190, __pyx_L1_error)

    /* "talib/stream.pyx":2189
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2191
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2192
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__328, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2192, __pyx_L1_error)

    /* "talib/stream.pyx":2191
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2193
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2194
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2194, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2194, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2193
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2195
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2196
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2197
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__329, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2197, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2197, __pyx_L1_error)

    /* "talib/stream.pyx":2196
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2198
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2199
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__330, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2199, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2199, __pyx_L1_error)

    /* "talib/stream.pyx":2198
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2200
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2201
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2201, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2200
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2202
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2203
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2204
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__331, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2204, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2204, __pyx_L1_error)

    /* "talib/stream.pyx":2203
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2205
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2206
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__332, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2206, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2206, __pyx_L1_error)

    /* "talib/stream.pyx":2205
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2207
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2208
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2208, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2208, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2207
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2209
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2210
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2211
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__333, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2211, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2211, __pyx_L1_error)

    /* "talib/stream.pyx":2210
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2212
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2213
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__334, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2213, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2213, __pyx_L1_error)

    /* "talib/stream.pyx":2212
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2214
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2215
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2215, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2215, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2214
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2216
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2217
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2218
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2219
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__335, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2219, __pyx_L1_error)

    /* "talib/stream.pyx":2218
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2220
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2221
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__336, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2221, __pyx_L1_error)

    /* "talib/stream.pyx":2220
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2222
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2223
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLEVENINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__337, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2223, __pyx_L1_error)

    /* "talib/stream.pyx":2222
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2224
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLEVENINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLEVENINGSTAR", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2225
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLEVENINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLEVENINGSTAR", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLEVENINGSTAR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2226
 *     outinteger = 0
 *     retCode = lib.TA_CDLEVENINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLEVENINGSTAR", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLEVENINGSTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2227
 *     retCode = lib.TA_CDLEVENINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLEVENINGSTAR", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2227, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2165
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLEVENINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLEVENINGSTAR(open, high, low, close[, penetration=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLEVENINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2231
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLGAPSIDESIDEWHITE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLGAPSIDESIDEWHITE(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_77CDLGAPSIDESIDEWHITE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_76CDLGAPSIDESIDEWHITE[] = " CDLGAPSIDESIDEWHITE(open, high, low, close)\n\n    Up/Down-gap side-by-side white lines (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_77CDLGAPSIDESIDEWHITE = {"CDLGAPSIDESIDEWHITE", (PyCFunction)__pyx_pw_5talib_6stream_77CDLGAPSIDESIDEWHITE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_76CDLGAPSIDESIDEWHITE};
static PyObject *__pyx_pw_5talib_6stream_77CDLGAPSIDESIDEWHITE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLGAPSIDESIDEWHITE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLGAPSIDESIDEWHITE", 1, 4, 4, 1); __PYX_ERR(0, 2231, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLGAPSIDESIDEWHITE", 1, 4, 4, 2); __PYX_ERR(0, 2231, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLGAPSIDESIDEWHITE", 1, 4, 4, 3); __PYX_ERR(0, 2231, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLGAPSIDESIDEWHITE") < 0)) __PYX_ERR(0, 2231, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLGAPSIDESIDEWHITE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2231, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLGAPSIDESIDEWHITE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2231, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2231, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2231, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2231, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_76CDLGAPSIDESIDEWHITE(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_76CDLGAPSIDESIDEWHITE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLGAPSIDESIDEWHITE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2253
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2254
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__338, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2254, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2254, __pyx_L1_error)

    /* "talib/stream.pyx":2253
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2255
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2256
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__339, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2256, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2256, __pyx_L1_error)

    /* "talib/stream.pyx":2255
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2257
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2258
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2258, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2258, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2257
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2259
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2260
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2261
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__340, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2261, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2261, __pyx_L1_error)

    /* "talib/stream.pyx":2260
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2262
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2263
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__341, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2263, __pyx_L1_error)

    /* "talib/stream.pyx":2262
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2264
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2265
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2265, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2265, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2264
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2266
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2267
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2268
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__342, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2268, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2268, __pyx_L1_error)

    /* "talib/stream.pyx":2267
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2269
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2270
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__343, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2270, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2270, __pyx_L1_error)

    /* "talib/stream.pyx":2269
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2271
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2272
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2272, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2272, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2271
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2273
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2274
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2275
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__344, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2275, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2275, __pyx_L1_error)

    /* "talib/stream.pyx":2274
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2276
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2277
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__345, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2277, __pyx_L1_error)

    /* "talib/stream.pyx":2276
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2278
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2279
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2279, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2279, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2278
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2280
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2281
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2282
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2283
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__346, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2283, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2283, __pyx_L1_error)

    /* "talib/stream.pyx":2282
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2284
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2285
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__347, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2285, __pyx_L1_error)

    /* "talib/stream.pyx":2284
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2286
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2287
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLGAPSIDESIDEWHITE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__348, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2287, __pyx_L1_error)

    /* "talib/stream.pyx":2286
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2288
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLGAPSIDESIDEWHITE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLGAPSIDESIDEWHITE", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2289
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLGAPSIDESIDEWHITE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLGAPSIDESIDEWHITE", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLGAPSIDESIDEWHITE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2290
 *     outinteger = 0
 *     retCode = lib.TA_CDLGAPSIDESIDEWHITE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLGAPSIDESIDEWHITE", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLGAPSIDESIDEWHITE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2290, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2291
 *     retCode = lib.TA_CDLGAPSIDESIDEWHITE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLGAPSIDESIDEWHITE", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2231
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLGAPSIDESIDEWHITE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLGAPSIDESIDEWHITE(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLGAPSIDESIDEWHITE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2295
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLGRAVESTONEDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLGRAVESTONEDOJI(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_79CDLGRAVESTONEDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_78CDLGRAVESTONEDOJI[] = " CDLGRAVESTONEDOJI(open, high, low, close)\n\n    Gravestone Doji (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_79CDLGRAVESTONEDOJI = {"CDLGRAVESTONEDOJI", (PyCFunction)__pyx_pw_5talib_6stream_79CDLGRAVESTONEDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_78CDLGRAVESTONEDOJI};
static PyObject *__pyx_pw_5talib_6stream_79CDLGRAVESTONEDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLGRAVESTONEDOJI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLGRAVESTONEDOJI", 1, 4, 4, 1); __PYX_ERR(0, 2295, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLGRAVESTONEDOJI", 1, 4, 4, 2); __PYX_ERR(0, 2295, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLGRAVESTONEDOJI", 1, 4, 4, 3); __PYX_ERR(0, 2295, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLGRAVESTONEDOJI") < 0)) __PYX_ERR(0, 2295, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLGRAVESTONEDOJI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2295, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLGRAVESTONEDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2295, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2295, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2295, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2295, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_78CDLGRAVESTONEDOJI(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_78CDLGRAVESTONEDOJI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLGRAVESTONEDOJI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2317
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2318
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__349, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2318, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2318, __pyx_L1_error)

    /* "talib/stream.pyx":2317
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2319
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2320
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__350, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2320, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2320, __pyx_L1_error)

    /* "talib/stream.pyx":2319
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2321
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2322
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2322, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2322, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2321
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2323
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2324
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2325
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__351, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2325, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2325, __pyx_L1_error)

    /* "talib/stream.pyx":2324
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2326
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2327
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__352, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2327, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2327, __pyx_L1_error)

    /* "talib/stream.pyx":2326
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2328
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2329
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2329, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2328
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2330
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2331
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2332
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__353, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2332, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2332, __pyx_L1_error)

    /* "talib/stream.pyx":2331
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2333
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2334
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__354, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2334, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2334, __pyx_L1_error)

    /* "talib/stream.pyx":2333
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2335
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2336
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2336, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2336, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2335
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2337
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2338
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2339
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__355, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2339, __pyx_L1_error)

    /* "talib/stream.pyx":2338
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2340
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2341
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__356, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2341, __pyx_L1_error)

    /* "talib/stream.pyx":2340
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2342
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2343
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2343, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2343, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2342
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2344
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2345
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2346
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2347
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__357, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2347, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2347, __pyx_L1_error)

    /* "talib/stream.pyx":2346
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2348
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2349
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__358, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2349, __pyx_L1_error)

    /* "talib/stream.pyx":2348
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2350
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2351
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLGRAVESTONEDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__359, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2351, __pyx_L1_error)

    /* "talib/stream.pyx":2350
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2352
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLGRAVESTONEDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLGRAVESTONEDOJI", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2353
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLGRAVESTONEDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLGRAVESTONEDOJI", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLGRAVESTONEDOJI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2354
 *     outinteger = 0
 *     retCode = lib.TA_CDLGRAVESTONEDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLGRAVESTONEDOJI", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLGRAVESTONEDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2355
 *     retCode = lib.TA_CDLGRAVESTONEDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLGRAVESTONEDOJI", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2355, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2295
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLGRAVESTONEDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLGRAVESTONEDOJI(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLGRAVESTONEDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2359
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHAMMER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHAMMER(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_81CDLHAMMER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_80CDLHAMMER[] = " CDLHAMMER(open, high, low, close)\n\n    Hammer (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_81CDLHAMMER = {"CDLHAMMER", (PyCFunction)__pyx_pw_5talib_6stream_81CDLHAMMER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_80CDLHAMMER};
static PyObject *__pyx_pw_5talib_6stream_81CDLHAMMER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLHAMMER (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHAMMER", 1, 4, 4, 1); __PYX_ERR(0, 2359, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHAMMER", 1, 4, 4, 2); __PYX_ERR(0, 2359, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHAMMER", 1, 4, 4, 3); __PYX_ERR(0, 2359, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHAMMER") < 0)) __PYX_ERR(0, 2359, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLHAMMER", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2359, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLHAMMER", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2359, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2359, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2359, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2359, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_80CDLHAMMER(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_80CDLHAMMER(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLHAMMER", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2381
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2382
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__360, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2382, __pyx_L1_error)

    /* "talib/stream.pyx":2381
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2383
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2384
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__361, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2384, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2384, __pyx_L1_error)

    /* "talib/stream.pyx":2383
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2385
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2386
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2386, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2386, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2385
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2387
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2388
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2389
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__362, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2389, __pyx_L1_error)

    /* "talib/stream.pyx":2388
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2390
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2391
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__363, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2391, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2391, __pyx_L1_error)

    /* "talib/stream.pyx":2390
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2392
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2393
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2393, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2393, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2392
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2394
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2395
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2396
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__364, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2396, __pyx_L1_error)

    /* "talib/stream.pyx":2395
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2397
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2398
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__365, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2398, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2398, __pyx_L1_error)

    /* "talib/stream.pyx":2397
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2399
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2400
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2400, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2400, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2399
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2401
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2402
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2403
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__366, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2403, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2403, __pyx_L1_error)

    /* "talib/stream.pyx":2402
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2404
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2405
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__367, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2405, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2405, __pyx_L1_error)

    /* "talib/stream.pyx":2404
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2406
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2407
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2407, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2407, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2406
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2408
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2409
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2410
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2411
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__368, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2411, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2411, __pyx_L1_error)

    /* "talib/stream.pyx":2410
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2412
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2413
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__369, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2413, __pyx_L1_error)

    /* "talib/stream.pyx":2412
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2414
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2415
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__370, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2415, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2415, __pyx_L1_error)

    /* "talib/stream.pyx":2414
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2416
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHAMMER", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2417
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLHAMMER", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLHAMMER((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2418
 *     outinteger = 0
 *     retCode = lib.TA_CDLHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHAMMER", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLHAMMER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2419
 *     retCode = lib.TA_CDLHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHAMMER", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2359
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHAMMER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHAMMER(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLHAMMER", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2423
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHANGINGMAN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHANGINGMAN(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_83CDLHANGINGMAN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_82CDLHANGINGMAN[] = " CDLHANGINGMAN(open, high, low, close)\n\n    Hanging Man (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_83CDLHANGINGMAN = {"CDLHANGINGMAN", (PyCFunction)__pyx_pw_5talib_6stream_83CDLHANGINGMAN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_82CDLHANGINGMAN};
static PyObject *__pyx_pw_5talib_6stream_83CDLHANGINGMAN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLHANGINGMAN (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHANGINGMAN", 1, 4, 4, 1); __PYX_ERR(0, 2423, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHANGINGMAN", 1, 4, 4, 2); __PYX_ERR(0, 2423, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHANGINGMAN", 1, 4, 4, 3); __PYX_ERR(0, 2423, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHANGINGMAN") < 0)) __PYX_ERR(0, 2423, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLHANGINGMAN", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2423, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLHANGINGMAN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2423, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2423, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2423, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2423, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_82CDLHANGINGMAN(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_82CDLHANGINGMAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLHANGINGMAN", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2445
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2446
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__371, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2446, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2446, __pyx_L1_error)

    /* "talib/stream.pyx":2445
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2447
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2448
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__372, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2448, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2448, __pyx_L1_error)

    /* "talib/stream.pyx":2447
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2449
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2450
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2450, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2449
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2451
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2452
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2453
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__373, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2453, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2453, __pyx_L1_error)

    /* "talib/stream.pyx":2452
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2454
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2455
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__374, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2455, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2455, __pyx_L1_error)

    /* "talib/stream.pyx":2454
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2456
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2457
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2457, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2457, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2456
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2458
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2459
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2460
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__375, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2460, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2460, __pyx_L1_error)

    /* "talib/stream.pyx":2459
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2461
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2462
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__376, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2462, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2462, __pyx_L1_error)

    /* "talib/stream.pyx":2461
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2463
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2464
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2464, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2464, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2463
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2465
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2466
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2467
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__377, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2467, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2467, __pyx_L1_error)

    /* "talib/stream.pyx":2466
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2468
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2469
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__378, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2469, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2469, __pyx_L1_error)

    /* "talib/stream.pyx":2468
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2470
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2471
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2471, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2471, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2470
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2472
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2473
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2474
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2475
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__379, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2475, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2475, __pyx_L1_error)

    /* "talib/stream.pyx":2474
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2476
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2477
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__380, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2477, __pyx_L1_error)

    /* "talib/stream.pyx":2476
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2478
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2479
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHANGINGMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__381, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2479, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2479, __pyx_L1_error)

    /* "talib/stream.pyx":2478
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2480
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLHANGINGMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHANGINGMAN", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2481
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLHANGINGMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLHANGINGMAN", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLHANGINGMAN((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2482
 *     outinteger = 0
 *     retCode = lib.TA_CDLHANGINGMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHANGINGMAN", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLHANGINGMAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2482, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2483
 *     retCode = lib.TA_CDLHANGINGMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHANGINGMAN", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2483, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2423
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHANGINGMAN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHANGINGMAN(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLHANGINGMAN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2487
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHARAMI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHARAMI(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_85CDLHARAMI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_84CDLHARAMI[] = " CDLHARAMI(open, high, low, close)\n\n    Harami Pattern (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_85CDLHARAMI = {"CDLHARAMI", (PyCFunction)__pyx_pw_5talib_6stream_85CDLHARAMI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_84CDLHARAMI};
static PyObject *__pyx_pw_5talib_6stream_85CDLHARAMI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLHARAMI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHARAMI", 1, 4, 4, 1); __PYX_ERR(0, 2487, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHARAMI", 1, 4, 4, 2); __PYX_ERR(0, 2487, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHARAMI", 1, 4, 4, 3); __PYX_ERR(0, 2487, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHARAMI") < 0)) __PYX_ERR(0, 2487, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLHARAMI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2487, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLHARAMI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2487, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2487, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2487, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2487, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_84CDLHARAMI(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_84CDLHARAMI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLHARAMI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2509
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2510
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__382, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2510, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2510, __pyx_L1_error)

    /* "talib/stream.pyx":2509
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2511
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2512
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__383, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2512, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2512, __pyx_L1_error)

    /* "talib/stream.pyx":2511
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2513
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2514
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2514, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2514, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2513
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2515
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2516
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2517
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__384, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2517, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2517, __pyx_L1_error)

    /* "talib/stream.pyx":2516
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2518
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2519
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__385, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2519, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2519, __pyx_L1_error)

    /* "talib/stream.pyx":2518
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2520
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2521
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2521, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2521, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2520
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2522
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2523
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2524
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__386, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2524, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2524, __pyx_L1_error)

    /* "talib/stream.pyx":2523
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2525
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2526
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__387, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2526, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2526, __pyx_L1_error)

    /* "talib/stream.pyx":2525
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2527
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2528
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2528, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2528, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2527
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2529
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2530
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2531
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__388, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2531, __pyx_L1_error)

    /* "talib/stream.pyx":2530
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2532
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2533
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__389, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2533, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2533, __pyx_L1_error)

    /* "talib/stream.pyx":2532
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2534
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2535
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2535, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2535, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2534
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2536
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2537
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2538
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2539
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__390, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2539, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2539, __pyx_L1_error)

    /* "talib/stream.pyx":2538
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2540
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2541
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__391, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2541, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2541, __pyx_L1_error)

    /* "talib/stream.pyx":2540
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2542
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2543
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHARAMI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__392, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2543, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2543, __pyx_L1_error)

    /* "talib/stream.pyx":2542
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2544
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLHARAMI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHARAMI", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2545
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLHARAMI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLHARAMI", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLHARAMI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2546
 *     outinteger = 0
 *     retCode = lib.TA_CDLHARAMI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHARAMI", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLHARAMI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2547
 *     retCode = lib.TA_CDLHARAMI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHARAMI", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2487
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHARAMI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHARAMI(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLHARAMI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2551
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHARAMICROSS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHARAMICROSS(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_87CDLHARAMICROSS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_86CDLHARAMICROSS[] = " CDLHARAMICROSS(open, high, low, close)\n\n    Harami Cross Pattern (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_87CDLHARAMICROSS = {"CDLHARAMICROSS", (PyCFunction)__pyx_pw_5talib_6stream_87CDLHARAMICROSS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_86CDLHARAMICROSS};
static PyObject *__pyx_pw_5talib_6stream_87CDLHARAMICROSS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLHARAMICROSS (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHARAMICROSS", 1, 4, 4, 1); __PYX_ERR(0, 2551, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHARAMICROSS", 1, 4, 4, 2); __PYX_ERR(0, 2551, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHARAMICROSS", 1, 4, 4, 3); __PYX_ERR(0, 2551, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHARAMICROSS") < 0)) __PYX_ERR(0, 2551, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLHARAMICROSS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2551, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLHARAMICROSS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2551, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2551, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2551, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2551, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_86CDLHARAMICROSS(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_86CDLHARAMICROSS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLHARAMICROSS", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2573
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2574
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__393, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2574, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2574, __pyx_L1_error)

    /* "talib/stream.pyx":2573
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2575
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2576
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__394, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2576, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2576, __pyx_L1_error)

    /* "talib/stream.pyx":2575
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2577
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2578
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2578, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2578, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2577
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2579
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2580
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2581
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__395, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2581, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2581, __pyx_L1_error)

    /* "talib/stream.pyx":2580
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2582
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2583
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__396, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2583, __pyx_L1_error)

    /* "talib/stream.pyx":2582
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2584
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2585
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2585, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2585, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2584
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2586
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2587
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2588
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__397, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2588, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2588, __pyx_L1_error)

    /* "talib/stream.pyx":2587
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2589
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2590
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__398, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2590, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2590, __pyx_L1_error)

    /* "talib/stream.pyx":2589
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2591
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2592
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2592, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2592, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2591
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2593
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2594
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2595
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__399, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2595, __pyx_L1_error)

    /* "talib/stream.pyx":2594
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2596
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2597
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__400, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2597, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2597, __pyx_L1_error)

    /* "talib/stream.pyx":2596
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2598
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2599
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2599, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2599, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2598
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2600
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2601
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2602
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2603
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__401, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2603, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2603, __pyx_L1_error)

    /* "talib/stream.pyx":2602
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2604
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2605
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__402, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2605, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2605, __pyx_L1_error)

    /* "talib/stream.pyx":2604
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2606
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2607
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHARAMICROSS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__403, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2607, __pyx_L1_error)

    /* "talib/stream.pyx":2606
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2608
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLHARAMICROSS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHARAMICROSS", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2609
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLHARAMICROSS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLHARAMICROSS", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLHARAMICROSS((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2610
 *     outinteger = 0
 *     retCode = lib.TA_CDLHARAMICROSS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHARAMICROSS", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLHARAMICROSS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2610, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2611
 *     retCode = lib.TA_CDLHARAMICROSS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHARAMICROSS", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2551
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHARAMICROSS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHARAMICROSS(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLHARAMICROSS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2615
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIGHWAVE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIGHWAVE(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_89CDLHIGHWAVE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_88CDLHIGHWAVE[] = " CDLHIGHWAVE(open, high, low, close)\n\n    High-Wave Candle (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_89CDLHIGHWAVE = {"CDLHIGHWAVE", (PyCFunction)__pyx_pw_5talib_6stream_89CDLHIGHWAVE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_88CDLHIGHWAVE};
static PyObject *__pyx_pw_5talib_6stream_89CDLHIGHWAVE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLHIGHWAVE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHIGHWAVE", 1, 4, 4, 1); __PYX_ERR(0, 2615, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHIGHWAVE", 1, 4, 4, 2); __PYX_ERR(0, 2615, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHIGHWAVE", 1, 4, 4, 3); __PYX_ERR(0, 2615, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHIGHWAVE") < 0)) __PYX_ERR(0, 2615, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLHIGHWAVE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2615, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLHIGHWAVE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2615, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2615, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2615, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2615, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_88CDLHIGHWAVE(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_88CDLHIGHWAVE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLHIGHWAVE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2637
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2638
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__404, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2638, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2638, __pyx_L1_error)

    /* "talib/stream.pyx":2637
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2639
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2640
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__405, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2640, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2640, __pyx_L1_error)

    /* "talib/stream.pyx":2639
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2641
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2642
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2642, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2642, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2641
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2643
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2644
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2645
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__406, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2645, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2645, __pyx_L1_error)

    /* "talib/stream.pyx":2644
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2646
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2647
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__407, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2647, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2647, __pyx_L1_error)

    /* "talib/stream.pyx":2646
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2648
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2649
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2649, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2649, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2648
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2650
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2651
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2652
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__408, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2652, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2652, __pyx_L1_error)

    /* "talib/stream.pyx":2651
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2653
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2654
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__409, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2654, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2654, __pyx_L1_error)

    /* "talib/stream.pyx":2653
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2655
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2656
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2656, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2656, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2655
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2657
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2658
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2659
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__410, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2659, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2659, __pyx_L1_error)

    /* "talib/stream.pyx":2658
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2660
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2661
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__411, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2661, __pyx_L1_error)

    /* "talib/stream.pyx":2660
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2662
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2663
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2663, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2663, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2662
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2664
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2665
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2666
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2667
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__412, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2667, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2667, __pyx_L1_error)

    /* "talib/stream.pyx":2666
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2668
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2669
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__413, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2669, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2669, __pyx_L1_error)

    /* "talib/stream.pyx":2668
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2670
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2671
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIGHWAVE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__414, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2671, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2671, __pyx_L1_error)

    /* "talib/stream.pyx":2670
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2672
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLHIGHWAVE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHIGHWAVE", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2673
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIGHWAVE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLHIGHWAVE", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLHIGHWAVE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2674
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIGHWAVE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHIGHWAVE", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLHIGHWAVE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2674, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2675
 *     retCode = lib.TA_CDLHIGHWAVE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHIGHWAVE", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2615
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIGHWAVE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIGHWAVE(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLHIGHWAVE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2679
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIKKAKE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIKKAKE(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_91CDLHIKKAKE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_90CDLHIKKAKE[] = " CDLHIKKAKE(open, high, low, close)\n\n    Hikkake Pattern (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_91CDLHIKKAKE = {"CDLHIKKAKE", (PyCFunction)__pyx_pw_5talib_6stream_91CDLHIKKAKE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_90CDLHIKKAKE};
static PyObject *__pyx_pw_5talib_6stream_91CDLHIKKAKE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLHIKKAKE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHIKKAKE", 1, 4, 4, 1); __PYX_ERR(0, 2679, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHIKKAKE", 1, 4, 4, 2); __PYX_ERR(0, 2679, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHIKKAKE", 1, 4, 4, 3); __PYX_ERR(0, 2679, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHIKKAKE") < 0)) __PYX_ERR(0, 2679, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLHIKKAKE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2679, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLHIKKAKE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2679, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2679, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2679, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2679, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_90CDLHIKKAKE(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_90CDLHIKKAKE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLHIKKAKE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2701
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2702
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__415, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2702, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2702, __pyx_L1_error)

    /* "talib/stream.pyx":2701
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2703
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2704
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__416, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2704, __pyx_L1_error)

    /* "talib/stream.pyx":2703
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2705
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2706
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2706, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2705
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2707
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2708
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2709
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__417, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2709, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2709, __pyx_L1_error)

    /* "talib/stream.pyx":2708
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2710
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2711
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__418, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2711, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2711, __pyx_L1_error)

    /* "talib/stream.pyx":2710
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2712
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2713
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2713, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2713, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2712
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2714
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2715
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2716
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__419, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2716, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2716, __pyx_L1_error)

    /* "talib/stream.pyx":2715
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2717
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2718
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__420, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2718, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2718, __pyx_L1_error)

    /* "talib/stream.pyx":2717
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2719
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2720
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2720, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2720, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2719
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2721
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2722
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2723
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__421, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2723, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2723, __pyx_L1_error)

    /* "talib/stream.pyx":2722
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2724
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2725
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__422, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2725, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2725, __pyx_L1_error)

    /* "talib/stream.pyx":2724
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2726
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2727
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2727, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2727, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2726
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2728
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2729
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2730
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2731
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__423, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2731, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2731, __pyx_L1_error)

    /* "talib/stream.pyx":2730
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2732
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2733
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__424, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2733, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2733, __pyx_L1_error)

    /* "talib/stream.pyx":2732
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2734
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2735
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIKKAKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__425, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2735, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2735, __pyx_L1_error)

    /* "talib/stream.pyx":2734
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2736
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLHIKKAKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHIKKAKE", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2737
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIKKAKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLHIKKAKE", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLHIKKAKE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2738
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIKKAKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHIKKAKE", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLHIKKAKE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2738, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2739
 *     retCode = lib.TA_CDLHIKKAKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHIKKAKE", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2739, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2679
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIKKAKE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIKKAKE(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLHIKKAKE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2743
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIKKAKEMOD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIKKAKEMOD(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_93CDLHIKKAKEMOD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_92CDLHIKKAKEMOD[] = " CDLHIKKAKEMOD(open, high, low, close)\n\n    Modified Hikkake Pattern (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_93CDLHIKKAKEMOD = {"CDLHIKKAKEMOD", (PyCFunction)__pyx_pw_5talib_6stream_93CDLHIKKAKEMOD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_92CDLHIKKAKEMOD};
static PyObject *__pyx_pw_5talib_6stream_93CDLHIKKAKEMOD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLHIKKAKEMOD (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHIKKAKEMOD", 1, 4, 4, 1); __PYX_ERR(0, 2743, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHIKKAKEMOD", 1, 4, 4, 2); __PYX_ERR(0, 2743, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHIKKAKEMOD", 1, 4, 4, 3); __PYX_ERR(0, 2743, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHIKKAKEMOD") < 0)) __PYX_ERR(0, 2743, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLHIKKAKEMOD", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2743, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLHIKKAKEMOD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2743, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2743, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2743, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2743, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_92CDLHIKKAKEMOD(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_92CDLHIKKAKEMOD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLHIKKAKEMOD", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2765
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2766
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__426, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2766, __pyx_L1_error)

    /* "talib/stream.pyx":2765
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2767
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2768
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__427, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2768, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2768, __pyx_L1_error)

    /* "talib/stream.pyx":2767
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2769
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2770
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2770, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2769
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2771
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2772
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2773
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__428, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2773, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2773, __pyx_L1_error)

    /* "talib/stream.pyx":2772
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2774
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2775
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__429, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2775, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2775, __pyx_L1_error)

    /* "talib/stream.pyx":2774
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2776
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2777
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2777, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2777, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2776
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2778
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2779
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2780
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__430, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2780, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2780, __pyx_L1_error)

    /* "talib/stream.pyx":2779
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2781
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2782
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__431, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2782, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2782, __pyx_L1_error)

    /* "talib/stream.pyx":2781
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2783
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2784
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2784, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2784, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2783
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2785
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2786
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2787
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__432, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2787, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2787, __pyx_L1_error)

    /* "talib/stream.pyx":2786
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2788
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2789
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__433, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2789, __pyx_L1_error)

    /* "talib/stream.pyx":2788
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2790
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2791
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2791, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2791, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2790
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2792
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2793
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2794
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2795
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__434, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2795, __pyx_L1_error)

    /* "talib/stream.pyx":2794
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2796
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2797
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__435, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2797, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2797, __pyx_L1_error)

    /* "talib/stream.pyx":2796
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2798
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2799
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIKKAKEMOD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__436, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2799, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2799, __pyx_L1_error)

    /* "talib/stream.pyx":2798
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2800
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLHIKKAKEMOD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHIKKAKEMOD", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2801
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIKKAKEMOD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLHIKKAKEMOD", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLHIKKAKEMOD((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2802
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIKKAKEMOD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHIKKAKEMOD", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLHIKKAKEMOD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2803
 *     retCode = lib.TA_CDLHIKKAKEMOD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHIKKAKEMOD", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2803, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2743
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIKKAKEMOD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIKKAKEMOD(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLHIKKAKEMOD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2807
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHOMINGPIGEON( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHOMINGPIGEON(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_95CDLHOMINGPIGEON(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_94CDLHOMINGPIGEON[] = " CDLHOMINGPIGEON(open, high, low, close)\n\n    Homing Pigeon (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_95CDLHOMINGPIGEON = {"CDLHOMINGPIGEON", (PyCFunction)__pyx_pw_5talib_6stream_95CDLHOMINGPIGEON, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_94CDLHOMINGPIGEON};
static PyObject *__pyx_pw_5talib_6stream_95CDLHOMINGPIGEON(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLHOMINGPIGEON (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHOMINGPIGEON", 1, 4, 4, 1); __PYX_ERR(0, 2807, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHOMINGPIGEON", 1, 4, 4, 2); __PYX_ERR(0, 2807, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLHOMINGPIGEON", 1, 4, 4, 3); __PYX_ERR(0, 2807, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHOMINGPIGEON") < 0)) __PYX_ERR(0, 2807, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLHOMINGPIGEON", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2807, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLHOMINGPIGEON", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2807, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2807, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2807, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2807, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_94CDLHOMINGPIGEON(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_94CDLHOMINGPIGEON(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLHOMINGPIGEON", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2829
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2830
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__437, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2830, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2830, __pyx_L1_error)

    /* "talib/stream.pyx":2829
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2831
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2832
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__438, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2832, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2832, __pyx_L1_error)

    /* "talib/stream.pyx":2831
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2833
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2834
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2834, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2834, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2833
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2835
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2836
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2837
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__439, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2837, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2837, __pyx_L1_error)

    /* "talib/stream.pyx":2836
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2838
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2839
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__440, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2839, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2839, __pyx_L1_error)

    /* "talib/stream.pyx":2838
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2840
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2841
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2841, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2841, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2840
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2842
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2843
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2844
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__441, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2844, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2844, __pyx_L1_error)

    /* "talib/stream.pyx":2843
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2845
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2846
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__442, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2846, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2846, __pyx_L1_error)

    /* "talib/stream.pyx":2845
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2847
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2848
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2848, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2848, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2847
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2849
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2850
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2851
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__443, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2851, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2851, __pyx_L1_error)

    /* "talib/stream.pyx":2850
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2852
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2853
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__444, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2853, __pyx_L1_error)

    /* "talib/stream.pyx":2852
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2854
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2855
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2855, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2855, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2854
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2856
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2857
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2858
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2859
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__445, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2859, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2859, __pyx_L1_error)

    /* "talib/stream.pyx":2858
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2860
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2861
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__446, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2861, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2861, __pyx_L1_error)

    /* "talib/stream.pyx":2860
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2862
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2863
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHOMINGPIGEON( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__447, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2863, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2863, __pyx_L1_error)

    /* "talib/stream.pyx":2862
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2864
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLHOMINGPIGEON( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHOMINGPIGEON", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2865
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLHOMINGPIGEON( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLHOMINGPIGEON", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLHOMINGPIGEON((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2866
 *     outinteger = 0
 *     retCode = lib.TA_CDLHOMINGPIGEON( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHOMINGPIGEON", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLHOMINGPIGEON, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2867
 *     retCode = lib.TA_CDLHOMINGPIGEON( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLHOMINGPIGEON", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2807
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHOMINGPIGEON( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHOMINGPIGEON(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLHOMINGPIGEON", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2871
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLIDENTICAL3CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLIDENTICAL3CROWS(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_97CDLIDENTICAL3CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_96CDLIDENTICAL3CROWS[] = " CDLIDENTICAL3CROWS(open, high, low, close)\n\n    Identical Three Crows (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_97CDLIDENTICAL3CROWS = {"CDLIDENTICAL3CROWS", (PyCFunction)__pyx_pw_5talib_6stream_97CDLIDENTICAL3CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_96CDLIDENTICAL3CROWS};
static PyObject *__pyx_pw_5talib_6stream_97CDLIDENTICAL3CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLIDENTICAL3CROWS (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLIDENTICAL3CROWS", 1, 4, 4, 1); __PYX_ERR(0, 2871, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLIDENTICAL3CROWS", 1, 4, 4, 2); __PYX_ERR(0, 2871, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLIDENTICAL3CROWS", 1, 4, 4, 3); __PYX_ERR(0, 2871, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLIDENTICAL3CROWS") < 0)) __PYX_ERR(0, 2871, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLIDENTICAL3CROWS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2871, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLIDENTICAL3CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2871, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2871, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2871, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2871, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_96CDLIDENTICAL3CROWS(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_96CDLIDENTICAL3CROWS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLIDENTICAL3CROWS", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2893
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2894
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__448, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2894, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2894, __pyx_L1_error)

    /* "talib/stream.pyx":2893
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2895
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2896
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__449, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2896, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2896, __pyx_L1_error)

    /* "talib/stream.pyx":2895
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2897
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2898
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2898, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2898, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2897
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2899
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2900
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2901
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__450, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2901, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2901, __pyx_L1_error)

    /* "talib/stream.pyx":2900
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2902
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2903
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__451, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2903, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2903, __pyx_L1_error)

    /* "talib/stream.pyx":2902
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2904
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2905
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2905, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2905, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2904
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2906
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2907
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2908
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__452, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2908, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2908, __pyx_L1_error)

    /* "talib/stream.pyx":2907
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2909
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2910
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__453, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2910, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2910, __pyx_L1_error)

    /* "talib/stream.pyx":2909
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2911
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2912
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2912, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2912, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2911
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2913
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2914
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2915
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__454, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2915, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2915, __pyx_L1_error)

    /* "talib/stream.pyx":2914
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2916
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2917
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__455, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2917, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2917, __pyx_L1_error)

    /* "talib/stream.pyx":2916
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2918
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2919
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2919, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2919, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2918
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2920
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2921
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2922
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2923
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__456, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2923, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2923, __pyx_L1_error)

    /* "talib/stream.pyx":2922
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2924
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2925
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__457, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2925, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2925, __pyx_L1_error)

    /* "talib/stream.pyx":2924
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2926
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2927
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLIDENTICAL3CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__458, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2927, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2927, __pyx_L1_error)

    /* "talib/stream.pyx":2926
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2928
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLIDENTICAL3CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLIDENTICAL3CROWS", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2929
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLIDENTICAL3CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLIDENTICAL3CROWS", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLIDENTICAL3CROWS((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2930
 *     outinteger = 0
 *     retCode = lib.TA_CDLIDENTICAL3CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLIDENTICAL3CROWS", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLIDENTICAL3CROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2931
 *     retCode = lib.TA_CDLIDENTICAL3CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLIDENTICAL3CROWS", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2871
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLIDENTICAL3CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLIDENTICAL3CROWS(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLIDENTICAL3CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2935
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLINNECK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLINNECK(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_99CDLINNECK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_98CDLINNECK[] = " CDLINNECK(open, high, low, close)\n\n    In-Neck Pattern (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_99CDLINNECK = {"CDLINNECK", (PyCFunction)__pyx_pw_5talib_6stream_99CDLINNECK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_98CDLINNECK};
static PyObject *__pyx_pw_5talib_6stream_99CDLINNECK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLINNECK (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLINNECK", 1, 4, 4, 1); __PYX_ERR(0, 2935, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLINNECK", 1, 4, 4, 2); __PYX_ERR(0, 2935, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLINNECK", 1, 4, 4, 3); __PYX_ERR(0, 2935, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLINNECK") < 0)) __PYX_ERR(0, 2935, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLINNECK", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2935, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLINNECK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2935, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2935, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2935, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2935, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_98CDLINNECK(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_98CDLINNECK(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLINNECK", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":2957
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2958
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__459, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2958, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2958, __pyx_L1_error)

    /* "talib/stream.pyx":2957
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2959
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2960
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__460, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2960, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2960, __pyx_L1_error)

    /* "talib/stream.pyx":2959
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2961
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2962
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2962, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2962, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2961
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":2963
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":2964
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2965
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__461, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2965, __pyx_L1_error)

    /* "talib/stream.pyx":2964
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2966
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2967
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__462, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2967, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2967, __pyx_L1_error)

    /* "talib/stream.pyx":2966
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2968
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2969
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2969, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2969, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2968
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":2970
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":2971
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2972
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__463, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2972, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2972, __pyx_L1_error)

    /* "talib/stream.pyx":2971
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2973
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2974
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__464, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2974, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2974, __pyx_L1_error)

    /* "talib/stream.pyx":2973
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2975
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2976
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2976, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2976, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2975
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":2977
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":2978
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2979
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__465, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2979, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2979, __pyx_L1_error)

    /* "talib/stream.pyx":2978
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":2980
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2981
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__466, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2981, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2981, __pyx_L1_error)

    /* "talib/stream.pyx":2980
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":2982
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2983
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2983, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2983, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":2982
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":2984
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":2985
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":2986
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2987
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__467, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2987, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2987, __pyx_L1_error)

    /* "talib/stream.pyx":2986
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":2988
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2989
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__468, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2989, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2989, __pyx_L1_error)

    /* "talib/stream.pyx":2988
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":2990
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":2991
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLINNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__469, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2991, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 2991, __pyx_L1_error)

    /* "talib/stream.pyx":2990
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":2992
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLINNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLINNECK", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":2993
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLINNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLINNECK", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLINNECK((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":2994
 *     outinteger = 0
 *     retCode = lib.TA_CDLINNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLINNECK", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLINNECK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":2995
 *     retCode = lib.TA_CDLINNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLINNECK", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2935
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLINNECK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLINNECK(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLINNECK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":2999
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLINVERTEDHAMMER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLINVERTEDHAMMER(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_101CDLINVERTEDHAMMER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_100CDLINVERTEDHAMMER[] = " CDLINVERTEDHAMMER(open, high, low, close)\n\n    Inverted Hammer (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_101CDLINVERTEDHAMMER = {"CDLINVERTEDHAMMER", (PyCFunction)__pyx_pw_5talib_6stream_101CDLINVERTEDHAMMER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_100CDLINVERTEDHAMMER};
static PyObject *__pyx_pw_5talib_6stream_101CDLINVERTEDHAMMER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLINVERTEDHAMMER (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLINVERTEDHAMMER", 1, 4, 4, 1); __PYX_ERR(0, 2999, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLINVERTEDHAMMER", 1, 4, 4, 2); __PYX_ERR(0, 2999, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLINVERTEDHAMMER", 1, 4, 4, 3); __PYX_ERR(0, 2999, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLINVERTEDHAMMER") < 0)) __PYX_ERR(0, 2999, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLINVERTEDHAMMER", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 2999, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLINVERTEDHAMMER", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 2999, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2999, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2999, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2999, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_100CDLINVERTEDHAMMER(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_100CDLINVERTEDHAMMER(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLINVERTEDHAMMER", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3021
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3022
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__470, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3022, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3022, __pyx_L1_error)

    /* "talib/stream.pyx":3021
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3023
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3024
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__471, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3024, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3024, __pyx_L1_error)

    /* "talib/stream.pyx":3023
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3025
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3026
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3026, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3026, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3025
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3027
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3028
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3029
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__472, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3029, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3029, __pyx_L1_error)

    /* "talib/stream.pyx":3028
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3030
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3031
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__473, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3031, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3031, __pyx_L1_error)

    /* "talib/stream.pyx":3030
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3032
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3033
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3033, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3033, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3032
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3034
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3035
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3036
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__474, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3036, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3036, __pyx_L1_error)

    /* "talib/stream.pyx":3035
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3037
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3038
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__475, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3038, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3038, __pyx_L1_error)

    /* "talib/stream.pyx":3037
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3039
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3040
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3040, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3040, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3039
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3041
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3042
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3043
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__476, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3043, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3043, __pyx_L1_error)

    /* "talib/stream.pyx":3042
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3044
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3045
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__477, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3045, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3045, __pyx_L1_error)

    /* "talib/stream.pyx":3044
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3046
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3047
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3047, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3047, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3046
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3048
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3049
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3050
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3051
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__478, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3051, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3051, __pyx_L1_error)

    /* "talib/stream.pyx":3050
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3052
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3053
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__479, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3053, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3053, __pyx_L1_error)

    /* "talib/stream.pyx":3052
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3054
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3055
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLINVERTEDHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__480, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3055, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3055, __pyx_L1_error)

    /* "talib/stream.pyx":3054
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3056
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLINVERTEDHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLINVERTEDHAMMER", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3057
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLINVERTEDHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLINVERTEDHAMMER", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLINVERTEDHAMMER((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3058
 *     outinteger = 0
 *     retCode = lib.TA_CDLINVERTEDHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLINVERTEDHAMMER", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLINVERTEDHAMMER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3058, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3059
 *     retCode = lib.TA_CDLINVERTEDHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLINVERTEDHAMMER", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":2999
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLINVERTEDHAMMER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLINVERTEDHAMMER(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLINVERTEDHAMMER", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3063
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLKICKING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLKICKING(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_103CDLKICKING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_102CDLKICKING[] = " CDLKICKING(open, high, low, close)\n\n    Kicking (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_103CDLKICKING = {"CDLKICKING", (PyCFunction)__pyx_pw_5talib_6stream_103CDLKICKING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_102CDLKICKING};
static PyObject *__pyx_pw_5talib_6stream_103CDLKICKING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLKICKING (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLKICKING", 1, 4, 4, 1); __PYX_ERR(0, 3063, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLKICKING", 1, 4, 4, 2); __PYX_ERR(0, 3063, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLKICKING", 1, 4, 4, 3); __PYX_ERR(0, 3063, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLKICKING") < 0)) __PYX_ERR(0, 3063, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLKICKING", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3063, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLKICKING", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3063, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3063, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3063, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3063, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_102CDLKICKING(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_102CDLKICKING(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLKICKING", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3085
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3086
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__481, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3086, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3086, __pyx_L1_error)

    /* "talib/stream.pyx":3085
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3087
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3088
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__482, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3088, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3088, __pyx_L1_error)

    /* "talib/stream.pyx":3087
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3089
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3090
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3090, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3090, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3089
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3091
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3092
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3093
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__483, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3093, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3093, __pyx_L1_error)

    /* "talib/stream.pyx":3092
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3094
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3095
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__484, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3095, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3095, __pyx_L1_error)

    /* "talib/stream.pyx":3094
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3096
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3097
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3097, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3097, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3096
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3098
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3099
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3100
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__485, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3100, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3100, __pyx_L1_error)

    /* "talib/stream.pyx":3099
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3101
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3102
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__486, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3102, __pyx_L1_error)

    /* "talib/stream.pyx":3101
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3103
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3104
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3104, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3104, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3103
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3105
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3106
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3107
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__487, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3107, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3107, __pyx_L1_error)

    /* "talib/stream.pyx":3106
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3108
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3109
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__488, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3109, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3109, __pyx_L1_error)

    /* "talib/stream.pyx":3108
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3110
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3111
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3111, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3111, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3110
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3112
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3113
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3114
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3115
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__489, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3115, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3115, __pyx_L1_error)

    /* "talib/stream.pyx":3114
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3116
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3117
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__490, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3117, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3117, __pyx_L1_error)

    /* "talib/stream.pyx":3116
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3118
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3119
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLKICKING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__491, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3119, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3119, __pyx_L1_error)

    /* "talib/stream.pyx":3118
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3120
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLKICKING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLKICKING", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3121
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLKICKING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLKICKING", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLKICKING((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3122
 *     outinteger = 0
 *     retCode = lib.TA_CDLKICKING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLKICKING", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLKICKING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3123
 *     retCode = lib.TA_CDLKICKING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLKICKING", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3123, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3063
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLKICKING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLKICKING(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLKICKING", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3127
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLKICKINGBYLENGTH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLKICKINGBYLENGTH(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_105CDLKICKINGBYLENGTH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_104CDLKICKINGBYLENGTH[] = " CDLKICKINGBYLENGTH(open, high, low, close)\n\n    Kicking - bull/bear determined by the longer marubozu (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_105CDLKICKINGBYLENGTH = {"CDLKICKINGBYLENGTH", (PyCFunction)__pyx_pw_5talib_6stream_105CDLKICKINGBYLENGTH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_104CDLKICKINGBYLENGTH};
static PyObject *__pyx_pw_5talib_6stream_105CDLKICKINGBYLENGTH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLKICKINGBYLENGTH (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLKICKINGBYLENGTH", 1, 4, 4, 1); __PYX_ERR(0, 3127, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLKICKINGBYLENGTH", 1, 4, 4, 2); __PYX_ERR(0, 3127, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLKICKINGBYLENGTH", 1, 4, 4, 3); __PYX_ERR(0, 3127, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLKICKINGBYLENGTH") < 0)) __PYX_ERR(0, 3127, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLKICKINGBYLENGTH", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3127, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLKICKINGBYLENGTH", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3127, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3127, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3127, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3127, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_104CDLKICKINGBYLENGTH(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_104CDLKICKINGBYLENGTH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLKICKINGBYLENGTH", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3149
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3150
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__492, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3150, __pyx_L1_error)

    /* "talib/stream.pyx":3149
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3151
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3152
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__493, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3152, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3152, __pyx_L1_error)

    /* "talib/stream.pyx":3151
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3153
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3154
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3154, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3154, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3153
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3155
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3156
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3157
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__494, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3157, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3157, __pyx_L1_error)

    /* "talib/stream.pyx":3156
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3158
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3159
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__495, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3159, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3159, __pyx_L1_error)

    /* "talib/stream.pyx":3158
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3160
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3161
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3161, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3161, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3160
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3162
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3163
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3164
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__496, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3164, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3164, __pyx_L1_error)

    /* "talib/stream.pyx":3163
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3165
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3166
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__497, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3166, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3166, __pyx_L1_error)

    /* "talib/stream.pyx":3165
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3167
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3168
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3168, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3168, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3167
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3169
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3170
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3171
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__498, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3171, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3171, __pyx_L1_error)

    /* "talib/stream.pyx":3170
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3172
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3173
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__499, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3173, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3173, __pyx_L1_error)

    /* "talib/stream.pyx":3172
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3174
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3175
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3175, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3175, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3174
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3176
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3177
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3178
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3179
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__500, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3179, __pyx_L1_error)

    /* "talib/stream.pyx":3178
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3180
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3181
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__501, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3181, __pyx_L1_error)

    /* "talib/stream.pyx":3180
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3182
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3183
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLKICKINGBYLENGTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__502, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3183, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3183, __pyx_L1_error)

    /* "talib/stream.pyx":3182
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3184
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLKICKINGBYLENGTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLKICKINGBYLENGTH", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3185
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLKICKINGBYLENGTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLKICKINGBYLENGTH", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLKICKINGBYLENGTH((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3186
 *     outinteger = 0
 *     retCode = lib.TA_CDLKICKINGBYLENGTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLKICKINGBYLENGTH", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLKICKINGBYLENGTH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3186, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3187
 *     retCode = lib.TA_CDLKICKINGBYLENGTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLKICKINGBYLENGTH", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3127
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLKICKINGBYLENGTH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLKICKINGBYLENGTH(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLKICKINGBYLENGTH", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3191
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLADDERBOTTOM( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLADDERBOTTOM(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_107CDLLADDERBOTTOM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_106CDLLADDERBOTTOM[] = " CDLLADDERBOTTOM(open, high, low, close)\n\n    Ladder Bottom (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_107CDLLADDERBOTTOM = {"CDLLADDERBOTTOM", (PyCFunction)__pyx_pw_5talib_6stream_107CDLLADDERBOTTOM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_106CDLLADDERBOTTOM};
static PyObject *__pyx_pw_5talib_6stream_107CDLLADDERBOTTOM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLLADDERBOTTOM (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLLADDERBOTTOM", 1, 4, 4, 1); __PYX_ERR(0, 3191, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLLADDERBOTTOM", 1, 4, 4, 2); __PYX_ERR(0, 3191, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLLADDERBOTTOM", 1, 4, 4, 3); __PYX_ERR(0, 3191, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLLADDERBOTTOM") < 0)) __PYX_ERR(0, 3191, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLLADDERBOTTOM", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3191, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLLADDERBOTTOM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3191, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3191, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3191, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3191, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_106CDLLADDERBOTTOM(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_106CDLLADDERBOTTOM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLLADDERBOTTOM", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3213
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3214
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__503, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3214, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3214, __pyx_L1_error)

    /* "talib/stream.pyx":3213
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3215
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3216
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__504, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3216, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3216, __pyx_L1_error)

    /* "talib/stream.pyx":3215
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3217
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3218
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3218, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3218, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3217
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3219
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3220
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3221
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__505, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3221, __pyx_L1_error)

    /* "talib/stream.pyx":3220
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3222
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3223
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__506, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3223, __pyx_L1_error)

    /* "talib/stream.pyx":3222
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3224
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3225
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3225, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3225, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3224
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3226
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3227
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3228
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__507, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3228, __pyx_L1_error)

    /* "talib/stream.pyx":3227
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3229
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3230
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__508, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3230, __pyx_L1_error)

    /* "talib/stream.pyx":3229
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3231
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3232
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3232, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3232, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3231
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3233
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3234
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3235
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__509, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3235, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3235, __pyx_L1_error)

    /* "talib/stream.pyx":3234
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3236
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3237
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__510, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3237, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3237, __pyx_L1_error)

    /* "talib/stream.pyx":3236
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3238
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3239
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3239, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3239, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3238
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3240
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3241
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3242
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3243
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__511, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3243, __pyx_L1_error)

    /* "talib/stream.pyx":3242
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3244
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3245
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__512, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3245, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3245, __pyx_L1_error)

    /* "talib/stream.pyx":3244
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3246
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3247
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLLADDERBOTTOM( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__513, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3247, __pyx_L1_error)

    /* "talib/stream.pyx":3246
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3248
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLLADDERBOTTOM( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLLADDERBOTTOM", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3249
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLLADDERBOTTOM( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLLADDERBOTTOM", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLLADDERBOTTOM((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3250
 *     outinteger = 0
 *     retCode = lib.TA_CDLLADDERBOTTOM( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLLADDERBOTTOM", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLLADDERBOTTOM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3250, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3251
 *     retCode = lib.TA_CDLLADDERBOTTOM( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLLADDERBOTTOM", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3191
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLADDERBOTTOM( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLADDERBOTTOM(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLLADDERBOTTOM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3255
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLONGLEGGEDDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLONGLEGGEDDOJI(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_109CDLLONGLEGGEDDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_108CDLLONGLEGGEDDOJI[] = " CDLLONGLEGGEDDOJI(open, high, low, close)\n\n    Long Legged Doji (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_109CDLLONGLEGGEDDOJI = {"CDLLONGLEGGEDDOJI", (PyCFunction)__pyx_pw_5talib_6stream_109CDLLONGLEGGEDDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_108CDLLONGLEGGEDDOJI};
static PyObject *__pyx_pw_5talib_6stream_109CDLLONGLEGGEDDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLLONGLEGGEDDOJI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLLONGLEGGEDDOJI", 1, 4, 4, 1); __PYX_ERR(0, 3255, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLLONGLEGGEDDOJI", 1, 4, 4, 2); __PYX_ERR(0, 3255, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLLONGLEGGEDDOJI", 1, 4, 4, 3); __PYX_ERR(0, 3255, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLLONGLEGGEDDOJI") < 0)) __PYX_ERR(0, 3255, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLLONGLEGGEDDOJI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3255, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLLONGLEGGEDDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3255, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3255, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3255, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3255, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_108CDLLONGLEGGEDDOJI(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_108CDLLONGLEGGEDDOJI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLLONGLEGGEDDOJI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3277
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3278
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__514, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3278, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3278, __pyx_L1_error)

    /* "talib/stream.pyx":3277
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3279
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3280
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__515, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3280, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3280, __pyx_L1_error)

    /* "talib/stream.pyx":3279
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3281
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3282
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3282, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3282, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3281
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3283
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3284
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3285
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__516, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3285, __pyx_L1_error)

    /* "talib/stream.pyx":3284
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3286
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3287
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__517, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3287, __pyx_L1_error)

    /* "talib/stream.pyx":3286
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3288
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3289
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3289, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3289, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3288
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3290
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3291
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3292
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__518, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3292, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3292, __pyx_L1_error)

    /* "talib/stream.pyx":3291
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3293
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3294
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__519, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3294, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3294, __pyx_L1_error)

    /* "talib/stream.pyx":3293
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3295
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3296
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3296, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3296, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3295
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3297
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3298
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3299
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__520, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3299, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3299, __pyx_L1_error)

    /* "talib/stream.pyx":3298
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3300
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3301
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__521, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3301, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3301, __pyx_L1_error)

    /* "talib/stream.pyx":3300
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3302
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3303
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3303, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3303, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3302
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3304
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3305
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3306
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3307
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__522, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3307, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3307, __pyx_L1_error)

    /* "talib/stream.pyx":3306
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3308
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3309
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__523, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3309, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3309, __pyx_L1_error)

    /* "talib/stream.pyx":3308
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3310
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3311
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLLONGLEGGEDDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__524, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3311, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3311, __pyx_L1_error)

    /* "talib/stream.pyx":3310
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3312
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLLONGLEGGEDDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLLONGLEGGEDDOJI", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3313
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLLONGLEGGEDDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLLONGLEGGEDDOJI", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLLONGLEGGEDDOJI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3314
 *     outinteger = 0
 *     retCode = lib.TA_CDLLONGLEGGEDDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLLONGLEGGEDDOJI", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLLONGLEGGEDDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3314, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3315
 *     retCode = lib.TA_CDLLONGLEGGEDDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLLONGLEGGEDDOJI", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3255
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLONGLEGGEDDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLONGLEGGEDDOJI(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLLONGLEGGEDDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3319
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLONGLINE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLONGLINE(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_111CDLLONGLINE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_110CDLLONGLINE[] = " CDLLONGLINE(open, high, low, close)\n\n    Long Line Candle (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_111CDLLONGLINE = {"CDLLONGLINE", (PyCFunction)__pyx_pw_5talib_6stream_111CDLLONGLINE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_110CDLLONGLINE};
static PyObject *__pyx_pw_5talib_6stream_111CDLLONGLINE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLLONGLINE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLLONGLINE", 1, 4, 4, 1); __PYX_ERR(0, 3319, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLLONGLINE", 1, 4, 4, 2); __PYX_ERR(0, 3319, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLLONGLINE", 1, 4, 4, 3); __PYX_ERR(0, 3319, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLLONGLINE") < 0)) __PYX_ERR(0, 3319, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLLONGLINE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3319, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLLONGLINE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3319, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3319, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3319, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3319, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_110CDLLONGLINE(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_110CDLLONGLINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLLONGLINE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3341
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3342
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__525, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3342, __pyx_L1_error)

    /* "talib/stream.pyx":3341
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3343
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3344
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__526, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3344, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3344, __pyx_L1_error)

    /* "talib/stream.pyx":3343
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3345
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3346
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3346, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3346, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3345
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3347
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3348
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3349
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__527, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3349, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3349, __pyx_L1_error)

    /* "talib/stream.pyx":3348
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3350
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3351
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__528, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3351, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3351, __pyx_L1_error)

    /* "talib/stream.pyx":3350
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3352
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3353
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3353, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3353, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3352
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3354
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3355
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3356
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__529, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3356, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3356, __pyx_L1_error)

    /* "talib/stream.pyx":3355
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3357
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3358
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__530, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3358, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3358, __pyx_L1_error)

    /* "talib/stream.pyx":3357
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3359
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3360
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3360, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3360, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3359
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3361
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3362
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3363
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__531, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3363, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3363, __pyx_L1_error)

    /* "talib/stream.pyx":3362
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3364
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3365
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__532, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3365, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3365, __pyx_L1_error)

    /* "talib/stream.pyx":3364
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3366
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3367
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3367, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3367, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3366
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3368
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3369
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3370
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3371
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__533, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3371, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3371, __pyx_L1_error)

    /* "talib/stream.pyx":3370
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3372
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3373
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__534, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3373, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3373, __pyx_L1_error)

    /* "talib/stream.pyx":3372
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3374
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3375
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLLONGLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__535, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3375, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3375, __pyx_L1_error)

    /* "talib/stream.pyx":3374
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3376
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLLONGLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLLONGLINE", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3377
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLLONGLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLLONGLINE", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLLONGLINE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3378
 *     outinteger = 0
 *     retCode = lib.TA_CDLLONGLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLLONGLINE", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLLONGLINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3379
 *     retCode = lib.TA_CDLLONGLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLLONGLINE", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3319
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLONGLINE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLONGLINE(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLLONGLINE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3383
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMARUBOZU( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLMARUBOZU(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_113CDLMARUBOZU(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_112CDLMARUBOZU[] = " CDLMARUBOZU(open, high, low, close)\n\n    Marubozu (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_113CDLMARUBOZU = {"CDLMARUBOZU", (PyCFunction)__pyx_pw_5talib_6stream_113CDLMARUBOZU, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_112CDLMARUBOZU};
static PyObject *__pyx_pw_5talib_6stream_113CDLMARUBOZU(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLMARUBOZU (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMARUBOZU", 1, 4, 4, 1); __PYX_ERR(0, 3383, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMARUBOZU", 1, 4, 4, 2); __PYX_ERR(0, 3383, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMARUBOZU", 1, 4, 4, 3); __PYX_ERR(0, 3383, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLMARUBOZU") < 0)) __PYX_ERR(0, 3383, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLMARUBOZU", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3383, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLMARUBOZU", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3383, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3383, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3383, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3383, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_112CDLMARUBOZU(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_112CDLMARUBOZU(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLMARUBOZU", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3405
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3406
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__536, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3406, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3406, __pyx_L1_error)

    /* "talib/stream.pyx":3405
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3407
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3408
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__537, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3408, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3408, __pyx_L1_error)

    /* "talib/stream.pyx":3407
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3409
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3410
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3410, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3410, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3409
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3411
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3412
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3413
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__538, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3413, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3413, __pyx_L1_error)

    /* "talib/stream.pyx":3412
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3414
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3415
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__539, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3415, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3415, __pyx_L1_error)

    /* "talib/stream.pyx":3414
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3416
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3417
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3417, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3417, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3416
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3418
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3419
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3420
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__540, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3420, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3420, __pyx_L1_error)

    /* "talib/stream.pyx":3419
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3421
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3422
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__541, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3422, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3422, __pyx_L1_error)

    /* "talib/stream.pyx":3421
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3423
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3424
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3424, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3424, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3423
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3425
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3426
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3427
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__542, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3427, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3427, __pyx_L1_error)

    /* "talib/stream.pyx":3426
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3428
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3429
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__543, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3429, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3429, __pyx_L1_error)

    /* "talib/stream.pyx":3428
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3430
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3431
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3431, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3431, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3430
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3432
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3433
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3434
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3435
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__544, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3435, __pyx_L1_error)

    /* "talib/stream.pyx":3434
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3436
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3437
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__545, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3437, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3437, __pyx_L1_error)

    /* "talib/stream.pyx":3436
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3438
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3439
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__546, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3439, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3439, __pyx_L1_error)

    /* "talib/stream.pyx":3438
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3440
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMARUBOZU", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3441
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLMARUBOZU", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLMARUBOZU((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3442
 *     outinteger = 0
 *     retCode = lib.TA_CDLMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMARUBOZU", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLMARUBOZU, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3442, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3443
 *     retCode = lib.TA_CDLMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMARUBOZU", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3383
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMARUBOZU( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLMARUBOZU(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLMARUBOZU", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3447
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMATCHINGLOW( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLMATCHINGLOW(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_115CDLMATCHINGLOW(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_114CDLMATCHINGLOW[] = " CDLMATCHINGLOW(open, high, low, close)\n\n    Matching Low (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_115CDLMATCHINGLOW = {"CDLMATCHINGLOW", (PyCFunction)__pyx_pw_5talib_6stream_115CDLMATCHINGLOW, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_114CDLMATCHINGLOW};
static PyObject *__pyx_pw_5talib_6stream_115CDLMATCHINGLOW(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLMATCHINGLOW (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMATCHINGLOW", 1, 4, 4, 1); __PYX_ERR(0, 3447, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMATCHINGLOW", 1, 4, 4, 2); __PYX_ERR(0, 3447, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMATCHINGLOW", 1, 4, 4, 3); __PYX_ERR(0, 3447, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLMATCHINGLOW") < 0)) __PYX_ERR(0, 3447, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLMATCHINGLOW", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3447, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLMATCHINGLOW", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3447, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3447, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3447, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3447, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_114CDLMATCHINGLOW(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_114CDLMATCHINGLOW(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLMATCHINGLOW", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3469
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3470
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__547, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3470, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3470, __pyx_L1_error)

    /* "talib/stream.pyx":3469
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3471
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3472
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__548, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3472, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3472, __pyx_L1_error)

    /* "talib/stream.pyx":3471
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3473
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3474
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3474, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3474, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3473
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3475
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3476
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3477
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__549, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3477, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3477, __pyx_L1_error)

    /* "talib/stream.pyx":3476
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3478
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3479
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__550, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3479, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3479, __pyx_L1_error)

    /* "talib/stream.pyx":3478
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3480
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3481
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3481, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3481, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3480
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3482
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3483
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3484
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__551, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3484, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3484, __pyx_L1_error)

    /* "talib/stream.pyx":3483
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3485
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3486
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__552, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3486, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3486, __pyx_L1_error)

    /* "talib/stream.pyx":3485
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3487
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3488
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3488, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3488, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3487
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3489
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3490
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3491
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__553, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3491, __pyx_L1_error)

    /* "talib/stream.pyx":3490
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3492
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3493
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__554, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3493, __pyx_L1_error)

    /* "talib/stream.pyx":3492
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3494
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3495
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3495, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3495, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3494
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3496
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3497
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3498
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3499
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__555, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3499, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3499, __pyx_L1_error)

    /* "talib/stream.pyx":3498
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3500
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3501
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__556, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3501, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3501, __pyx_L1_error)

    /* "talib/stream.pyx":3500
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3502
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3503
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLMATCHINGLOW( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__557, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3503, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3503, __pyx_L1_error)

    /* "talib/stream.pyx":3502
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3504
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLMATCHINGLOW( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMATCHINGLOW", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3505
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLMATCHINGLOW( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLMATCHINGLOW", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLMATCHINGLOW((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3506
 *     outinteger = 0
 *     retCode = lib.TA_CDLMATCHINGLOW( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMATCHINGLOW", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLMATCHINGLOW, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3506, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3507
 *     retCode = lib.TA_CDLMATCHINGLOW( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMATCHINGLOW", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3447
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMATCHINGLOW( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLMATCHINGLOW(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLMATCHINGLOW", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3511
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMATHOLD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.5 ):             # <<<<<<<<<<<<<<
 *     """ CDLMATHOLD(open, high, low, close[, penetration=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_117CDLMATHOLD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_116CDLMATHOLD[] = " CDLMATHOLD(open, high, low, close[, penetration=?])\n\n    Mat Hold (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Parameters:\n        penetration: 0.5\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_117CDLMATHOLD = {"CDLMATHOLD", (PyCFunction)__pyx_pw_5talib_6stream_117CDLMATHOLD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_116CDLMATHOLD};
static PyObject *__pyx_pw_5talib_6stream_117CDLMATHOLD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  double __pyx_v_penetration;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLMATHOLD (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_penetration,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMATHOLD", 0, 4, 5, 1); __PYX_ERR(0, 3511, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMATHOLD", 0, 4, 5, 2); __PYX_ERR(0, 3511, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMATHOLD", 0, 4, 5, 3); __PYX_ERR(0, 3511, __pyx_L3_error)
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_penetration);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLMATHOLD") < 0)) __PYX_ERR(0, 3511, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
    if (values[4]) {
      __pyx_v_penetration = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_penetration == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3511, __pyx_L3_error)
    } else {
      __pyx_v_penetration = ((double)0.5);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLMATHOLD", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3511, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLMATHOLD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3511, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3511, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3511, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3511, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_116CDLMATHOLD(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_penetration);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_116CDLMATHOLD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLMATHOLD", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3535
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3536
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__558, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3536, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3536, __pyx_L1_error)

    /* "talib/stream.pyx":3535
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3537
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3538
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__559, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3538, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3538, __pyx_L1_error)

    /* "talib/stream.pyx":3537
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3539
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3540
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3540, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3540, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3539
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3541
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3542
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3543
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__560, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3543, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3543, __pyx_L1_error)

    /* "talib/stream.pyx":3542
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3544
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3545
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__561, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3545, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3545, __pyx_L1_error)

    /* "talib/stream.pyx":3544
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3546
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3547
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3547, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3547, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3546
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3548
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3549
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3550
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__562, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3550, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3550, __pyx_L1_error)

    /* "talib/stream.pyx":3549
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3551
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3552
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__563, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3552, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3552, __pyx_L1_error)

    /* "talib/stream.pyx":3551
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3553
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3554
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3554, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3554, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3553
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3555
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3556
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3557
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__564, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3557, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3557, __pyx_L1_error)

    /* "talib/stream.pyx":3556
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3558
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3559
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__565, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3559, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3559, __pyx_L1_error)

    /* "talib/stream.pyx":3558
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3560
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3561
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3561, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3561, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3560
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3562
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3563
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3564
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3565
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__566, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3565, __pyx_L1_error)

    /* "talib/stream.pyx":3564
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3566
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3567
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__567, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3567, __pyx_L1_error)

    /* "talib/stream.pyx":3566
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3568
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3569
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLMATHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__568, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3569, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3569, __pyx_L1_error)

    /* "talib/stream.pyx":3568
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3570
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLMATHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMATHOLD", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3571
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLMATHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLMATHOLD", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLMATHOLD((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3572
 *     outinteger = 0
 *     retCode = lib.TA_CDLMATHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMATHOLD", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLMATHOLD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3573
 *     retCode = lib.TA_CDLMATHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMATHOLD", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3511
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMATHOLD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.5 ):             # <<<<<<<<<<<<<<
 *     """ CDLMATHOLD(open, high, low, close[, penetration=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLMATHOLD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3577
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMORNINGDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLMORNINGDOJISTAR(open, high, low, close[, penetration=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_119CDLMORNINGDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_118CDLMORNINGDOJISTAR[] = " CDLMORNINGDOJISTAR(open, high, low, close[, penetration=?])\n\n    Morning Doji Star (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Parameters:\n        penetration: 0.3\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_119CDLMORNINGDOJISTAR = {"CDLMORNINGDOJISTAR", (PyCFunction)__pyx_pw_5talib_6stream_119CDLMORNINGDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_118CDLMORNINGDOJISTAR};
static PyObject *__pyx_pw_5talib_6stream_119CDLMORNINGDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  double __pyx_v_penetration;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLMORNINGDOJISTAR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_penetration,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMORNINGDOJISTAR", 0, 4, 5, 1); __PYX_ERR(0, 3577, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMORNINGDOJISTAR", 0, 4, 5, 2); __PYX_ERR(0, 3577, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMORNINGDOJISTAR", 0, 4, 5, 3); __PYX_ERR(0, 3577, __pyx_L3_error)
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_penetration);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLMORNINGDOJISTAR") < 0)) __PYX_ERR(0, 3577, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
    if (values[4]) {
      __pyx_v_penetration = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_penetration == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3577, __pyx_L3_error)
    } else {
      __pyx_v_penetration = ((double)0.3);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLMORNINGDOJISTAR", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3577, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLMORNINGDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3577, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3577, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3577, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3577, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_118CDLMORNINGDOJISTAR(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_penetration);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_118CDLMORNINGDOJISTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLMORNINGDOJISTAR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3601
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3602
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__569, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3602, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3602, __pyx_L1_error)

    /* "talib/stream.pyx":3601
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3603
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3604
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__570, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3604, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3604, __pyx_L1_error)

    /* "talib/stream.pyx":3603
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3605
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3606
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3606, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3606, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3605
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3607
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3608
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3609
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__571, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3609, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3609, __pyx_L1_error)

    /* "talib/stream.pyx":3608
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3610
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3611
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__572, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3611, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3611, __pyx_L1_error)

    /* "talib/stream.pyx":3610
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3612
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3613
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3613, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3613, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3612
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3614
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3615
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3616
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__573, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3616, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3616, __pyx_L1_error)

    /* "talib/stream.pyx":3615
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3617
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3618
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__574, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3618, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3618, __pyx_L1_error)

    /* "talib/stream.pyx":3617
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3619
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3620
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3620, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3620, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3619
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3621
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3622
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3623
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__575, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3623, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3623, __pyx_L1_error)

    /* "talib/stream.pyx":3622
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3624
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3625
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__576, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3625, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3625, __pyx_L1_error)

    /* "talib/stream.pyx":3624
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3626
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3627
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3627, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3627, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3626
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3628
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3629
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3630
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3631
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__577, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3631, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3631, __pyx_L1_error)

    /* "talib/stream.pyx":3630
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3632
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3633
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__578, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3633, __pyx_L1_error)

    /* "talib/stream.pyx":3632
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3634
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3635
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLMORNINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__579, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3635, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3635, __pyx_L1_error)

    /* "talib/stream.pyx":3634
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3636
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLMORNINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMORNINGDOJISTAR", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3637
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLMORNINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLMORNINGDOJISTAR", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLMORNINGDOJISTAR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3638
 *     outinteger = 0
 *     retCode = lib.TA_CDLMORNINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMORNINGDOJISTAR", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLMORNINGDOJISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3639
 *     retCode = lib.TA_CDLMORNINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMORNINGDOJISTAR", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3639, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3577
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMORNINGDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLMORNINGDOJISTAR(open, high, low, close[, penetration=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLMORNINGDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3643
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMORNINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLMORNINGSTAR(open, high, low, close[, penetration=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_121CDLMORNINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_120CDLMORNINGSTAR[] = " CDLMORNINGSTAR(open, high, low, close[, penetration=?])\n\n    Morning Star (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Parameters:\n        penetration: 0.3\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_121CDLMORNINGSTAR = {"CDLMORNINGSTAR", (PyCFunction)__pyx_pw_5talib_6stream_121CDLMORNINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_120CDLMORNINGSTAR};
static PyObject *__pyx_pw_5talib_6stream_121CDLMORNINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  double __pyx_v_penetration;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLMORNINGSTAR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_penetration,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMORNINGSTAR", 0, 4, 5, 1); __PYX_ERR(0, 3643, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMORNINGSTAR", 0, 4, 5, 2); __PYX_ERR(0, 3643, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLMORNINGSTAR", 0, 4, 5, 3); __PYX_ERR(0, 3643, __pyx_L3_error)
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_penetration);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLMORNINGSTAR") < 0)) __PYX_ERR(0, 3643, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
    if (values[4]) {
      __pyx_v_penetration = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_penetration == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 3643, __pyx_L3_error)
    } else {
      __pyx_v_penetration = ((double)0.3);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLMORNINGSTAR", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3643, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLMORNINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3643, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3643, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3643, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3643, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_120CDLMORNINGSTAR(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_penetration);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_120CDLMORNINGSTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, double __pyx_v_penetration) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLMORNINGSTAR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3667
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3668
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__580, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3668, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3668, __pyx_L1_error)

    /* "talib/stream.pyx":3667
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3669
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3670
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__581, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3670, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3670, __pyx_L1_error)

    /* "talib/stream.pyx":3669
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3671
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3672
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3672, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3672, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3671
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3673
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3674
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3675
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__582, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3675, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3675, __pyx_L1_error)

    /* "talib/stream.pyx":3674
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3676
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3677
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__583, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3677, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3677, __pyx_L1_error)

    /* "talib/stream.pyx":3676
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3678
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3679
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3679, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3679, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3678
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3680
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3681
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3682
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__584, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3682, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3682, __pyx_L1_error)

    /* "talib/stream.pyx":3681
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3683
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3684
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__585, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3684, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3684, __pyx_L1_error)

    /* "talib/stream.pyx":3683
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3685
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3686
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3686, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3686, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3685
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3687
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3688
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3689
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__586, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3689, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3689, __pyx_L1_error)

    /* "talib/stream.pyx":3688
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3690
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3691
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__587, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3691, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3691, __pyx_L1_error)

    /* "talib/stream.pyx":3690
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3692
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3693
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3693, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3693, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3692
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3694
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3695
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3696
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3697
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__588, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3697, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3697, __pyx_L1_error)

    /* "talib/stream.pyx":3696
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3698
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3699
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__589, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3699, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3699, __pyx_L1_error)

    /* "talib/stream.pyx":3698
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3700
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3701
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLMORNINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__590, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3701, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3701, __pyx_L1_error)

    /* "talib/stream.pyx":3700
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3702
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLMORNINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMORNINGSTAR", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3703
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLMORNINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLMORNINGSTAR", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLMORNINGSTAR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3704
 *     outinteger = 0
 *     retCode = lib.TA_CDLMORNINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMORNINGSTAR", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLMORNINGSTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3705
 *     retCode = lib.TA_CDLMORNINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLMORNINGSTAR", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3643
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMORNINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLMORNINGSTAR(open, high, low, close[, penetration=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLMORNINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3709
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLONNECK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLONNECK(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_123CDLONNECK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_122CDLONNECK[] = " CDLONNECK(open, high, low, close)\n\n    On-Neck Pattern (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_123CDLONNECK = {"CDLONNECK", (PyCFunction)__pyx_pw_5talib_6stream_123CDLONNECK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_122CDLONNECK};
static PyObject *__pyx_pw_5talib_6stream_123CDLONNECK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLONNECK (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLONNECK", 1, 4, 4, 1); __PYX_ERR(0, 3709, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLONNECK", 1, 4, 4, 2); __PYX_ERR(0, 3709, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLONNECK", 1, 4, 4, 3); __PYX_ERR(0, 3709, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLONNECK") < 0)) __PYX_ERR(0, 3709, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLONNECK", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3709, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLONNECK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3709, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3709, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3709, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3709, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_122CDLONNECK(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_122CDLONNECK(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLONNECK", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3731
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3732
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__591, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3732, __pyx_L1_error)

    /* "talib/stream.pyx":3731
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3733
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3734
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__592, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3734, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3734, __pyx_L1_error)

    /* "talib/stream.pyx":3733
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3735
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3736
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3736, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3736, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3735
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3737
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3738
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3739
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__593, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3739, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3739, __pyx_L1_error)

    /* "talib/stream.pyx":3738
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3740
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3741
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__594, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3741, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3741, __pyx_L1_error)

    /* "talib/stream.pyx":3740
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3742
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3743
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3743, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3743, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3742
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3744
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3745
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3746
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__595, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3746, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3746, __pyx_L1_error)

    /* "talib/stream.pyx":3745
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3747
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3748
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__596, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3748, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3748, __pyx_L1_error)

    /* "talib/stream.pyx":3747
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3749
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3750
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3750, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3750, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3749
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3751
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3752
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3753
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__597, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3753, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3753, __pyx_L1_error)

    /* "talib/stream.pyx":3752
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3754
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3755
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__598, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3755, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3755, __pyx_L1_error)

    /* "talib/stream.pyx":3754
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3756
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3757
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3757, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3757, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3756
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3758
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3759
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3760
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3761
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__599, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3761, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3761, __pyx_L1_error)

    /* "talib/stream.pyx":3760
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3762
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3763
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__600, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3763, __pyx_L1_error)

    /* "talib/stream.pyx":3762
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3764
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3765
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLONNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__601, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3765, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3765, __pyx_L1_error)

    /* "talib/stream.pyx":3764
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3766
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLONNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLONNECK", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3767
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLONNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLONNECK", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLONNECK((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3768
 *     outinteger = 0
 *     retCode = lib.TA_CDLONNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLONNECK", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLONNECK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3769
 *     retCode = lib.TA_CDLONNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLONNECK", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3769, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3709
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLONNECK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLONNECK(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLONNECK", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3773
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLPIERCING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLPIERCING(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_125CDLPIERCING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_124CDLPIERCING[] = " CDLPIERCING(open, high, low, close)\n\n    Piercing Pattern (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_125CDLPIERCING = {"CDLPIERCING", (PyCFunction)__pyx_pw_5talib_6stream_125CDLPIERCING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_124CDLPIERCING};
static PyObject *__pyx_pw_5talib_6stream_125CDLPIERCING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLPIERCING (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLPIERCING", 1, 4, 4, 1); __PYX_ERR(0, 3773, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLPIERCING", 1, 4, 4, 2); __PYX_ERR(0, 3773, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLPIERCING", 1, 4, 4, 3); __PYX_ERR(0, 3773, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLPIERCING") < 0)) __PYX_ERR(0, 3773, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLPIERCING", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3773, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLPIERCING", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3773, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3773, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3773, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3773, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_124CDLPIERCING(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_124CDLPIERCING(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLPIERCING", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3795
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3796
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__602, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3796, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3796, __pyx_L1_error)

    /* "talib/stream.pyx":3795
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3797
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3798
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__603, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3798, __pyx_L1_error)

    /* "talib/stream.pyx":3797
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3799
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3800
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3800, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3800, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3799
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3801
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3802
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3803
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__604, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3803, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3803, __pyx_L1_error)

    /* "talib/stream.pyx":3802
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3804
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3805
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__605, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3805, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3805, __pyx_L1_error)

    /* "talib/stream.pyx":3804
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3806
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3807
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3807, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3807, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3806
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3808
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3809
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3810
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__606, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3810, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3810, __pyx_L1_error)

    /* "talib/stream.pyx":3809
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3811
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3812
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__607, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3812, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3812, __pyx_L1_error)

    /* "talib/stream.pyx":3811
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3813
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3814
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3814, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3814, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3813
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3815
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3816
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3817
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__608, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3817, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3817, __pyx_L1_error)

    /* "talib/stream.pyx":3816
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3818
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3819
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__609, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3819, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3819, __pyx_L1_error)

    /* "talib/stream.pyx":3818
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3820
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3821
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3821, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3821, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3820
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3822
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3823
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3824
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3825
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__610, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3825, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3825, __pyx_L1_error)

    /* "talib/stream.pyx":3824
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3826
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3827
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__611, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3827, __pyx_L1_error)

    /* "talib/stream.pyx":3826
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3828
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3829
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLPIERCING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__612, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3829, __pyx_L1_error)

    /* "talib/stream.pyx":3828
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3830
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLPIERCING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLPIERCING", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3831
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLPIERCING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLPIERCING", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLPIERCING((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3832
 *     outinteger = 0
 *     retCode = lib.TA_CDLPIERCING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLPIERCING", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLPIERCING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3833
 *     retCode = lib.TA_CDLPIERCING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLPIERCING", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3773
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLPIERCING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLPIERCING(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLPIERCING", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3837
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLRICKSHAWMAN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLRICKSHAWMAN(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_127CDLRICKSHAWMAN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_126CDLRICKSHAWMAN[] = " CDLRICKSHAWMAN(open, high, low, close)\n\n    Rickshaw Man (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_127CDLRICKSHAWMAN = {"CDLRICKSHAWMAN", (PyCFunction)__pyx_pw_5talib_6stream_127CDLRICKSHAWMAN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_126CDLRICKSHAWMAN};
static PyObject *__pyx_pw_5talib_6stream_127CDLRICKSHAWMAN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLRICKSHAWMAN (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLRICKSHAWMAN", 1, 4, 4, 1); __PYX_ERR(0, 3837, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLRICKSHAWMAN", 1, 4, 4, 2); __PYX_ERR(0, 3837, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLRICKSHAWMAN", 1, 4, 4, 3); __PYX_ERR(0, 3837, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLRICKSHAWMAN") < 0)) __PYX_ERR(0, 3837, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLRICKSHAWMAN", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3837, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLRICKSHAWMAN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3837, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3837, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3837, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3837, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_126CDLRICKSHAWMAN(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_126CDLRICKSHAWMAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLRICKSHAWMAN", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3859
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3860
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__613, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3860, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3860, __pyx_L1_error)

    /* "talib/stream.pyx":3859
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3861
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3862
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__614, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3862, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3862, __pyx_L1_error)

    /* "talib/stream.pyx":3861
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3863
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3864
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3864, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3864, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3863
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3865
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3866
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3867
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__615, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3867, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3867, __pyx_L1_error)

    /* "talib/stream.pyx":3866
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3868
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3869
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__616, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3869, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3869, __pyx_L1_error)

    /* "talib/stream.pyx":3868
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3870
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3871
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3871, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3871, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3870
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3872
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3873
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3874
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__617, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3874, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3874, __pyx_L1_error)

    /* "talib/stream.pyx":3873
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3875
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3876
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__618, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3876, __pyx_L1_error)

    /* "talib/stream.pyx":3875
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3877
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3878
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3878, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3878, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3877
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3879
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3880
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3881
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__619, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3881, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3881, __pyx_L1_error)

    /* "talib/stream.pyx":3880
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3882
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3883
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__620, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3883, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3883, __pyx_L1_error)

    /* "talib/stream.pyx":3882
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3884
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3885
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3885, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3885, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3884
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3886
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3887
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3888
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3889
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__621, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3889, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3889, __pyx_L1_error)

    /* "talib/stream.pyx":3888
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3890
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3891
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__622, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3891, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3891, __pyx_L1_error)

    /* "talib/stream.pyx":3890
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3892
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3893
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLRICKSHAWMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__623, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3893, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3893, __pyx_L1_error)

    /* "talib/stream.pyx":3892
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3894
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLRICKSHAWMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLRICKSHAWMAN", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3895
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLRICKSHAWMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLRICKSHAWMAN", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLRICKSHAWMAN((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3896
 *     outinteger = 0
 *     retCode = lib.TA_CDLRICKSHAWMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLRICKSHAWMAN", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLRICKSHAWMAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3896, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3897
 *     retCode = lib.TA_CDLRICKSHAWMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLRICKSHAWMAN", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3837
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLRICKSHAWMAN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLRICKSHAWMAN(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLRICKSHAWMAN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3901
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLRISEFALL3METHODS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLRISEFALL3METHODS(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_129CDLRISEFALL3METHODS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_128CDLRISEFALL3METHODS[] = " CDLRISEFALL3METHODS(open, high, low, close)\n\n    Rising/Falling Three Methods (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_129CDLRISEFALL3METHODS = {"CDLRISEFALL3METHODS", (PyCFunction)__pyx_pw_5talib_6stream_129CDLRISEFALL3METHODS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_128CDLRISEFALL3METHODS};
static PyObject *__pyx_pw_5talib_6stream_129CDLRISEFALL3METHODS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLRISEFALL3METHODS (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLRISEFALL3METHODS", 1, 4, 4, 1); __PYX_ERR(0, 3901, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLRISEFALL3METHODS", 1, 4, 4, 2); __PYX_ERR(0, 3901, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLRISEFALL3METHODS", 1, 4, 4, 3); __PYX_ERR(0, 3901, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLRISEFALL3METHODS") < 0)) __PYX_ERR(0, 3901, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLRISEFALL3METHODS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3901, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLRISEFALL3METHODS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3901, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3901, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3901, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3901, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_128CDLRISEFALL3METHODS(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_128CDLRISEFALL3METHODS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLRISEFALL3METHODS", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3923
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3924
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__624, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3924, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3924, __pyx_L1_error)

    /* "talib/stream.pyx":3923
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3925
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3926
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__625, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3926, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3926, __pyx_L1_error)

    /* "talib/stream.pyx":3925
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3927
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3928
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3928, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3928, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3927
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3929
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3930
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3931
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__626, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3931, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3931, __pyx_L1_error)

    /* "talib/stream.pyx":3930
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3932
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3933
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__627, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3933, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3933, __pyx_L1_error)

    /* "talib/stream.pyx":3932
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3934
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3935
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3935, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3935, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3934
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":3936
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":3937
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3938
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__628, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3938, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3938, __pyx_L1_error)

    /* "talib/stream.pyx":3937
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3939
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3940
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__629, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3940, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3940, __pyx_L1_error)

    /* "talib/stream.pyx":3939
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3941
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3942
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3942, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3942, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3941
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":3943
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":3944
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3945
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__630, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3945, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3945, __pyx_L1_error)

    /* "talib/stream.pyx":3944
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3946
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3947
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__631, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3947, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3947, __pyx_L1_error)

    /* "talib/stream.pyx":3946
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3948
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3949
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3949, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3949, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3948
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":3950
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":3951
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":3952
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3953
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__632, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3953, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3953, __pyx_L1_error)

    /* "talib/stream.pyx":3952
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":3954
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3955
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__633, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3955, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3955, __pyx_L1_error)

    /* "talib/stream.pyx":3954
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":3956
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3957
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLRISEFALL3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__634, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3957, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3957, __pyx_L1_error)

    /* "talib/stream.pyx":3956
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":3958
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLRISEFALL3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLRISEFALL3METHODS", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":3959
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLRISEFALL3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLRISEFALL3METHODS", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLRISEFALL3METHODS((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":3960
 *     outinteger = 0
 *     retCode = lib.TA_CDLRISEFALL3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLRISEFALL3METHODS", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLRISEFALL3METHODS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3960, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":3961
 *     retCode = lib.TA_CDLRISEFALL3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLRISEFALL3METHODS", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3961, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3901
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLRISEFALL3METHODS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLRISEFALL3METHODS(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLRISEFALL3METHODS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":3965
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSEPARATINGLINES( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSEPARATINGLINES(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_131CDLSEPARATINGLINES(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_130CDLSEPARATINGLINES[] = " CDLSEPARATINGLINES(open, high, low, close)\n\n    Separating Lines (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_131CDLSEPARATINGLINES = {"CDLSEPARATINGLINES", (PyCFunction)__pyx_pw_5talib_6stream_131CDLSEPARATINGLINES, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_130CDLSEPARATINGLINES};
static PyObject *__pyx_pw_5talib_6stream_131CDLSEPARATINGLINES(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLSEPARATINGLINES (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSEPARATINGLINES", 1, 4, 4, 1); __PYX_ERR(0, 3965, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSEPARATINGLINES", 1, 4, 4, 2); __PYX_ERR(0, 3965, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSEPARATINGLINES", 1, 4, 4, 3); __PYX_ERR(0, 3965, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSEPARATINGLINES") < 0)) __PYX_ERR(0, 3965, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLSEPARATINGLINES", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 3965, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLSEPARATINGLINES", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 3965, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3965, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3965, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3965, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_130CDLSEPARATINGLINES(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_130CDLSEPARATINGLINES(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLSEPARATINGLINES", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":3987
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3988
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__635, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3988, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3988, __pyx_L1_error)

    /* "talib/stream.pyx":3987
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3989
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3990
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__636, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3990, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3990, __pyx_L1_error)

    /* "talib/stream.pyx":3989
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3991
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3992
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3992, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3992, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3991
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":3993
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":3994
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3995
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__637, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3995, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3995, __pyx_L1_error)

    /* "talib/stream.pyx":3994
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":3996
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3997
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__638, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3997, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 3997, __pyx_L1_error)

    /* "talib/stream.pyx":3996
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":3998
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":3999
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3999, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3999, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":3998
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4000
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4001
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4002
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__639, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4002, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4002, __pyx_L1_error)

    /* "talib/stream.pyx":4001
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4003
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4004
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__640, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4004, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4004, __pyx_L1_error)

    /* "talib/stream.pyx":4003
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4005
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4006
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4006, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4006, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4005
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4007
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4008
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4009
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__641, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4009, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4009, __pyx_L1_error)

    /* "talib/stream.pyx":4008
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4010
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4011
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__642, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4011, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4011, __pyx_L1_error)

    /* "talib/stream.pyx":4010
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4012
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4013
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4013, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4013, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4012
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4014
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4015
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4016
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4017
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__643, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4017, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4017, __pyx_L1_error)

    /* "talib/stream.pyx":4016
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4018
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4019
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__644, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4019, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4019, __pyx_L1_error)

    /* "talib/stream.pyx":4018
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4020
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4021
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSEPARATINGLINES( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__645, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4021, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4021, __pyx_L1_error)

    /* "talib/stream.pyx":4020
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4022
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLSEPARATINGLINES( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSEPARATINGLINES", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4023
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLSEPARATINGLINES( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLSEPARATINGLINES", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLSEPARATINGLINES((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4024
 *     outinteger = 0
 *     retCode = lib.TA_CDLSEPARATINGLINES( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSEPARATINGLINES", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLSEPARATINGLINES, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4025
 *     retCode = lib.TA_CDLSEPARATINGLINES( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSEPARATINGLINES", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":3965
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSEPARATINGLINES( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSEPARATINGLINES(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLSEPARATINGLINES", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4029
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSHOOTINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSHOOTINGSTAR(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_133CDLSHOOTINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_132CDLSHOOTINGSTAR[] = " CDLSHOOTINGSTAR(open, high, low, close)\n\n    Shooting Star (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_133CDLSHOOTINGSTAR = {"CDLSHOOTINGSTAR", (PyCFunction)__pyx_pw_5talib_6stream_133CDLSHOOTINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_132CDLSHOOTINGSTAR};
static PyObject *__pyx_pw_5talib_6stream_133CDLSHOOTINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLSHOOTINGSTAR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSHOOTINGSTAR", 1, 4, 4, 1); __PYX_ERR(0, 4029, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSHOOTINGSTAR", 1, 4, 4, 2); __PYX_ERR(0, 4029, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSHOOTINGSTAR", 1, 4, 4, 3); __PYX_ERR(0, 4029, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSHOOTINGSTAR") < 0)) __PYX_ERR(0, 4029, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLSHOOTINGSTAR", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4029, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLSHOOTINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4029, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4029, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4029, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4029, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_132CDLSHOOTINGSTAR(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_132CDLSHOOTINGSTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLSHOOTINGSTAR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4051
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4052
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__646, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4052, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4052, __pyx_L1_error)

    /* "talib/stream.pyx":4051
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4053
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4054
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__647, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4054, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4054, __pyx_L1_error)

    /* "talib/stream.pyx":4053
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4055
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4056
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4056, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4056, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4055
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4057
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4058
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4059
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__648, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4059, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4059, __pyx_L1_error)

    /* "talib/stream.pyx":4058
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4060
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4061
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__649, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4061, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4061, __pyx_L1_error)

    /* "talib/stream.pyx":4060
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4062
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4063
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4063, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4063, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4062
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4064
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4065
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4066
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__650, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4066, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4066, __pyx_L1_error)

    /* "talib/stream.pyx":4065
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4067
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4068
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__651, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4068, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4068, __pyx_L1_error)

    /* "talib/stream.pyx":4067
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4069
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4070
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4070, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4070, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4069
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4071
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4072
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4073
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__652, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4073, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4073, __pyx_L1_error)

    /* "talib/stream.pyx":4072
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4074
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4075
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__653, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4075, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4075, __pyx_L1_error)

    /* "talib/stream.pyx":4074
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4076
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4077
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4077, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4077, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4076
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4078
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4079
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4080
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4081
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__654, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4081, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4081, __pyx_L1_error)

    /* "talib/stream.pyx":4080
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4082
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4083
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__655, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4083, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4083, __pyx_L1_error)

    /* "talib/stream.pyx":4082
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4084
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4085
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSHOOTINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__656, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4085, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4085, __pyx_L1_error)

    /* "talib/stream.pyx":4084
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4086
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLSHOOTINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSHOOTINGSTAR", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4087
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLSHOOTINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLSHOOTINGSTAR", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLSHOOTINGSTAR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4088
 *     outinteger = 0
 *     retCode = lib.TA_CDLSHOOTINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSHOOTINGSTAR", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLSHOOTINGSTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4089
 *     retCode = lib.TA_CDLSHOOTINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSHOOTINGSTAR", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4089, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4029
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSHOOTINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSHOOTINGSTAR(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLSHOOTINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4093
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSHORTLINE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSHORTLINE(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_135CDLSHORTLINE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_134CDLSHORTLINE[] = " CDLSHORTLINE(open, high, low, close)\n\n    Short Line Candle (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_135CDLSHORTLINE = {"CDLSHORTLINE", (PyCFunction)__pyx_pw_5talib_6stream_135CDLSHORTLINE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_134CDLSHORTLINE};
static PyObject *__pyx_pw_5talib_6stream_135CDLSHORTLINE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLSHORTLINE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSHORTLINE", 1, 4, 4, 1); __PYX_ERR(0, 4093, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSHORTLINE", 1, 4, 4, 2); __PYX_ERR(0, 4093, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSHORTLINE", 1, 4, 4, 3); __PYX_ERR(0, 4093, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSHORTLINE") < 0)) __PYX_ERR(0, 4093, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLSHORTLINE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4093, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLSHORTLINE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4093, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4093, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4093, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4093, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_134CDLSHORTLINE(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_134CDLSHORTLINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLSHORTLINE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4115
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4116
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__657, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4116, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4116, __pyx_L1_error)

    /* "talib/stream.pyx":4115
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4117
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4118
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__658, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4118, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4118, __pyx_L1_error)

    /* "talib/stream.pyx":4117
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4119
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4120
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4120, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4120, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4119
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4121
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4122
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4123
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__659, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4123, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4123, __pyx_L1_error)

    /* "talib/stream.pyx":4122
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4124
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4125
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__660, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4125, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4125, __pyx_L1_error)

    /* "talib/stream.pyx":4124
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4126
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4127
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4127, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4127, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4126
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4128
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4129
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4130
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__661, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4130, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4130, __pyx_L1_error)

    /* "talib/stream.pyx":4129
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4131
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4132
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__662, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4132, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4132, __pyx_L1_error)

    /* "talib/stream.pyx":4131
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4133
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4134
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4134, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4134, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4133
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4135
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4136
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4137
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__663, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4137, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4137, __pyx_L1_error)

    /* "talib/stream.pyx":4136
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4138
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4139
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__664, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4139, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4139, __pyx_L1_error)

    /* "talib/stream.pyx":4138
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4140
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4141
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4141, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4141, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4140
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4142
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4143
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4144
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4145
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__665, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4145, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4145, __pyx_L1_error)

    /* "talib/stream.pyx":4144
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4146
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4147
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__666, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4147, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4147, __pyx_L1_error)

    /* "talib/stream.pyx":4146
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4148
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4149
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSHORTLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__667, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4149, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4149, __pyx_L1_error)

    /* "talib/stream.pyx":4148
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4150
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLSHORTLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSHORTLINE", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4151
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLSHORTLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLSHORTLINE", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLSHORTLINE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4152
 *     outinteger = 0
 *     retCode = lib.TA_CDLSHORTLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSHORTLINE", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLSHORTLINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4153
 *     retCode = lib.TA_CDLSHORTLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSHORTLINE", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4093
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSHORTLINE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSHORTLINE(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLSHORTLINE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4157
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSPINNINGTOP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSPINNINGTOP(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_137CDLSPINNINGTOP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_136CDLSPINNINGTOP[] = " CDLSPINNINGTOP(open, high, low, close)\n\n    Spinning Top (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_137CDLSPINNINGTOP = {"CDLSPINNINGTOP", (PyCFunction)__pyx_pw_5talib_6stream_137CDLSPINNINGTOP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_136CDLSPINNINGTOP};
static PyObject *__pyx_pw_5talib_6stream_137CDLSPINNINGTOP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLSPINNINGTOP (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSPINNINGTOP", 1, 4, 4, 1); __PYX_ERR(0, 4157, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSPINNINGTOP", 1, 4, 4, 2); __PYX_ERR(0, 4157, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSPINNINGTOP", 1, 4, 4, 3); __PYX_ERR(0, 4157, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSPINNINGTOP") < 0)) __PYX_ERR(0, 4157, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLSPINNINGTOP", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4157, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLSPINNINGTOP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4157, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4157, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4157, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4157, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_136CDLSPINNINGTOP(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_136CDLSPINNINGTOP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLSPINNINGTOP", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4179
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4180
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__668, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4180, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4180, __pyx_L1_error)

    /* "talib/stream.pyx":4179
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4181
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4182
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__669, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4182, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4182, __pyx_L1_error)

    /* "talib/stream.pyx":4181
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4183
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4184
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4184, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4184, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4183
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4185
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4186
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4187
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__670, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4187, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4187, __pyx_L1_error)

    /* "talib/stream.pyx":4186
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4188
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4189
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__671, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4189, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4189, __pyx_L1_error)

    /* "talib/stream.pyx":4188
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4190
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4191
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4191, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4191, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4190
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4192
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4193
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4194
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__672, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4194, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4194, __pyx_L1_error)

    /* "talib/stream.pyx":4193
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4195
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4196
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__673, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4196, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4196, __pyx_L1_error)

    /* "talib/stream.pyx":4195
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4197
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4198
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4198, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4198, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4197
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4199
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4200
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4201
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__674, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4201, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4201, __pyx_L1_error)

    /* "talib/stream.pyx":4200
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4202
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4203
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__675, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4203, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4203, __pyx_L1_error)

    /* "talib/stream.pyx":4202
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4204
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4205
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4205, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4205, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4204
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4206
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4207
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4208
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4209
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__676, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4209, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4209, __pyx_L1_error)

    /* "talib/stream.pyx":4208
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4210
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4211
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__677, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4211, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4211, __pyx_L1_error)

    /* "talib/stream.pyx":4210
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4212
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4213
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSPINNINGTOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__678, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4213, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4213, __pyx_L1_error)

    /* "talib/stream.pyx":4212
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4214
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLSPINNINGTOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSPINNINGTOP", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4215
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLSPINNINGTOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLSPINNINGTOP", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLSPINNINGTOP((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4216
 *     outinteger = 0
 *     retCode = lib.TA_CDLSPINNINGTOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSPINNINGTOP", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLSPINNINGTOP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4217
 *     retCode = lib.TA_CDLSPINNINGTOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSPINNINGTOP", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4217, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4157
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSPINNINGTOP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSPINNINGTOP(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLSPINNINGTOP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4221
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSTALLEDPATTERN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSTALLEDPATTERN(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_139CDLSTALLEDPATTERN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_138CDLSTALLEDPATTERN[] = " CDLSTALLEDPATTERN(open, high, low, close)\n\n    Stalled Pattern (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_139CDLSTALLEDPATTERN = {"CDLSTALLEDPATTERN", (PyCFunction)__pyx_pw_5talib_6stream_139CDLSTALLEDPATTERN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_138CDLSTALLEDPATTERN};
static PyObject *__pyx_pw_5talib_6stream_139CDLSTALLEDPATTERN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLSTALLEDPATTERN (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSTALLEDPATTERN", 1, 4, 4, 1); __PYX_ERR(0, 4221, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSTALLEDPATTERN", 1, 4, 4, 2); __PYX_ERR(0, 4221, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSTALLEDPATTERN", 1, 4, 4, 3); __PYX_ERR(0, 4221, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSTALLEDPATTERN") < 0)) __PYX_ERR(0, 4221, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLSTALLEDPATTERN", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4221, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLSTALLEDPATTERN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4221, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4221, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4221, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4221, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_138CDLSTALLEDPATTERN(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_138CDLSTALLEDPATTERN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLSTALLEDPATTERN", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4243
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4244
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__679, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4244, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4244, __pyx_L1_error)

    /* "talib/stream.pyx":4243
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4245
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4246
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__680, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4246, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4246, __pyx_L1_error)

    /* "talib/stream.pyx":4245
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4247
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4248
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4248, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4248, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4247
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4249
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4250
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4251
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__681, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4251, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4251, __pyx_L1_error)

    /* "talib/stream.pyx":4250
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4252
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4253
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__682, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4253, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4253, __pyx_L1_error)

    /* "talib/stream.pyx":4252
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4254
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4255
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4255, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4255, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4254
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4256
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4257
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4258
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__683, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4258, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4258, __pyx_L1_error)

    /* "talib/stream.pyx":4257
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4259
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4260
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__684, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4260, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4260, __pyx_L1_error)

    /* "talib/stream.pyx":4259
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4261
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4262
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4262, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4261
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4263
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4264
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4265
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__685, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4265, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4265, __pyx_L1_error)

    /* "talib/stream.pyx":4264
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4266
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4267
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__686, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4267, __pyx_L1_error)

    /* "talib/stream.pyx":4266
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4268
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4269
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4269, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4269, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4268
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4270
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4271
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4272
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4273
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__687, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4273, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4273, __pyx_L1_error)

    /* "talib/stream.pyx":4272
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4274
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4275
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__688, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4275, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4275, __pyx_L1_error)

    /* "talib/stream.pyx":4274
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4276
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4277
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSTALLEDPATTERN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__689, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4277, __pyx_L1_error)

    /* "talib/stream.pyx":4276
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4278
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLSTALLEDPATTERN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSTALLEDPATTERN", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4279
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLSTALLEDPATTERN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLSTALLEDPATTERN", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLSTALLEDPATTERN((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4280
 *     outinteger = 0
 *     retCode = lib.TA_CDLSTALLEDPATTERN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSTALLEDPATTERN", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLSTALLEDPATTERN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4280, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4281
 *     retCode = lib.TA_CDLSTALLEDPATTERN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSTALLEDPATTERN", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4281, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4221
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSTALLEDPATTERN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSTALLEDPATTERN(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLSTALLEDPATTERN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4285
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSTICKSANDWICH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSTICKSANDWICH(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_141CDLSTICKSANDWICH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_140CDLSTICKSANDWICH[] = " CDLSTICKSANDWICH(open, high, low, close)\n\n    Stick Sandwich (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_141CDLSTICKSANDWICH = {"CDLSTICKSANDWICH", (PyCFunction)__pyx_pw_5talib_6stream_141CDLSTICKSANDWICH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_140CDLSTICKSANDWICH};
static PyObject *__pyx_pw_5talib_6stream_141CDLSTICKSANDWICH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLSTICKSANDWICH (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSTICKSANDWICH", 1, 4, 4, 1); __PYX_ERR(0, 4285, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSTICKSANDWICH", 1, 4, 4, 2); __PYX_ERR(0, 4285, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLSTICKSANDWICH", 1, 4, 4, 3); __PYX_ERR(0, 4285, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSTICKSANDWICH") < 0)) __PYX_ERR(0, 4285, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLSTICKSANDWICH", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4285, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLSTICKSANDWICH", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4285, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4285, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4285, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4285, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_140CDLSTICKSANDWICH(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_140CDLSTICKSANDWICH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLSTICKSANDWICH", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4307
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4308
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__690, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4308, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4308, __pyx_L1_error)

    /* "talib/stream.pyx":4307
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4309
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4310
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__691, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4310, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4310, __pyx_L1_error)

    /* "talib/stream.pyx":4309
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4311
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4312
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4312, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4312, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4311
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4313
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4314
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4315
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__692, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4315, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4315, __pyx_L1_error)

    /* "talib/stream.pyx":4314
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4316
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4317
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__693, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4317, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4317, __pyx_L1_error)

    /* "talib/stream.pyx":4316
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4318
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4319
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4319, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4319, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4318
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4320
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4321
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4322
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__694, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4322, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4322, __pyx_L1_error)

    /* "talib/stream.pyx":4321
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4323
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4324
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__695, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4324, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4324, __pyx_L1_error)

    /* "talib/stream.pyx":4323
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4325
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4326
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4326, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4326, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4325
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4327
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4328
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4329
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__696, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4329, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4329, __pyx_L1_error)

    /* "talib/stream.pyx":4328
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4330
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4331
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__697, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4331, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4331, __pyx_L1_error)

    /* "talib/stream.pyx":4330
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4332
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4333
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4333, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4333, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4332
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4334
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4335
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4336
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4337
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__698, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4337, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4337, __pyx_L1_error)

    /* "talib/stream.pyx":4336
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4338
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4339
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__699, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4339, __pyx_L1_error)

    /* "talib/stream.pyx":4338
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4340
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4341
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSTICKSANDWICH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__700, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4341, __pyx_L1_error)

    /* "talib/stream.pyx":4340
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4342
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLSTICKSANDWICH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSTICKSANDWICH", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4343
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLSTICKSANDWICH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLSTICKSANDWICH", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLSTICKSANDWICH((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4344
 *     outinteger = 0
 *     retCode = lib.TA_CDLSTICKSANDWICH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSTICKSANDWICH", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLSTICKSANDWICH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4345
 *     retCode = lib.TA_CDLSTICKSANDWICH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLSTICKSANDWICH", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4345, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4285
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSTICKSANDWICH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSTICKSANDWICH(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLSTICKSANDWICH", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4349
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTAKURI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTAKURI(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_143CDLTAKURI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_142CDLTAKURI[] = " CDLTAKURI(open, high, low, close)\n\n    Takuri (Dragonfly Doji with very long lower shadow) (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_143CDLTAKURI = {"CDLTAKURI", (PyCFunction)__pyx_pw_5talib_6stream_143CDLTAKURI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_142CDLTAKURI};
static PyObject *__pyx_pw_5talib_6stream_143CDLTAKURI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLTAKURI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTAKURI", 1, 4, 4, 1); __PYX_ERR(0, 4349, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTAKURI", 1, 4, 4, 2); __PYX_ERR(0, 4349, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTAKURI", 1, 4, 4, 3); __PYX_ERR(0, 4349, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLTAKURI") < 0)) __PYX_ERR(0, 4349, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLTAKURI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4349, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLTAKURI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4349, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4349, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4349, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4349, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_142CDLTAKURI(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_142CDLTAKURI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLTAKURI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4371
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4372
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__701, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4372, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4372, __pyx_L1_error)

    /* "talib/stream.pyx":4371
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4373
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4374
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__702, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4374, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4374, __pyx_L1_error)

    /* "talib/stream.pyx":4373
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4375
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4376
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4376, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4376, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4375
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4377
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4378
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4379
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__703, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4379, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4379, __pyx_L1_error)

    /* "talib/stream.pyx":4378
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4380
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4381
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__704, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4381, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4381, __pyx_L1_error)

    /* "talib/stream.pyx":4380
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4382
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4383
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4383, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4383, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4382
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4384
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4385
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4386
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__705, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4386, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4386, __pyx_L1_error)

    /* "talib/stream.pyx":4385
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4387
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4388
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__706, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4388, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4388, __pyx_L1_error)

    /* "talib/stream.pyx":4387
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4389
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4390
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4390, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4390, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4389
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4391
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4392
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4393
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__707, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4393, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4393, __pyx_L1_error)

    /* "talib/stream.pyx":4392
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4394
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4395
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__708, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4395, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4395, __pyx_L1_error)

    /* "talib/stream.pyx":4394
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4396
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4397
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4397, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4397, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4396
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4398
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4399
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4400
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4401
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__709, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4401, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4401, __pyx_L1_error)

    /* "talib/stream.pyx":4400
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4402
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4403
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__710, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4403, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4403, __pyx_L1_error)

    /* "talib/stream.pyx":4402
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4404
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4405
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLTAKURI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__711, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4405, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4405, __pyx_L1_error)

    /* "talib/stream.pyx":4404
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4406
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLTAKURI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTAKURI", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4407
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLTAKURI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLTAKURI", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLTAKURI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4408
 *     outinteger = 0
 *     retCode = lib.TA_CDLTAKURI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTAKURI", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLTAKURI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4409
 *     retCode = lib.TA_CDLTAKURI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTAKURI", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4409, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4349
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTAKURI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTAKURI(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLTAKURI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4413
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTASUKIGAP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTASUKIGAP(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_145CDLTASUKIGAP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_144CDLTASUKIGAP[] = " CDLTASUKIGAP(open, high, low, close)\n\n    Tasuki Gap (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_145CDLTASUKIGAP = {"CDLTASUKIGAP", (PyCFunction)__pyx_pw_5talib_6stream_145CDLTASUKIGAP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_144CDLTASUKIGAP};
static PyObject *__pyx_pw_5talib_6stream_145CDLTASUKIGAP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLTASUKIGAP (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTASUKIGAP", 1, 4, 4, 1); __PYX_ERR(0, 4413, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTASUKIGAP", 1, 4, 4, 2); __PYX_ERR(0, 4413, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTASUKIGAP", 1, 4, 4, 3); __PYX_ERR(0, 4413, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLTASUKIGAP") < 0)) __PYX_ERR(0, 4413, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLTASUKIGAP", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4413, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLTASUKIGAP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4413, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4413, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4413, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4413, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_144CDLTASUKIGAP(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_144CDLTASUKIGAP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLTASUKIGAP", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4435
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4436
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__712, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4436, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4436, __pyx_L1_error)

    /* "talib/stream.pyx":4435
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4437
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4438
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__713, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4438, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4438, __pyx_L1_error)

    /* "talib/stream.pyx":4437
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4439
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4440
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4440, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4440, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4439
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4441
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4442
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4443
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__714, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4443, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4443, __pyx_L1_error)

    /* "talib/stream.pyx":4442
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4444
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4445
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__715, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4445, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4445, __pyx_L1_error)

    /* "talib/stream.pyx":4444
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4446
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4447
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4447, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4447, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4446
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4448
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4449
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4450
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__716, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4450, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4450, __pyx_L1_error)

    /* "talib/stream.pyx":4449
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4451
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4452
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__717, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4452, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4452, __pyx_L1_error)

    /* "talib/stream.pyx":4451
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4453
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4454
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4454, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4454, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4453
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4455
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4456
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4457
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__718, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4457, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4457, __pyx_L1_error)

    /* "talib/stream.pyx":4456
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4458
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4459
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__719, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4459, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4459, __pyx_L1_error)

    /* "talib/stream.pyx":4458
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4460
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4461
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4461, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4461, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4460
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4462
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4463
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4464
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4465
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__720, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4465, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4465, __pyx_L1_error)

    /* "talib/stream.pyx":4464
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4466
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4467
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__721, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4467, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4467, __pyx_L1_error)

    /* "talib/stream.pyx":4466
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4468
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4469
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLTASUKIGAP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__722, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4469, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4469, __pyx_L1_error)

    /* "talib/stream.pyx":4468
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4470
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLTASUKIGAP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTASUKIGAP", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4471
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLTASUKIGAP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLTASUKIGAP", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLTASUKIGAP((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4472
 *     outinteger = 0
 *     retCode = lib.TA_CDLTASUKIGAP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTASUKIGAP", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLTASUKIGAP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4473
 *     retCode = lib.TA_CDLTASUKIGAP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTASUKIGAP", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4473, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4413
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTASUKIGAP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTASUKIGAP(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLTASUKIGAP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4477
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTHRUSTING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTHRUSTING(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_147CDLTHRUSTING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_146CDLTHRUSTING[] = " CDLTHRUSTING(open, high, low, close)\n\n    Thrusting Pattern (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_147CDLTHRUSTING = {"CDLTHRUSTING", (PyCFunction)__pyx_pw_5talib_6stream_147CDLTHRUSTING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_146CDLTHRUSTING};
static PyObject *__pyx_pw_5talib_6stream_147CDLTHRUSTING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLTHRUSTING (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTHRUSTING", 1, 4, 4, 1); __PYX_ERR(0, 4477, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTHRUSTING", 1, 4, 4, 2); __PYX_ERR(0, 4477, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTHRUSTING", 1, 4, 4, 3); __PYX_ERR(0, 4477, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLTHRUSTING") < 0)) __PYX_ERR(0, 4477, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLTHRUSTING", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4477, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLTHRUSTING", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4477, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4477, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4477, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4477, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_146CDLTHRUSTING(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_146CDLTHRUSTING(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLTHRUSTING", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4499
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4500
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__723, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4500, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4500, __pyx_L1_error)

    /* "talib/stream.pyx":4499
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4501
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4502
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__724, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4502, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4502, __pyx_L1_error)

    /* "talib/stream.pyx":4501
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4503
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4504
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4504, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4504, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4503
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4505
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4506
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4507
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__725, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4507, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4507, __pyx_L1_error)

    /* "talib/stream.pyx":4506
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4508
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4509
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__726, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4509, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4509, __pyx_L1_error)

    /* "talib/stream.pyx":4508
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4510
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4511
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4511, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4511, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4510
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4512
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4513
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4514
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__727, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4514, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4514, __pyx_L1_error)

    /* "talib/stream.pyx":4513
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4515
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4516
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__728, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4516, __pyx_L1_error)

    /* "talib/stream.pyx":4515
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4517
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4518
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4518, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4517
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4519
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4520
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4521
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__729, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4521, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4521, __pyx_L1_error)

    /* "talib/stream.pyx":4520
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4522
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4523
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__730, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4523, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4523, __pyx_L1_error)

    /* "talib/stream.pyx":4522
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4524
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4525
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4525, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4525, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4524
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4526
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4527
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4528
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4529
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__731, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4529, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4529, __pyx_L1_error)

    /* "talib/stream.pyx":4528
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4530
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4531
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__732, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4531, __pyx_L1_error)

    /* "talib/stream.pyx":4530
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4532
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4533
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLTHRUSTING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__733, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4533, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4533, __pyx_L1_error)

    /* "talib/stream.pyx":4532
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4534
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLTHRUSTING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTHRUSTING", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4535
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLTHRUSTING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLTHRUSTING", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLTHRUSTING((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4536
 *     outinteger = 0
 *     retCode = lib.TA_CDLTHRUSTING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTHRUSTING", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLTHRUSTING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4537
 *     retCode = lib.TA_CDLTHRUSTING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTHRUSTING", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4477
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTHRUSTING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTHRUSTING(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLTHRUSTING", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4541
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTRISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTRISTAR(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_149CDLTRISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_148CDLTRISTAR[] = " CDLTRISTAR(open, high, low, close)\n\n    Tristar Pattern (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_149CDLTRISTAR = {"CDLTRISTAR", (PyCFunction)__pyx_pw_5talib_6stream_149CDLTRISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_148CDLTRISTAR};
static PyObject *__pyx_pw_5talib_6stream_149CDLTRISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLTRISTAR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTRISTAR", 1, 4, 4, 1); __PYX_ERR(0, 4541, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTRISTAR", 1, 4, 4, 2); __PYX_ERR(0, 4541, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLTRISTAR", 1, 4, 4, 3); __PYX_ERR(0, 4541, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLTRISTAR") < 0)) __PYX_ERR(0, 4541, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLTRISTAR", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4541, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLTRISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4541, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4541, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4541, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4541, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_148CDLTRISTAR(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_148CDLTRISTAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLTRISTAR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4563
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4564
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__734, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4564, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4564, __pyx_L1_error)

    /* "talib/stream.pyx":4563
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4565
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4566
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__735, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4566, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4566, __pyx_L1_error)

    /* "talib/stream.pyx":4565
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4567
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4568
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4568, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4567
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4569
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4570
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4571
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__736, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4571, __pyx_L1_error)

    /* "talib/stream.pyx":4570
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4572
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4573
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__737, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4573, __pyx_L1_error)

    /* "talib/stream.pyx":4572
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4574
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4575
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4575, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4574
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4576
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4577
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4578
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__738, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4578, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4578, __pyx_L1_error)

    /* "talib/stream.pyx":4577
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4579
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4580
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__739, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4580, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4580, __pyx_L1_error)

    /* "talib/stream.pyx":4579
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4581
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4582
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4582, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4582, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4581
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4583
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4584
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4585
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__740, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4585, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4585, __pyx_L1_error)

    /* "talib/stream.pyx":4584
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4586
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4587
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__741, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4587, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4587, __pyx_L1_error)

    /* "talib/stream.pyx":4586
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4588
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4589
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4589, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4589, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4588
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4590
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4591
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4592
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4593
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__742, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4593, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4593, __pyx_L1_error)

    /* "talib/stream.pyx":4592
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4594
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4595
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__743, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4595, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4595, __pyx_L1_error)

    /* "talib/stream.pyx":4594
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4596
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4597
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLTRISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__744, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4597, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4597, __pyx_L1_error)

    /* "talib/stream.pyx":4596
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4598
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLTRISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTRISTAR", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4599
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLTRISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLTRISTAR", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLTRISTAR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4600
 *     outinteger = 0
 *     retCode = lib.TA_CDLTRISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTRISTAR", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLTRISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4600, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4601
 *     retCode = lib.TA_CDLTRISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLTRISTAR", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4541
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTRISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTRISTAR(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLTRISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4605
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLUNIQUE3RIVER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLUNIQUE3RIVER(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_151CDLUNIQUE3RIVER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_150CDLUNIQUE3RIVER[] = " CDLUNIQUE3RIVER(open, high, low, close)\n\n    Unique 3 River (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_151CDLUNIQUE3RIVER = {"CDLUNIQUE3RIVER", (PyCFunction)__pyx_pw_5talib_6stream_151CDLUNIQUE3RIVER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_150CDLUNIQUE3RIVER};
static PyObject *__pyx_pw_5talib_6stream_151CDLUNIQUE3RIVER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLUNIQUE3RIVER (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLUNIQUE3RIVER", 1, 4, 4, 1); __PYX_ERR(0, 4605, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLUNIQUE3RIVER", 1, 4, 4, 2); __PYX_ERR(0, 4605, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLUNIQUE3RIVER", 1, 4, 4, 3); __PYX_ERR(0, 4605, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLUNIQUE3RIVER") < 0)) __PYX_ERR(0, 4605, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLUNIQUE3RIVER", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4605, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLUNIQUE3RIVER", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4605, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4605, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4605, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4605, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_150CDLUNIQUE3RIVER(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_150CDLUNIQUE3RIVER(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLUNIQUE3RIVER", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4627
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4628
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__745, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4628, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4628, __pyx_L1_error)

    /* "talib/stream.pyx":4627
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4629
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4630
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__746, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4630, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4630, __pyx_L1_error)

    /* "talib/stream.pyx":4629
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4631
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4632
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4632, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4632, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4631
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4633
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4634
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4635
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__747, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4635, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4635, __pyx_L1_error)

    /* "talib/stream.pyx":4634
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4636
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4637
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__748, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4637, __pyx_L1_error)

    /* "talib/stream.pyx":4636
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4638
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4639
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4639, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4639, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4638
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4640
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4641
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4642
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__749, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4642, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4642, __pyx_L1_error)

    /* "talib/stream.pyx":4641
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4643
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4644
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__750, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4644, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4644, __pyx_L1_error)

    /* "talib/stream.pyx":4643
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4645
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4646
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4646, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4646, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4645
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4647
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4648
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4649
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__751, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4649, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4649, __pyx_L1_error)

    /* "talib/stream.pyx":4648
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4650
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4651
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__752, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4651, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4651, __pyx_L1_error)

    /* "talib/stream.pyx":4650
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4652
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4653
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4653, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4653, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4652
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4654
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4655
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4656
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4657
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__753, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4657, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4657, __pyx_L1_error)

    /* "talib/stream.pyx":4656
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4658
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4659
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__754, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4659, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4659, __pyx_L1_error)

    /* "talib/stream.pyx":4658
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4660
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4661
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLUNIQUE3RIVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__755, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4661, __pyx_L1_error)

    /* "talib/stream.pyx":4660
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4662
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLUNIQUE3RIVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLUNIQUE3RIVER", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4663
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLUNIQUE3RIVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLUNIQUE3RIVER", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLUNIQUE3RIVER((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4664
 *     outinteger = 0
 *     retCode = lib.TA_CDLUNIQUE3RIVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLUNIQUE3RIVER", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLUNIQUE3RIVER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4665
 *     retCode = lib.TA_CDLUNIQUE3RIVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLUNIQUE3RIVER", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4605
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLUNIQUE3RIVER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLUNIQUE3RIVER(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLUNIQUE3RIVER", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4669
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLUPSIDEGAP2CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLUPSIDEGAP2CROWS(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_153CDLUPSIDEGAP2CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_152CDLUPSIDEGAP2CROWS[] = " CDLUPSIDEGAP2CROWS(open, high, low, close)\n\n    Upside Gap Two Crows (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_153CDLUPSIDEGAP2CROWS = {"CDLUPSIDEGAP2CROWS", (PyCFunction)__pyx_pw_5talib_6stream_153CDLUPSIDEGAP2CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_152CDLUPSIDEGAP2CROWS};
static PyObject *__pyx_pw_5talib_6stream_153CDLUPSIDEGAP2CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLUPSIDEGAP2CROWS (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLUPSIDEGAP2CROWS", 1, 4, 4, 1); __PYX_ERR(0, 4669, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLUPSIDEGAP2CROWS", 1, 4, 4, 2); __PYX_ERR(0, 4669, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLUPSIDEGAP2CROWS", 1, 4, 4, 3); __PYX_ERR(0, 4669, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLUPSIDEGAP2CROWS") < 0)) __PYX_ERR(0, 4669, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLUPSIDEGAP2CROWS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4669, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLUPSIDEGAP2CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4669, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4669, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4669, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4669, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_152CDLUPSIDEGAP2CROWS(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_152CDLUPSIDEGAP2CROWS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLUPSIDEGAP2CROWS", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4691
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4692
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__756, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4692, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4692, __pyx_L1_error)

    /* "talib/stream.pyx":4691
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4693
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4694
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__757, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4694, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4694, __pyx_L1_error)

    /* "talib/stream.pyx":4693
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4695
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4696
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4696, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4696, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4695
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4697
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4698
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4699
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__758, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4699, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4699, __pyx_L1_error)

    /* "talib/stream.pyx":4698
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4700
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4701
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__759, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4701, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4701, __pyx_L1_error)

    /* "talib/stream.pyx":4700
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4702
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4703
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4703, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4703, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4702
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4704
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4705
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4706
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__760, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4706, __pyx_L1_error)

    /* "talib/stream.pyx":4705
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4707
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4708
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__761, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4708, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4708, __pyx_L1_error)

    /* "talib/stream.pyx":4707
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4709
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4710
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4710, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4710, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4709
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4711
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4712
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4713
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__762, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4713, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4713, __pyx_L1_error)

    /* "talib/stream.pyx":4712
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4714
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4715
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__763, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4715, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4715, __pyx_L1_error)

    /* "talib/stream.pyx":4714
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4716
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4717
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4717, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4716
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4718
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4719
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4720
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4721
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__764, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4721, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4721, __pyx_L1_error)

    /* "talib/stream.pyx":4720
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4722
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4723
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__765, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4723, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4723, __pyx_L1_error)

    /* "talib/stream.pyx":4722
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4724
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4725
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLUPSIDEGAP2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__766, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4725, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4725, __pyx_L1_error)

    /* "talib/stream.pyx":4724
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4726
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLUPSIDEGAP2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLUPSIDEGAP2CROWS", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4727
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLUPSIDEGAP2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLUPSIDEGAP2CROWS", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLUPSIDEGAP2CROWS((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4728
 *     outinteger = 0
 *     retCode = lib.TA_CDLUPSIDEGAP2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLUPSIDEGAP2CROWS", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLUPSIDEGAP2CROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4728, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4729
 *     retCode = lib.TA_CDLUPSIDEGAP2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLUPSIDEGAP2CROWS", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4729, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4669
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLUPSIDEGAP2CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLUPSIDEGAP2CROWS(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLUPSIDEGAP2CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4733
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLXSIDEGAP3METHODS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLXSIDEGAP3METHODS(open, high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_155CDLXSIDEGAP3METHODS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_154CDLXSIDEGAP3METHODS[] = " CDLXSIDEGAP3METHODS(open, high, low, close)\n\n    Upside/Downside Gap Three Methods (Pattern Recognition)\n\n    Inputs:\n        prices: ['open', 'high', 'low', 'close']\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_155CDLXSIDEGAP3METHODS = {"CDLXSIDEGAP3METHODS", (PyCFunction)__pyx_pw_5talib_6stream_155CDLXSIDEGAP3METHODS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_154CDLXSIDEGAP3METHODS};
static PyObject *__pyx_pw_5talib_6stream_155CDLXSIDEGAP3METHODS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_open = 0;
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CDLXSIDEGAP3METHODS (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_open,&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_open)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLXSIDEGAP3METHODS", 1, 4, 4, 1); __PYX_ERR(0, 4733, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLXSIDEGAP3METHODS", 1, 4, 4, 2); __PYX_ERR(0, 4733, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CDLXSIDEGAP3METHODS", 1, 4, 4, 3); __PYX_ERR(0, 4733, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLXSIDEGAP3METHODS") < 0)) __PYX_ERR(0, 4733, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 4) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
      values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
    }
    __pyx_v_open = ((PyArrayObject *)values[0]);
    __pyx_v_high = ((PyArrayObject *)values[1]);
    __pyx_v_low = ((PyArrayObject *)values[2]);
    __pyx_v_close = ((PyArrayObject *)values[3]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CDLXSIDEGAP3METHODS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4733, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CDLXSIDEGAP3METHODS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_open), __pyx_ptype_5numpy_ndarray, 0, "open", 0))) __PYX_ERR(0, 4733, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4733, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4733, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4733, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_154CDLXSIDEGAP3METHODS(__pyx_self, __pyx_v_open, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_154CDLXSIDEGAP3METHODS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_open, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_open_data;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CDLXSIDEGAP3METHODS", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_open);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":4755
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_open) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4756
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__767, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4756, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4756, __pyx_L1_error)

    /* "talib/stream.pyx":4755
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4757
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_open->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4758
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__768, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4758, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4758, __pyx_L1_error)

    /* "talib/stream.pyx":4757
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")
 *     if open.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4759
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4760
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)             # <<<<<<<<<<<<<<
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4760, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4760, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4759
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 */
  }

  /* "talib/stream.pyx":4761
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 */
  __pyx_v_open_data = ((double *)__pyx_v_open->data);

  /* "talib/stream.pyx":4762
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4763
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__769, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4763, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4763, __pyx_L1_error)

    /* "talib/stream.pyx":4762
 *         open = PyArray_GETCONTIGUOUS(open)
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4764
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4765
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__770, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4765, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4765, __pyx_L1_error)

    /* "talib/stream.pyx":4764
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4766
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4767
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4767, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4767, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4766
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":4768
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":4769
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4770
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__771, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4770, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4770, __pyx_L1_error)

    /* "talib/stream.pyx":4769
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4771
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4772
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__772, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4772, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4772, __pyx_L1_error)

    /* "talib/stream.pyx":4771
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4773
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4774
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4774, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4774, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4773
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":4775
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":4776
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4777
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__773, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4777, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4777, __pyx_L1_error)

    /* "talib/stream.pyx":4776
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4778
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4779
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__774, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4779, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4779, __pyx_L1_error)

    /* "talib/stream.pyx":4778
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4780
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4781
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4781, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4781, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4780
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":4782
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":4783
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = open.shape[0]             # <<<<<<<<<<<<<<
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_open->dimensions[0]);

  /* "talib/stream.pyx":4784
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_high->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4785
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__775, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4785, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4785, __pyx_L1_error)

    /* "talib/stream.pyx":4784
 *     close_data = <double*>close.data
 *     length = open.shape[0]
 *     if length != high.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 */
  }

  /* "talib/stream.pyx":4786
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4787
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__776, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4787, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4787, __pyx_L1_error)

    /* "talib/stream.pyx":4786
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":4788
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4789
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLXSIDEGAP3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__777, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4789, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4789, __pyx_L1_error)

    /* "talib/stream.pyx":4788
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 */
  }

  /* "talib/stream.pyx":4790
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CDLXSIDEGAP3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLXSIDEGAP3METHODS", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":4791
 *         raise Exception("input lengths are different")
 *     outinteger = 0
 *     retCode = lib.TA_CDLXSIDEGAP3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CDLXSIDEGAP3METHODS", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_CDLXSIDEGAP3METHODS((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_open_data, __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":4792
 *     outinteger = 0
 *     retCode = lib.TA_CDLXSIDEGAP3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLXSIDEGAP3METHODS", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CDLXSIDEGAP3METHODS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4792, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4793
 *     retCode = lib.TA_CDLXSIDEGAP3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_CDLXSIDEGAP3METHODS", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4733
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLXSIDEGAP3METHODS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLXSIDEGAP3METHODS(open, high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CDLXSIDEGAP3METHODS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_open);
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4797
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CEIL( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ CEIL(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_157CEIL(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_156CEIL[] = " CEIL(real)\n\n    Vector Ceil (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_157CEIL = {"CEIL", (PyCFunction)__pyx_pw_5talib_6stream_157CEIL, METH_O, __pyx_doc_5talib_6stream_156CEIL};
static PyObject *__pyx_pw_5talib_6stream_157CEIL(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CEIL (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 4797, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_156CEIL(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_156CEIL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CEIL", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":4816
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4817
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__778, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4817, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4817, __pyx_L1_error)

    /* "talib/stream.pyx":4816
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4818
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4819
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__779, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4819, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4819, __pyx_L1_error)

    /* "talib/stream.pyx":4818
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4820
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4821
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4821, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4821, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4820
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":4822
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":4823
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_CEIL( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":4824
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CEIL( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CEIL", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":4825
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_CEIL( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CEIL", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_CEIL((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":4826
 *     outreal = NaN
 *     retCode = lib.TA_CEIL( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CEIL", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CEIL, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4826, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4827
 *     retCode = lib.TA_CEIL( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CEIL", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4797
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CEIL( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ CEIL(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CEIL", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4831
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CMO( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CMO(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_159CMO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_158CMO[] = " CMO(real[, timeperiod=?])\n\n    Chande Momentum Oscillator (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_159CMO = {"CMO", (PyCFunction)__pyx_pw_5talib_6stream_159CMO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_158CMO};
static PyObject *__pyx_pw_5talib_6stream_159CMO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CMO (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CMO") < 0)) __PYX_ERR(0, 4831, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4831, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CMO", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4831, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CMO", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 4831, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_158CMO(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_158CMO(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CMO", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":4852
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4853
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__780, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4853, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4853, __pyx_L1_error)

    /* "talib/stream.pyx":4852
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4854
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4855
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__781, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4855, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4855, __pyx_L1_error)

    /* "talib/stream.pyx":4854
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4856
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4857
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4857, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4857, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4856
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":4858
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":4859
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_CMO( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":4860
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CMO( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CMO", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":4861
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_CMO( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CMO", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_CMO((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":4862
 *     outreal = NaN
 *     retCode = lib.TA_CMO( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CMO", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CMO, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4863
 *     retCode = lib.TA_CMO( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CMO", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4831
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CMO( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CMO(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CMO", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4867
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CORREL( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CORREL(real0, real1[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_161CORREL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_160CORREL[] = " CORREL(real0, real1[, timeperiod=?])\n\n    Pearson's Correlation Coefficient (r) (Statistic Functions)\n\n    Inputs:\n        real0: (any ndarray)\n        real1: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_161CORREL = {"CORREL", (PyCFunction)__pyx_pw_5talib_6stream_161CORREL, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_160CORREL};
static PyObject *__pyx_pw_5talib_6stream_161CORREL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real0 = 0;
  PyArrayObject *__pyx_v_real1 = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("CORREL (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real0,&__pyx_n_s_real1,&__pyx_n_s_timeperiod,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("CORREL", 0, 2, 3, 1); __PYX_ERR(0, 4867, __pyx_L3_error)
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CORREL") < 0)) __PYX_ERR(0, 4867, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real0 = ((PyArrayObject *)values[0]);
    __pyx_v_real1 = ((PyArrayObject *)values[1]);
    if (values[2]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4867, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("CORREL", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4867, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.CORREL", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real0), __pyx_ptype_5numpy_ndarray, 0, "real0", 0))) __PYX_ERR(0, 4867, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 4867, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_160CORREL(__pyx_self, __pyx_v_real0, __pyx_v_real1, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_160CORREL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real0_data;
  double *__pyx_v_real1_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("CORREL", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real0);
  __Pyx_INCREF((PyObject *)__pyx_v_real1);

  /* "talib/stream.pyx":4890
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real0) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4891
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__782, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4891, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4891, __pyx_L1_error)

    /* "talib/stream.pyx":4890
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4892
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real0->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4893
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__783, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4893, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4893, __pyx_L1_error)

    /* "talib/stream.pyx":4892
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4894
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4895
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)             # <<<<<<<<<<<<<<
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4895, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4895, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4894
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  }

  /* "talib/stream.pyx":4896
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 */
  __pyx_v_real0_data = ((double *)__pyx_v_real0->data);

  /* "talib/stream.pyx":4897
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real1) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4898
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__784, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4898, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4898, __pyx_L1_error)

    /* "talib/stream.pyx":4897
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4899
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real1->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4900
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__785, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4900, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4900, __pyx_L1_error)

    /* "talib/stream.pyx":4899
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4901
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4902
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)             # <<<<<<<<<<<<<<
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4902, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4902, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4901
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  }

  /* "talib/stream.pyx":4903
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data             # <<<<<<<<<<<<<<
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 */
  __pyx_v_real1_data = ((double *)__pyx_v_real1->data);

  /* "talib/stream.pyx":4904
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]             # <<<<<<<<<<<<<<
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_real0->dimensions[0]);

  /* "talib/stream.pyx":4905
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4906
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_CORREL( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__786, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4906, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4906, __pyx_L1_error)

    /* "talib/stream.pyx":4905
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":4907
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_CORREL( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CORREL", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":4908
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_CORREL( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_CORREL", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_CORREL((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real0_data, __pyx_v_real1_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":4909
 *     outreal = NaN
 *     retCode = lib.TA_CORREL( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CORREL", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_CORREL, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4910
 *     retCode = lib.TA_CORREL( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_CORREL", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4867
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CORREL( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CORREL(real0, real1[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.CORREL", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real0);
  __Pyx_XDECREF((PyObject *)__pyx_v_real1);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4914
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def COS( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ COS(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_163COS(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_162COS[] = " COS(real)\n\n    Vector Trigonometric Cos (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_163COS = {"COS", (PyCFunction)__pyx_pw_5talib_6stream_163COS, METH_O, __pyx_doc_5talib_6stream_162COS};
static PyObject *__pyx_pw_5talib_6stream_163COS(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("COS (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 4914, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_162COS(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_162COS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("COS", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":4933
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4934
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__787, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4934, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4934, __pyx_L1_error)

    /* "talib/stream.pyx":4933
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4935
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4936
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__788, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4936, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4936, __pyx_L1_error)

    /* "talib/stream.pyx":4935
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4937
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4938
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4938, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4938, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4937
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":4939
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":4940
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_COS( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":4941
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_COS( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_COS", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":4942
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_COS( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_COS", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_COS((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":4943
 *     outreal = NaN
 *     retCode = lib.TA_COS( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_COS", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_COS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4944
 *     retCode = lib.TA_COS( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_COS", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4914
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def COS( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ COS(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.COS", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4948
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def COSH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ COSH(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_165COSH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_164COSH[] = " COSH(real)\n\n    Vector Trigonometric Cosh (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_165COSH = {"COSH", (PyCFunction)__pyx_pw_5talib_6stream_165COSH, METH_O, __pyx_doc_5talib_6stream_164COSH};
static PyObject *__pyx_pw_5talib_6stream_165COSH(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("COSH (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 4948, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_164COSH(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_164COSH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("COSH", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":4967
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4968
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__789, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4968, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4968, __pyx_L1_error)

    /* "talib/stream.pyx":4967
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":4969
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4970
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__790, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4970, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 4970, __pyx_L1_error)

    /* "talib/stream.pyx":4969
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":4971
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":4972
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4972, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4972, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":4971
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":4973
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":4974
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_COSH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":4975
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_COSH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_COSH", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":4976
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_COSH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_COSH", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_COSH((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":4977
 *     outreal = NaN
 *     retCode = lib.TA_COSH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_COSH", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_COSH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4977, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":4978
 *     retCode = lib.TA_COSH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_COSH", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4948
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def COSH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ COSH(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.COSH", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":4982
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DEMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ DEMA(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_167DEMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_166DEMA[] = " DEMA(real[, timeperiod=?])\n\n    Double Exponential Moving Average (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_167DEMA = {"DEMA", (PyCFunction)__pyx_pw_5talib_6stream_167DEMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_166DEMA};
static PyObject *__pyx_pw_5talib_6stream_167DEMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("DEMA (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "DEMA") < 0)) __PYX_ERR(0, 4982, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 4982, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("DEMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 4982, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.DEMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 4982, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_166DEMA(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_166DEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("DEMA", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5003
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5004
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__791, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5004, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5004, __pyx_L1_error)

    /* "talib/stream.pyx":5003
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5005
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5006
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__792, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5006, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5006, __pyx_L1_error)

    /* "talib/stream.pyx":5005
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5007
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5008
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5008, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5008, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5007
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5009
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5010
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_DEMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5011
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_DEMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_DEMA", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5012
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_DEMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_DEMA", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_DEMA((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5013
 *     outreal = NaN
 *     retCode = lib.TA_DEMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_DEMA", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_DEMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5013, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5014
 *     retCode = lib.TA_DEMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_DEMA", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5014, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":4982
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DEMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ DEMA(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.DEMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5018
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DIV( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ DIV(real0, real1)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_169DIV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_168DIV[] = " DIV(real0, real1)\n\n    Vector Arithmetic Div (Math Operators)\n\n    Inputs:\n        real0: (any ndarray)\n        real1: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_169DIV = {"DIV", (PyCFunction)__pyx_pw_5talib_6stream_169DIV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_168DIV};
static PyObject *__pyx_pw_5talib_6stream_169DIV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real0 = 0;
  PyArrayObject *__pyx_v_real1 = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("DIV (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real0,&__pyx_n_s_real1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("DIV", 1, 2, 2, 1); __PYX_ERR(0, 5018, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "DIV") < 0)) __PYX_ERR(0, 5018, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_real0 = ((PyArrayObject *)values[0]);
    __pyx_v_real1 = ((PyArrayObject *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("DIV", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5018, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.DIV", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real0), __pyx_ptype_5numpy_ndarray, 0, "real0", 0))) __PYX_ERR(0, 5018, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 5018, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_168DIV(__pyx_self, __pyx_v_real0, __pyx_v_real1);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_168DIV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real0_data;
  double *__pyx_v_real1_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("DIV", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real0);
  __Pyx_INCREF((PyObject *)__pyx_v_real1);

  /* "talib/stream.pyx":5039
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real0) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5040
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__793, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5040, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5040, __pyx_L1_error)

    /* "talib/stream.pyx":5039
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5041
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real0->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5042
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__794, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5042, __pyx_L1_error)

    /* "talib/stream.pyx":5041
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5043
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5044
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)             # <<<<<<<<<<<<<<
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5044, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5043
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  }

  /* "talib/stream.pyx":5045
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 */
  __pyx_v_real0_data = ((double *)__pyx_v_real0->data);

  /* "talib/stream.pyx":5046
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real1) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5047
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__795, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5047, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5047, __pyx_L1_error)

    /* "talib/stream.pyx":5046
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5048
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real1->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5049
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__796, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5049, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5049, __pyx_L1_error)

    /* "talib/stream.pyx":5048
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5050
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5051
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)             # <<<<<<<<<<<<<<
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5051, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5051, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5050
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  }

  /* "talib/stream.pyx":5052
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data             # <<<<<<<<<<<<<<
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 */
  __pyx_v_real1_data = ((double *)__pyx_v_real1->data);

  /* "talib/stream.pyx":5053
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]             # <<<<<<<<<<<<<<
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_real0->dimensions[0]);

  /* "talib/stream.pyx":5054
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5055
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_DIV( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__797, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5055, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5055, __pyx_L1_error)

    /* "talib/stream.pyx":5054
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":5056
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_DIV( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_DIV", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5057
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_DIV( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_DIV", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_DIV((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real0_data, __pyx_v_real1_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5058
 *     outreal = NaN
 *     retCode = lib.TA_DIV( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_DIV", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_DIV, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5058, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5059
 *     retCode = lib.TA_DIV( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_DIV", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5018
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DIV( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ DIV(real0, real1)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.DIV", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real0);
  __Pyx_XDECREF((PyObject *)__pyx_v_real1);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5063
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DX( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ DX(high, low, close[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_171DX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_170DX[] = " DX(high, low, close[, timeperiod=?])\n\n    Directional Movement Index (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_171DX = {"DX", (PyCFunction)__pyx_pw_5talib_6stream_171DX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_170DX};
static PyObject *__pyx_pw_5talib_6stream_171DX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("DX (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_timeperiod,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("DX", 0, 3, 4, 1); __PYX_ERR(0, 5063, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("DX", 0, 3, 4, 2); __PYX_ERR(0, 5063, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "DX") < 0)) __PYX_ERR(0, 5063, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5063, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("DX", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5063, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.DX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5063, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5063, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5063, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_170DX(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_170DX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("DX", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":5086
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5087
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__798, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5087, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5087, __pyx_L1_error)

    /* "talib/stream.pyx":5086
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5088
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5089
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__799, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5089, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5089, __pyx_L1_error)

    /* "talib/stream.pyx":5088
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5090
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5091
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5091, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5091, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5090
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":5092
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":5093
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5094
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__800, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5094, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5094, __pyx_L1_error)

    /* "talib/stream.pyx":5093
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5095
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5096
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__801, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5096, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5096, __pyx_L1_error)

    /* "talib/stream.pyx":5095
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5097
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5098
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5098, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5098, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5097
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":5099
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":5100
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5101
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__802, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5101, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5101, __pyx_L1_error)

    /* "talib/stream.pyx":5100
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5102
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5103
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__803, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5103, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5103, __pyx_L1_error)

    /* "talib/stream.pyx":5102
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5104
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5105
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5105, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5105, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5104
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":5106
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":5107
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":5108
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5109
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__804, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5109, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5109, __pyx_L1_error)

    /* "talib/stream.pyx":5108
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":5110
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5111
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_DX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__805, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5111, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5111, __pyx_L1_error)

    /* "talib/stream.pyx":5110
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":5112
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_DX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_DX", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5113
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_DX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_DX", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_DX((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5114
 *     outreal = NaN
 *     retCode = lib.TA_DX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_DX", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_DX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5115
 *     retCode = lib.TA_DX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_DX", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5063
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DX( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ DX(high, low, close[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.DX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5119
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def EMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ EMA(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_173EMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_172EMA[] = " EMA(real[, timeperiod=?])\n\n    Exponential Moving Average (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_173EMA = {"EMA", (PyCFunction)__pyx_pw_5talib_6stream_173EMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_172EMA};
static PyObject *__pyx_pw_5talib_6stream_173EMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("EMA (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "EMA") < 0)) __PYX_ERR(0, 5119, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5119, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("EMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5119, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.EMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5119, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_172EMA(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_172EMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("EMA", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5140
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5141
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__806, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5141, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5141, __pyx_L1_error)

    /* "talib/stream.pyx":5140
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5142
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5143
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__807, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5143, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5143, __pyx_L1_error)

    /* "talib/stream.pyx":5142
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5144
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5145
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5145, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5145, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5144
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5146
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5147
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_EMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5148
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_EMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_EMA", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5149
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_EMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_EMA", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_EMA((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5150
 *     outreal = NaN
 *     retCode = lib.TA_EMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_EMA", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_EMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5151
 *     retCode = lib.TA_EMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_EMA", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5119
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def EMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ EMA(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.EMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5155
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def EXP( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ EXP(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_175EXP(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_174EXP[] = " EXP(real)\n\n    Vector Arithmetic Exp (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_175EXP = {"EXP", (PyCFunction)__pyx_pw_5talib_6stream_175EXP, METH_O, __pyx_doc_5talib_6stream_174EXP};
static PyObject *__pyx_pw_5talib_6stream_175EXP(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("EXP (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5155, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_174EXP(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_174EXP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("EXP", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5174
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5175
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__808, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5175, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5175, __pyx_L1_error)

    /* "talib/stream.pyx":5174
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5176
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5177
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__809, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5177, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5177, __pyx_L1_error)

    /* "talib/stream.pyx":5176
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5178
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5179
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5179, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5179, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5178
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5180
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5181
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_EXP( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5182
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_EXP( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_EXP", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5183
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_EXP( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_EXP", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_EXP((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5184
 *     outreal = NaN
 *     retCode = lib.TA_EXP( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_EXP", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_EXP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5185
 *     retCode = lib.TA_EXP( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_EXP", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5185, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5155
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def EXP( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ EXP(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.EXP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5189
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def FLOOR( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ FLOOR(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_177FLOOR(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_176FLOOR[] = " FLOOR(real)\n\n    Vector Floor (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_177FLOOR = {"FLOOR", (PyCFunction)__pyx_pw_5talib_6stream_177FLOOR, METH_O, __pyx_doc_5talib_6stream_176FLOOR};
static PyObject *__pyx_pw_5talib_6stream_177FLOOR(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("FLOOR (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5189, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_176FLOOR(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_176FLOOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("FLOOR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5208
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5209
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__810, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5209, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5209, __pyx_L1_error)

    /* "talib/stream.pyx":5208
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5210
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5211
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__811, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5211, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5211, __pyx_L1_error)

    /* "talib/stream.pyx":5210
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5212
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5213
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5213, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5213, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5212
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5214
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5215
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_FLOOR( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5216
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_FLOOR( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_FLOOR", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5217
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_FLOOR( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_FLOOR", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_FLOOR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5218
 *     outreal = NaN
 *     retCode = lib.TA_FLOOR( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_FLOOR", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_FLOOR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5219
 *     retCode = lib.TA_FLOOR( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_FLOOR", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5189
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def FLOOR( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ FLOOR(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.FLOOR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5223
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_DCPERIOD( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_DCPERIOD(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_179HT_DCPERIOD(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_178HT_DCPERIOD[] = " HT_DCPERIOD(real)\n\n    Hilbert Transform - Dominant Cycle Period (Cycle Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_179HT_DCPERIOD = {"HT_DCPERIOD", (PyCFunction)__pyx_pw_5talib_6stream_179HT_DCPERIOD, METH_O, __pyx_doc_5talib_6stream_178HT_DCPERIOD};
static PyObject *__pyx_pw_5talib_6stream_179HT_DCPERIOD(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("HT_DCPERIOD (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5223, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_178HT_DCPERIOD(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_178HT_DCPERIOD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("HT_DCPERIOD", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5242
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5243
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__812, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5243, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5243, __pyx_L1_error)

    /* "talib/stream.pyx":5242
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5244
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5245
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__813, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5245, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5245, __pyx_L1_error)

    /* "talib/stream.pyx":5244
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5246
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5247
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5247, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5247, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5246
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5248
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5249
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_HT_DCPERIOD( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5250
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_HT_DCPERIOD( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_HT_DCPERIOD", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5251
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_HT_DCPERIOD( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_HT_DCPERIOD", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_HT_DCPERIOD((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5252
 *     outreal = NaN
 *     retCode = lib.TA_HT_DCPERIOD( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_HT_DCPERIOD", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_HT_DCPERIOD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5252, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5253
 *     retCode = lib.TA_HT_DCPERIOD( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_HT_DCPERIOD", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5223
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_DCPERIOD( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_DCPERIOD(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.HT_DCPERIOD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5257
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_DCPHASE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_DCPHASE(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_181HT_DCPHASE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_180HT_DCPHASE[] = " HT_DCPHASE(real)\n\n    Hilbert Transform - Dominant Cycle Phase (Cycle Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_181HT_DCPHASE = {"HT_DCPHASE", (PyCFunction)__pyx_pw_5talib_6stream_181HT_DCPHASE, METH_O, __pyx_doc_5talib_6stream_180HT_DCPHASE};
static PyObject *__pyx_pw_5talib_6stream_181HT_DCPHASE(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("HT_DCPHASE (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5257, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_180HT_DCPHASE(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_180HT_DCPHASE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("HT_DCPHASE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5276
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5277
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__814, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5277, __pyx_L1_error)

    /* "talib/stream.pyx":5276
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5278
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5279
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__815, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5279, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5279, __pyx_L1_error)

    /* "talib/stream.pyx":5278
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5280
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5281
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5281, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5280
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5282
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5283
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_HT_DCPHASE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5284
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_HT_DCPHASE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_HT_DCPHASE", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5285
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_HT_DCPHASE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_HT_DCPHASE", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_HT_DCPHASE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5286
 *     outreal = NaN
 *     retCode = lib.TA_HT_DCPHASE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_HT_DCPHASE", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_HT_DCPHASE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5287
 *     retCode = lib.TA_HT_DCPHASE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_HT_DCPHASE", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5257
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_DCPHASE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_DCPHASE(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.HT_DCPHASE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5291
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_PHASOR( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_PHASOR(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_183HT_PHASOR(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_182HT_PHASOR[] = " HT_PHASOR(real)\n\n    Hilbert Transform - Phasor Components (Cycle Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        inphase\n        quadrature\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_183HT_PHASOR = {"HT_PHASOR", (PyCFunction)__pyx_pw_5talib_6stream_183HT_PHASOR, METH_O, __pyx_doc_5talib_6stream_182HT_PHASOR};
static PyObject *__pyx_pw_5talib_6stream_183HT_PHASOR(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("HT_PHASOR (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5291, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_182HT_PHASOR(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_182HT_PHASOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outinphase;
  double __pyx_v_outquadrature;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("HT_PHASOR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5312
 *         double outinphase
 *         double outquadrature
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5313
 *         double outquadrature
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__816, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5313, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5313, __pyx_L1_error)

    /* "talib/stream.pyx":5312
 *         double outinphase
 *         double outquadrature
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5314
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5315
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__817, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5315, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5315, __pyx_L1_error)

    /* "talib/stream.pyx":5314
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5316
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5317
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5317, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5317, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5316
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5318
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outinphase = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5319
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outinphase = NaN
 *     outquadrature = NaN
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5320
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outinphase = NaN             # <<<<<<<<<<<<<<
 *     outquadrature = NaN
 *     retCode = lib.TA_HT_PHASOR( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outinphase , &outquadrature )
 */
  __pyx_v_outinphase = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5321
 *     length = real.shape[0]
 *     outinphase = NaN
 *     outquadrature = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_HT_PHASOR( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outinphase , &outquadrature )
 *     _ta_check_success("TA_HT_PHASOR", retCode)
 */
  __pyx_v_outquadrature = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5322
 *     outinphase = NaN
 *     outquadrature = NaN
 *     retCode = lib.TA_HT_PHASOR( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outinphase , &outquadrature )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_HT_PHASOR", retCode)
 *     return outinphase , outquadrature
 */
  __pyx_v_retCode = TA_HT_PHASOR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinphase), (&__pyx_v_outquadrature));

  /* "talib/stream.pyx":5323
 *     outquadrature = NaN
 *     retCode = lib.TA_HT_PHASOR( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outinphase , &outquadrature )
 *     _ta_check_success("TA_HT_PHASOR", retCode)             # <<<<<<<<<<<<<<
 *     return outinphase , outquadrature
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_HT_PHASOR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5324
 *     retCode = lib.TA_HT_PHASOR( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outinphase , &outquadrature )
 *     _ta_check_success("TA_HT_PHASOR", retCode)
 *     return outinphase , outquadrature             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outinphase); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outquadrature); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5291
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_PHASOR( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_PHASOR(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("talib.stream.HT_PHASOR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5328
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_SINE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_SINE(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_185HT_SINE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_184HT_SINE[] = " HT_SINE(real)\n\n    Hilbert Transform - SineWave (Cycle Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        sine\n        leadsine\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_185HT_SINE = {"HT_SINE", (PyCFunction)__pyx_pw_5talib_6stream_185HT_SINE, METH_O, __pyx_doc_5talib_6stream_184HT_SINE};
static PyObject *__pyx_pw_5talib_6stream_185HT_SINE(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("HT_SINE (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5328, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_184HT_SINE(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_184HT_SINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outsine;
  double __pyx_v_outleadsine;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("HT_SINE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5349
 *         double outsine
 *         double outleadsine
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5350
 *         double outleadsine
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__818, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5350, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5350, __pyx_L1_error)

    /* "talib/stream.pyx":5349
 *         double outsine
 *         double outleadsine
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5351
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5352
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__819, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5352, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5352, __pyx_L1_error)

    /* "talib/stream.pyx":5351
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5353
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5354
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5354, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5354, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5353
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5355
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outsine = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5356
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outsine = NaN
 *     outleadsine = NaN
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5357
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outsine = NaN             # <<<<<<<<<<<<<<
 *     outleadsine = NaN
 *     retCode = lib.TA_HT_SINE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outsine , &outleadsine )
 */
  __pyx_v_outsine = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5358
 *     length = real.shape[0]
 *     outsine = NaN
 *     outleadsine = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_HT_SINE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outsine , &outleadsine )
 *     _ta_check_success("TA_HT_SINE", retCode)
 */
  __pyx_v_outleadsine = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5359
 *     outsine = NaN
 *     outleadsine = NaN
 *     retCode = lib.TA_HT_SINE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outsine , &outleadsine )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_HT_SINE", retCode)
 *     return outsine , outleadsine
 */
  __pyx_v_retCode = TA_HT_SINE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outsine), (&__pyx_v_outleadsine));

  /* "talib/stream.pyx":5360
 *     outleadsine = NaN
 *     retCode = lib.TA_HT_SINE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outsine , &outleadsine )
 *     _ta_check_success("TA_HT_SINE", retCode)             # <<<<<<<<<<<<<<
 *     return outsine , outleadsine
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_HT_SINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5360, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5361
 *     retCode = lib.TA_HT_SINE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outsine , &outleadsine )
 *     _ta_check_success("TA_HT_SINE", retCode)
 *     return outsine , outleadsine             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outsine); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outleadsine); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5328
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_SINE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_SINE(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("talib.stream.HT_SINE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5365
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_TRENDLINE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_TRENDLINE(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_187HT_TRENDLINE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_186HT_TRENDLINE[] = " HT_TRENDLINE(real)\n\n    Hilbert Transform - Instantaneous Trendline (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_187HT_TRENDLINE = {"HT_TRENDLINE", (PyCFunction)__pyx_pw_5talib_6stream_187HT_TRENDLINE, METH_O, __pyx_doc_5talib_6stream_186HT_TRENDLINE};
static PyObject *__pyx_pw_5talib_6stream_187HT_TRENDLINE(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("HT_TRENDLINE (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5365, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_186HT_TRENDLINE(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_186HT_TRENDLINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("HT_TRENDLINE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5384
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5385
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__820, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5385, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5385, __pyx_L1_error)

    /* "talib/stream.pyx":5384
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5386
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5387
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__821, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5387, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5387, __pyx_L1_error)

    /* "talib/stream.pyx":5386
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5388
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5389
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5389, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5388
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5390
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5391
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_HT_TRENDLINE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5392
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_HT_TRENDLINE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_HT_TRENDLINE", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5393
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_HT_TRENDLINE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_HT_TRENDLINE", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_HT_TRENDLINE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5394
 *     outreal = NaN
 *     retCode = lib.TA_HT_TRENDLINE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_HT_TRENDLINE", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_HT_TRENDLINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5395
 *     retCode = lib.TA_HT_TRENDLINE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_HT_TRENDLINE", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5365
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_TRENDLINE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_TRENDLINE(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.HT_TRENDLINE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5399
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_TRENDMODE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_TRENDMODE(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_189HT_TRENDMODE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_188HT_TRENDMODE[] = " HT_TRENDMODE(real)\n\n    Hilbert Transform - Trend vs Cycle Mode (Cycle Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_189HT_TRENDMODE = {"HT_TRENDMODE", (PyCFunction)__pyx_pw_5talib_6stream_189HT_TRENDMODE, METH_O, __pyx_doc_5talib_6stream_188HT_TRENDMODE};
static PyObject *__pyx_pw_5talib_6stream_189HT_TRENDMODE(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("HT_TRENDMODE (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5399, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_188HT_TRENDMODE(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_188HT_TRENDMODE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("HT_TRENDMODE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5418
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5419
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__822, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5419, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5419, __pyx_L1_error)

    /* "talib/stream.pyx":5418
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5420
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5421
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__823, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5421, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5421, __pyx_L1_error)

    /* "talib/stream.pyx":5420
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5422
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5423
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5423, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5423, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5422
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5424
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outinteger = 0
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5425
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_HT_TRENDMODE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5426
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_HT_TRENDMODE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_HT_TRENDMODE", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":5427
 *     length = real.shape[0]
 *     outinteger = 0
 *     retCode = lib.TA_HT_TRENDMODE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_HT_TRENDMODE", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_HT_TRENDMODE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":5428
 *     outinteger = 0
 *     retCode = lib.TA_HT_TRENDMODE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_HT_TRENDMODE", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_HT_TRENDMODE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5429
 *     retCode = lib.TA_HT_TRENDMODE( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_HT_TRENDMODE", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5399
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_TRENDMODE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_TRENDMODE(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.HT_TRENDMODE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5433
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def KAMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ KAMA(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_191KAMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_190KAMA[] = " KAMA(real[, timeperiod=?])\n\n    Kaufman Adaptive Moving Average (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_191KAMA = {"KAMA", (PyCFunction)__pyx_pw_5talib_6stream_191KAMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_190KAMA};
static PyObject *__pyx_pw_5talib_6stream_191KAMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("KAMA (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "KAMA") < 0)) __PYX_ERR(0, 5433, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5433, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("KAMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5433, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.KAMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5433, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_190KAMA(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_190KAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("KAMA", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5454
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5455
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__824, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5455, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5455, __pyx_L1_error)

    /* "talib/stream.pyx":5454
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5456
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5457
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__825, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5457, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5457, __pyx_L1_error)

    /* "talib/stream.pyx":5456
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5458
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5459
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5459, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5459, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5458
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5460
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5461
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_KAMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5462
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_KAMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_KAMA", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5463
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_KAMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_KAMA", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_KAMA((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5464
 *     outreal = NaN
 *     retCode = lib.TA_KAMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_KAMA", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_KAMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5464, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5465
 *     retCode = lib.TA_KAMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_KAMA", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5433
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def KAMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ KAMA(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.KAMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5469
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_193LINEARREG(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_192LINEARREG[] = " LINEARREG(real[, timeperiod=?])\n\n    Linear Regression (Statistic Functions)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_193LINEARREG = {"LINEARREG", (PyCFunction)__pyx_pw_5talib_6stream_193LINEARREG, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_192LINEARREG};
static PyObject *__pyx_pw_5talib_6stream_193LINEARREG(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("LINEARREG (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "LINEARREG") < 0)) __PYX_ERR(0, 5469, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5469, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("LINEARREG", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5469, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.LINEARREG", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5469, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_192LINEARREG(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_192LINEARREG(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("LINEARREG", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5490
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5491
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__826, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5491, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5491, __pyx_L1_error)

    /* "talib/stream.pyx":5490
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5492
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5493
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__827, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5493, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5493, __pyx_L1_error)

    /* "talib/stream.pyx":5492
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5494
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5495
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5495, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5495, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5494
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5496
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5497
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5498
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_LINEARREG( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5499
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_LINEARREG", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_LINEARREG((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5500
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_LINEARREG, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5501
 *     retCode = lib.TA_LINEARREG( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5469
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.LINEARREG", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5505
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_ANGLE( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_ANGLE(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_195LINEARREG_ANGLE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_194LINEARREG_ANGLE[] = " LINEARREG_ANGLE(real[, timeperiod=?])\n\n    Linear Regression Angle (Statistic Functions)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_195LINEARREG_ANGLE = {"LINEARREG_ANGLE", (PyCFunction)__pyx_pw_5talib_6stream_195LINEARREG_ANGLE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_194LINEARREG_ANGLE};
static PyObject *__pyx_pw_5talib_6stream_195LINEARREG_ANGLE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("LINEARREG_ANGLE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "LINEARREG_ANGLE") < 0)) __PYX_ERR(0, 5505, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5505, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("LINEARREG_ANGLE", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5505, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.LINEARREG_ANGLE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5505, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_194LINEARREG_ANGLE(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_194LINEARREG_ANGLE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("LINEARREG_ANGLE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5526
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5527
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__828, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5527, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5527, __pyx_L1_error)

    /* "talib/stream.pyx":5526
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5528
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5529
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__829, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5529, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5529, __pyx_L1_error)

    /* "talib/stream.pyx":5528
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5530
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5531
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5531, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5531, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5530
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5532
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5533
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG_ANGLE( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5534
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_LINEARREG_ANGLE( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG_ANGLE", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5535
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG_ANGLE( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_LINEARREG_ANGLE", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_LINEARREG_ANGLE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5536
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG_ANGLE( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG_ANGLE", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_LINEARREG_ANGLE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5537
 *     retCode = lib.TA_LINEARREG_ANGLE( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG_ANGLE", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5505
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_ANGLE( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_ANGLE(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.LINEARREG_ANGLE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5541
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_INTERCEPT( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_INTERCEPT(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_197LINEARREG_INTERCEPT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_196LINEARREG_INTERCEPT[] = " LINEARREG_INTERCEPT(real[, timeperiod=?])\n\n    Linear Regression Intercept (Statistic Functions)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_197LINEARREG_INTERCEPT = {"LINEARREG_INTERCEPT", (PyCFunction)__pyx_pw_5talib_6stream_197LINEARREG_INTERCEPT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_196LINEARREG_INTERCEPT};
static PyObject *__pyx_pw_5talib_6stream_197LINEARREG_INTERCEPT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("LINEARREG_INTERCEPT (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "LINEARREG_INTERCEPT") < 0)) __PYX_ERR(0, 5541, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5541, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("LINEARREG_INTERCEPT", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5541, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.LINEARREG_INTERCEPT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5541, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_196LINEARREG_INTERCEPT(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_196LINEARREG_INTERCEPT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("LINEARREG_INTERCEPT", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5562
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5563
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__830, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5563, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5563, __pyx_L1_error)

    /* "talib/stream.pyx":5562
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5564
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5565
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__831, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5565, __pyx_L1_error)

    /* "talib/stream.pyx":5564
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5566
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5567
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5567, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5567, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5566
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5568
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5569
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG_INTERCEPT( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5570
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_LINEARREG_INTERCEPT( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG_INTERCEPT", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5571
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG_INTERCEPT( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_LINEARREG_INTERCEPT", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_LINEARREG_INTERCEPT((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5572
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG_INTERCEPT( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG_INTERCEPT", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_LINEARREG_INTERCEPT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5572, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5573
 *     retCode = lib.TA_LINEARREG_INTERCEPT( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG_INTERCEPT", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5541
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_INTERCEPT( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_INTERCEPT(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.LINEARREG_INTERCEPT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5577
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_SLOPE( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_SLOPE(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_199LINEARREG_SLOPE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_198LINEARREG_SLOPE[] = " LINEARREG_SLOPE(real[, timeperiod=?])\n\n    Linear Regression Slope (Statistic Functions)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_199LINEARREG_SLOPE = {"LINEARREG_SLOPE", (PyCFunction)__pyx_pw_5talib_6stream_199LINEARREG_SLOPE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_198LINEARREG_SLOPE};
static PyObject *__pyx_pw_5talib_6stream_199LINEARREG_SLOPE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("LINEARREG_SLOPE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "LINEARREG_SLOPE") < 0)) __PYX_ERR(0, 5577, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5577, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("LINEARREG_SLOPE", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5577, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.LINEARREG_SLOPE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5577, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_198LINEARREG_SLOPE(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_198LINEARREG_SLOPE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("LINEARREG_SLOPE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5598
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5599
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__832, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5599, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5599, __pyx_L1_error)

    /* "talib/stream.pyx":5598
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5600
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5601
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__833, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5601, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5601, __pyx_L1_error)

    /* "talib/stream.pyx":5600
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5602
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5603
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5603, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5603, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5602
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5604
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5605
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG_SLOPE( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5606
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_LINEARREG_SLOPE( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG_SLOPE", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5607
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG_SLOPE( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_LINEARREG_SLOPE", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_LINEARREG_SLOPE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5608
 *     outreal = NaN
 *     retCode = lib.TA_LINEARREG_SLOPE( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG_SLOPE", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_LINEARREG_SLOPE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5609
 *     retCode = lib.TA_LINEARREG_SLOPE( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LINEARREG_SLOPE", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5577
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_SLOPE( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_SLOPE(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.LINEARREG_SLOPE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5613
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ LN(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_201LN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_200LN[] = " LN(real)\n\n    Vector Log Natural (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_201LN = {"LN", (PyCFunction)__pyx_pw_5talib_6stream_201LN, METH_O, __pyx_doc_5talib_6stream_200LN};
static PyObject *__pyx_pw_5talib_6stream_201LN(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("LN (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5613, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_200LN(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_200LN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("LN", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5632
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5633
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__834, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5633, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5633, __pyx_L1_error)

    /* "talib/stream.pyx":5632
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5634
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5635
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__835, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5635, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5635, __pyx_L1_error)

    /* "talib/stream.pyx":5634
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5636
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5637
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5637, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5637, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5636
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5638
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5639
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_LN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5640
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_LN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LN", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5641
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_LN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_LN", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_LN((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5642
 *     outreal = NaN
 *     retCode = lib.TA_LN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LN", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_LN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5643
 *     retCode = lib.TA_LN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LN", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5613
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ LN(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.LN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5647
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LOG10( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ LOG10(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_203LOG10(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_202LOG10[] = " LOG10(real)\n\n    Vector Log10 (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_203LOG10 = {"LOG10", (PyCFunction)__pyx_pw_5talib_6stream_203LOG10, METH_O, __pyx_doc_5talib_6stream_202LOG10};
static PyObject *__pyx_pw_5talib_6stream_203LOG10(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("LOG10 (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5647, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_202LOG10(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_202LOG10(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("LOG10", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5666
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5667
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__836, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5667, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5667, __pyx_L1_error)

    /* "talib/stream.pyx":5666
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5668
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5669
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__837, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5669, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5669, __pyx_L1_error)

    /* "talib/stream.pyx":5668
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5670
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5671
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5671, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5671, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5670
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5672
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5673
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_LOG10( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5674
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_LOG10( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LOG10", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5675
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_LOG10( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_LOG10", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_LOG10((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5676
 *     outreal = NaN
 *     retCode = lib.TA_LOG10( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LOG10", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_LOG10, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5676, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5677
 *     retCode = lib.TA_LOG10( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_LOG10", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5677, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5647
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LOG10( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ LOG10(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.LOG10", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5681
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MA( np.ndarray real not None , int timeperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ MA(real[, timeperiod=?, matype=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_205MA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_204MA[] = " MA(real[, timeperiod=?, matype=?])\n\n    Moving average (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n        matype: 0 (Simple Moving Average)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_205MA = {"MA", (PyCFunction)__pyx_pw_5talib_6stream_205MA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_204MA};
static PyObject *__pyx_pw_5talib_6stream_205MA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  int __pyx_v_matype;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MA (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,&__pyx_n_s_matype,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_matype);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MA") < 0)) __PYX_ERR(0, 5681, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5681, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
    if (values[2]) {
      __pyx_v_matype = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_matype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5681, __pyx_L3_error)
    } else {
      __pyx_v_matype = ((int)0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MA", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5681, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5681, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_204MA(__pyx_self, __pyx_v_real, __pyx_v_timeperiod, __pyx_v_matype);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_204MA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, int __pyx_v_matype) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MA", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5703
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5704
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__838, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5704, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5704, __pyx_L1_error)

    /* "talib/stream.pyx":5703
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5705
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5706
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__839, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5706, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5706, __pyx_L1_error)

    /* "talib/stream.pyx":5705
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5707
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5708
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5708, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5708, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5707
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5709
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5710
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MA( length - 1 , length - 1 , real_data , timeperiod , matype , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5711
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MA( length - 1 , length - 1 , real_data , timeperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MA", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5712
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_MA( length - 1 , length - 1 , real_data , timeperiod , matype , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MA", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MA((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5713
 *     outreal = NaN
 *     retCode = lib.TA_MA( length - 1 , length - 1 , real_data , timeperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MA", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5713, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5714
 *     retCode = lib.TA_MA( length - 1 , length - 1 , real_data , timeperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MA", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5714, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5681
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MA( np.ndarray real not None , int timeperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ MA(real[, timeperiod=?, matype=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5718
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACD( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int signalperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MACD(real[, fastperiod=?, slowperiod=?, signalperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_207MACD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_206MACD[] = " MACD(real[, fastperiod=?, slowperiod=?, signalperiod=?])\n\n    Moving Average Convergence/Divergence (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        fastperiod: 12\n        slowperiod: 26\n        signalperiod: 9\n    Outputs:\n        macd\n        macdsignal\n        macdhist\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_207MACD = {"MACD", (PyCFunction)__pyx_pw_5talib_6stream_207MACD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_206MACD};
static PyObject *__pyx_pw_5talib_6stream_207MACD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_fastperiod;
  int __pyx_v_slowperiod;
  int __pyx_v_signalperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MACD (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_fastperiod,&__pyx_n_s_slowperiod,&__pyx_n_s_signalperiod,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastperiod);
          if (value) { values[1] = value; kw_args--; }
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_slowperiod);
          if (value) { values[2] = value; kw_args--; }
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_signalperiod);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MACD") < 0)) __PYX_ERR(0, 5718, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_fastperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_fastperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5718, __pyx_L3_error)
    } else {
      __pyx_v_fastperiod = ((int)-2147483648);
    }
    if (values[2]) {
      __pyx_v_slowperiod = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_slowperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5718, __pyx_L3_error)
    } else {
      __pyx_v_slowperiod = ((int)-2147483648);
    }
    if (values[3]) {
      __pyx_v_signalperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_signalperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5718, __pyx_L3_error)
    } else {
      __pyx_v_signalperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MACD", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5718, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MACD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5718, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_206MACD(__pyx_self, __pyx_v_real, __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_signalperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_206MACD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_fastperiod, int __pyx_v_slowperiod, int __pyx_v_signalperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outmacd;
  double __pyx_v_outmacdsignal;
  double __pyx_v_outmacdhist;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("MACD", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5745
 *         double outmacdsignal
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5746
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__840, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5746, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5746, __pyx_L1_error)

    /* "talib/stream.pyx":5745
 *         double outmacdsignal
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5747
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5748
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__841, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5748, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5748, __pyx_L1_error)

    /* "talib/stream.pyx":5747
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5749
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5750
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5750, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5750, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5749
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5751
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outmacd = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5752
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outmacd = NaN
 *     outmacdsignal = NaN
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5753
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outmacd = NaN             # <<<<<<<<<<<<<<
 *     outmacdsignal = NaN
 *     outmacdhist = NaN
 */
  __pyx_v_outmacd = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5754
 *     length = real.shape[0]
 *     outmacd = NaN
 *     outmacdsignal = NaN             # <<<<<<<<<<<<<<
 *     outmacdhist = NaN
 *     retCode = lib.TA_MACD( length - 1 , length - 1 , real_data , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 */
  __pyx_v_outmacdsignal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5755
 *     outmacd = NaN
 *     outmacdsignal = NaN
 *     outmacdhist = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MACD( length - 1 , length - 1 , real_data , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 *     _ta_check_success("TA_MACD", retCode)
 */
  __pyx_v_outmacdhist = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5756
 *     outmacdsignal = NaN
 *     outmacdhist = NaN
 *     retCode = lib.TA_MACD( length - 1 , length - 1 , real_data , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MACD", retCode)
 *     return outmacd , outmacdsignal , outmacdhist
 */
  __pyx_v_retCode = TA_MACD((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_signalperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outmacd), (&__pyx_v_outmacdsignal), (&__pyx_v_outmacdhist));

  /* "talib/stream.pyx":5757
 *     outmacdhist = NaN
 *     retCode = lib.TA_MACD( length - 1 , length - 1 , real_data , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 *     _ta_check_success("TA_MACD", retCode)             # <<<<<<<<<<<<<<
 *     return outmacd , outmacdsignal , outmacdhist
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MACD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5758
 *     retCode = lib.TA_MACD( length - 1 , length - 1 , real_data , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 *     _ta_check_success("TA_MACD", retCode)
 *     return outmacd , outmacdsignal , outmacdhist             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outmacd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outmacdsignal); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_outmacdhist); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5718
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACD( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int signalperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MACD(real[, fastperiod=?, slowperiod=?, signalperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("talib.stream.MACD", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5762
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACDEXT( np.ndarray real not None , int fastperiod=-2**31 , int fastmatype=0 , int slowperiod=-2**31 , int slowmatype=0 , int signalperiod=-2**31 , int signalmatype=0 ):             # <<<<<<<<<<<<<<
 *     """ MACDEXT(real[, fastperiod=?, fastmatype=?, slowperiod=?, slowmatype=?, signalperiod=?, signalmatype=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_209MACDEXT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_208MACDEXT[] = " MACDEXT(real[, fastperiod=?, fastmatype=?, slowperiod=?, slowmatype=?, signalperiod=?, signalmatype=?])\n\n    MACD with controllable MA type (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        fastperiod: 12\n        fastmatype: 0\n        slowperiod: 26\n        slowmatype: 0\n        signalperiod: 9\n        signalmatype: 0\n    Outputs:\n        macd\n        macdsignal\n        macdhist\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_209MACDEXT = {"MACDEXT", (PyCFunction)__pyx_pw_5talib_6stream_209MACDEXT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_208MACDEXT};
static PyObject *__pyx_pw_5talib_6stream_209MACDEXT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_fastperiod;
  int __pyx_v_fastmatype;
  int __pyx_v_slowperiod;
  int __pyx_v_slowmatype;
  int __pyx_v_signalperiod;
  int __pyx_v_signalmatype;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MACDEXT (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_fastperiod,&__pyx_n_s_fastmatype,&__pyx_n_s_slowperiod,&__pyx_n_s_slowmatype,&__pyx_n_s_signalperiod,&__pyx_n_s_signalmatype,0};
    PyObject* values[7] = {0,0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastperiod);
          if (value) { values[1] = value; kw_args--; }
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastmatype);
          if (value) { values[2] = value; kw_args--; }
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_slowperiod);
          if (value) { values[3] = value; kw_args--; }
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_slowmatype);
          if (value) { values[4] = value; kw_args--; }
        }
        case  5:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_signalperiod);
          if (value) { values[5] = value; kw_args--; }
        }
        case  6:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_signalmatype);
          if (value) { values[6] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MACDEXT") < 0)) __PYX_ERR(0, 5762, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_fastperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_fastperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5762, __pyx_L3_error)
    } else {
      __pyx_v_fastperiod = ((int)-2147483648);
    }
    if (values[2]) {
      __pyx_v_fastmatype = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_fastmatype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5762, __pyx_L3_error)
    } else {
      __pyx_v_fastmatype = ((int)0);
    }
    if (values[3]) {
      __pyx_v_slowperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_slowperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5762, __pyx_L3_error)
    } else {
      __pyx_v_slowperiod = ((int)-2147483648);
    }
    if (values[4]) {
      __pyx_v_slowmatype = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_slowmatype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5762, __pyx_L3_error)
    } else {
      __pyx_v_slowmatype = ((int)0);
    }
    if (values[5]) {
      __pyx_v_signalperiod = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_signalperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5762, __pyx_L3_error)
    } else {
      __pyx_v_signalperiod = ((int)-2147483648);
    }
    if (values[6]) {
      __pyx_v_signalmatype = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_signalmatype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5762, __pyx_L3_error)
    } else {
      __pyx_v_signalmatype = ((int)0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MACDEXT", 0, 1, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5762, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MACDEXT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5762, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_208MACDEXT(__pyx_self, __pyx_v_real, __pyx_v_fastperiod, __pyx_v_fastmatype, __pyx_v_slowperiod, __pyx_v_slowmatype, __pyx_v_signalperiod, __pyx_v_signalmatype);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_208MACDEXT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_fastperiod, int __pyx_v_fastmatype, int __pyx_v_slowperiod, int __pyx_v_slowmatype, int __pyx_v_signalperiod, int __pyx_v_signalmatype) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outmacd;
  double __pyx_v_outmacdsignal;
  double __pyx_v_outmacdhist;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("MACDEXT", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5792
 *         double outmacdsignal
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5793
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__842, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5793, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5793, __pyx_L1_error)

    /* "talib/stream.pyx":5792
 *         double outmacdsignal
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5794
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5795
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__843, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5795, __pyx_L1_error)

    /* "talib/stream.pyx":5794
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5796
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5797
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5797, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5797, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5796
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5798
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outmacd = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5799
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outmacd = NaN
 *     outmacdsignal = NaN
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5800
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outmacd = NaN             # <<<<<<<<<<<<<<
 *     outmacdsignal = NaN
 *     outmacdhist = NaN
 */
  __pyx_v_outmacd = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5801
 *     length = real.shape[0]
 *     outmacd = NaN
 *     outmacdsignal = NaN             # <<<<<<<<<<<<<<
 *     outmacdhist = NaN
 *     retCode = lib.TA_MACDEXT( length - 1 , length - 1 , real_data , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 */
  __pyx_v_outmacdsignal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5802
 *     outmacd = NaN
 *     outmacdsignal = NaN
 *     outmacdhist = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MACDEXT( length - 1 , length - 1 , real_data , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 *     _ta_check_success("TA_MACDEXT", retCode)
 */
  __pyx_v_outmacdhist = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5803
 *     outmacdsignal = NaN
 *     outmacdhist = NaN
 *     retCode = lib.TA_MACDEXT( length - 1 , length - 1 , real_data , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MACDEXT", retCode)
 *     return outmacd , outmacdsignal , outmacdhist
 */
  __pyx_v_retCode = TA_MACDEXT((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_fastperiod, __pyx_v_fastmatype, __pyx_v_slowperiod, __pyx_v_slowmatype, __pyx_v_signalperiod, __pyx_v_signalmatype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outmacd), (&__pyx_v_outmacdsignal), (&__pyx_v_outmacdhist));

  /* "talib/stream.pyx":5804
 *     outmacdhist = NaN
 *     retCode = lib.TA_MACDEXT( length - 1 , length - 1 , real_data , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 *     _ta_check_success("TA_MACDEXT", retCode)             # <<<<<<<<<<<<<<
 *     return outmacd , outmacdsignal , outmacdhist
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MACDEXT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5804, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5805
 *     retCode = lib.TA_MACDEXT( length - 1 , length - 1 , real_data , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 *     _ta_check_success("TA_MACDEXT", retCode)
 *     return outmacd , outmacdsignal , outmacdhist             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outmacd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outmacdsignal); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_outmacdhist); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5762
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACDEXT( np.ndarray real not None , int fastperiod=-2**31 , int fastmatype=0 , int slowperiod=-2**31 , int slowmatype=0 , int signalperiod=-2**31 , int signalmatype=0 ):             # <<<<<<<<<<<<<<
 *     """ MACDEXT(real[, fastperiod=?, fastmatype=?, slowperiod=?, slowmatype=?, signalperiod=?, signalmatype=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("talib.stream.MACDEXT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5809
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACDFIX( np.ndarray real not None , int signalperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MACDFIX(real[, signalperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_211MACDFIX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_210MACDFIX[] = " MACDFIX(real[, signalperiod=?])\n\n    Moving Average Convergence/Divergence Fix 12/26 (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        signalperiod: 9\n    Outputs:\n        macd\n        macdsignal\n        macdhist\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_211MACDFIX = {"MACDFIX", (PyCFunction)__pyx_pw_5talib_6stream_211MACDFIX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_210MACDFIX};
static PyObject *__pyx_pw_5talib_6stream_211MACDFIX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_signalperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MACDFIX (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_signalperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_signalperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MACDFIX") < 0)) __PYX_ERR(0, 5809, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_signalperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_signalperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5809, __pyx_L3_error)
    } else {
      __pyx_v_signalperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MACDFIX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5809, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MACDFIX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5809, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_210MACDFIX(__pyx_self, __pyx_v_real, __pyx_v_signalperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_210MACDFIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_signalperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outmacd;
  double __pyx_v_outmacdsignal;
  double __pyx_v_outmacdhist;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  PyObject *__pyx_t_5 = NULL;
  __Pyx_RefNannySetupContext("MACDFIX", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5834
 *         double outmacdsignal
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5835
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__844, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5835, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5835, __pyx_L1_error)

    /* "talib/stream.pyx":5834
 *         double outmacdsignal
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5836
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5837
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__845, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5837, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5837, __pyx_L1_error)

    /* "talib/stream.pyx":5836
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5838
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5839
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5839, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5839, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5838
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5840
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outmacd = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5841
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outmacd = NaN
 *     outmacdsignal = NaN
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5842
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outmacd = NaN             # <<<<<<<<<<<<<<
 *     outmacdsignal = NaN
 *     outmacdhist = NaN
 */
  __pyx_v_outmacd = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5843
 *     length = real.shape[0]
 *     outmacd = NaN
 *     outmacdsignal = NaN             # <<<<<<<<<<<<<<
 *     outmacdhist = NaN
 *     retCode = lib.TA_MACDFIX( length - 1 , length - 1 , real_data , signalperiod , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 */
  __pyx_v_outmacdsignal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5844
 *     outmacd = NaN
 *     outmacdsignal = NaN
 *     outmacdhist = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MACDFIX( length - 1 , length - 1 , real_data , signalperiod , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 *     _ta_check_success("TA_MACDFIX", retCode)
 */
  __pyx_v_outmacdhist = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5845
 *     outmacdsignal = NaN
 *     outmacdhist = NaN
 *     retCode = lib.TA_MACDFIX( length - 1 , length - 1 , real_data , signalperiod , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MACDFIX", retCode)
 *     return outmacd , outmacdsignal , outmacdhist
 */
  __pyx_v_retCode = TA_MACDFIX((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_signalperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outmacd), (&__pyx_v_outmacdsignal), (&__pyx_v_outmacdhist));

  /* "talib/stream.pyx":5846
 *     outmacdhist = NaN
 *     retCode = lib.TA_MACDFIX( length - 1 , length - 1 , real_data , signalperiod , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 *     _ta_check_success("TA_MACDFIX", retCode)             # <<<<<<<<<<<<<<
 *     return outmacd , outmacdsignal , outmacdhist
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MACDFIX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5846, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5847
 *     retCode = lib.TA_MACDFIX( length - 1 , length - 1 , real_data , signalperiod , &outbegidx , &outnbelement , &outmacd , &outmacdsignal , &outmacdhist )
 *     _ta_check_success("TA_MACDFIX", retCode)
 *     return outmacd , outmacdsignal , outmacdhist             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outmacd); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outmacdsignal); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyFloat_FromDouble(__pyx_v_outmacdhist); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 5847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_5);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_3);
  __Pyx_GIVEREF(__pyx_t_4);
  PyTuple_SET_ITEM(__pyx_t_5, 2, __pyx_t_4);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_t_4 = 0;
  __pyx_r = __pyx_t_5;
  __pyx_t_5 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5809
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACDFIX( np.ndarray real not None , int signalperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MACDFIX(real[, signalperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_XDECREF(__pyx_t_5);
  __Pyx_AddTraceback("talib.stream.MACDFIX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5851
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAMA( np.ndarray real not None , double fastlimit=-4e37 , double slowlimit=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ MAMA(real[, fastlimit=?, slowlimit=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_213MAMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_212MAMA[] = " MAMA(real[, fastlimit=?, slowlimit=?])\n\n    MESA Adaptive Moving Average (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        fastlimit: 0.5\n        slowlimit: 0.05\n    Outputs:\n        mama\n        fama\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_213MAMA = {"MAMA", (PyCFunction)__pyx_pw_5talib_6stream_213MAMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_212MAMA};
static PyObject *__pyx_pw_5talib_6stream_213MAMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  double __pyx_v_fastlimit;
  double __pyx_v_slowlimit;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MAMA (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_fastlimit,&__pyx_n_s_slowlimit,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastlimit);
          if (value) { values[1] = value; kw_args--; }
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_slowlimit);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MAMA") < 0)) __PYX_ERR(0, 5851, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_fastlimit = __pyx_PyFloat_AsDouble(values[1]); if (unlikely((__pyx_v_fastlimit == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5851, __pyx_L3_error)
    } else {
      __pyx_v_fastlimit = ((double)-4e37);
    }
    if (values[2]) {
      __pyx_v_slowlimit = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_slowlimit == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5851, __pyx_L3_error)
    } else {
      __pyx_v_slowlimit = ((double)-4e37);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MAMA", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5851, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MAMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5851, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_212MAMA(__pyx_self, __pyx_v_real, __pyx_v_fastlimit, __pyx_v_slowlimit);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_212MAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, double __pyx_v_fastlimit, double __pyx_v_slowlimit) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outmama;
  double __pyx_v_outfama;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("MAMA", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5875
 *         double outmama
 *         double outfama
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5876
 *         double outfama
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__846, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5876, __pyx_L1_error)

    /* "talib/stream.pyx":5875
 *         double outmama
 *         double outfama
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5877
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5878
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__847, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5878, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5878, __pyx_L1_error)

    /* "talib/stream.pyx":5877
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5879
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5880
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5880, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5880, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5879
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5881
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outmama = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5882
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outmama = NaN
 *     outfama = NaN
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5883
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outmama = NaN             # <<<<<<<<<<<<<<
 *     outfama = NaN
 *     retCode = lib.TA_MAMA( length - 1 , length - 1 , real_data , fastlimit , slowlimit , &outbegidx , &outnbelement , &outmama , &outfama )
 */
  __pyx_v_outmama = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5884
 *     length = real.shape[0]
 *     outmama = NaN
 *     outfama = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MAMA( length - 1 , length - 1 , real_data , fastlimit , slowlimit , &outbegidx , &outnbelement , &outmama , &outfama )
 *     _ta_check_success("TA_MAMA", retCode)
 */
  __pyx_v_outfama = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5885
 *     outmama = NaN
 *     outfama = NaN
 *     retCode = lib.TA_MAMA( length - 1 , length - 1 , real_data , fastlimit , slowlimit , &outbegidx , &outnbelement , &outmama , &outfama )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MAMA", retCode)
 *     return outmama , outfama
 */
  __pyx_v_retCode = TA_MAMA((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_fastlimit, __pyx_v_slowlimit, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outmama), (&__pyx_v_outfama));

  /* "talib/stream.pyx":5886
 *     outfama = NaN
 *     retCode = lib.TA_MAMA( length - 1 , length - 1 , real_data , fastlimit , slowlimit , &outbegidx , &outnbelement , &outmama , &outfama )
 *     _ta_check_success("TA_MAMA", retCode)             # <<<<<<<<<<<<<<
 *     return outmama , outfama
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MAMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5886, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5887
 *     retCode = lib.TA_MAMA( length - 1 , length - 1 , real_data , fastlimit , slowlimit , &outbegidx , &outnbelement , &outmama , &outfama )
 *     _ta_check_success("TA_MAMA", retCode)
 *     return outmama , outfama             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outmama); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outfama); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 5887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5851
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAMA( np.ndarray real not None , double fastlimit=-4e37 , double slowlimit=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ MAMA(real[, fastlimit=?, slowlimit=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("talib.stream.MAMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5891
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAVP( np.ndarray real not None , np.ndarray periods not None , int minperiod=-2**31 , int maxperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ MAVP(real, periods[, minperiod=?, maxperiod=?, matype=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_215MAVP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_214MAVP[] = " MAVP(real, periods[, minperiod=?, maxperiod=?, matype=?])\n\n    Moving average with variable period (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n        periods: (any ndarray)\n    Parameters:\n        minperiod: 2\n        maxperiod: 30\n        matype: 0 (Simple Moving Average)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_215MAVP = {"MAVP", (PyCFunction)__pyx_pw_5talib_6stream_215MAVP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_214MAVP};
static PyObject *__pyx_pw_5talib_6stream_215MAVP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  PyArrayObject *__pyx_v_periods = 0;
  int __pyx_v_minperiod;
  int __pyx_v_maxperiod;
  int __pyx_v_matype;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MAVP (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_periods,&__pyx_n_s_minperiod,&__pyx_n_s_maxperiod,&__pyx_n_s_matype,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_periods)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("MAVP", 0, 2, 5, 1); __PYX_ERR(0, 5891, __pyx_L3_error)
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_minperiod);
          if (value) { values[2] = value; kw_args--; }
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_maxperiod);
          if (value) { values[3] = value; kw_args--; }
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_matype);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MAVP") < 0)) __PYX_ERR(0, 5891, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    __pyx_v_periods = ((PyArrayObject *)values[1]);
    if (values[2]) {
      __pyx_v_minperiod = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_minperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5891, __pyx_L3_error)
    } else {
      __pyx_v_minperiod = ((int)-2147483648);
    }
    if (values[3]) {
      __pyx_v_maxperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_maxperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5891, __pyx_L3_error)
    } else {
      __pyx_v_maxperiod = ((int)-2147483648);
    }
    if (values[4]) {
      __pyx_v_matype = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_matype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5891, __pyx_L3_error)
    } else {
      __pyx_v_matype = ((int)0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MAVP", 0, 2, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5891, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MAVP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5891, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_periods), __pyx_ptype_5numpy_ndarray, 0, "periods", 0))) __PYX_ERR(0, 5891, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_214MAVP(__pyx_self, __pyx_v_real, __pyx_v_periods, __pyx_v_minperiod, __pyx_v_maxperiod, __pyx_v_matype);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_214MAVP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, PyArrayObject *__pyx_v_periods, int __pyx_v_minperiod, int __pyx_v_maxperiod, int __pyx_v_matype) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  double *__pyx_v_periods_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MAVP", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);
  __Pyx_INCREF((PyObject *)__pyx_v_periods);

  /* "talib/stream.pyx":5916
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5917
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__848, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5917, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5917, __pyx_L1_error)

    /* "talib/stream.pyx":5916
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5918
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5919
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__849, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5919, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5919, __pyx_L1_error)

    /* "talib/stream.pyx":5918
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5920
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5921
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     if PyArray_TYPE(periods) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5921, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5921, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5920
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5922
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(periods) != np.NPY_DOUBLE:
 *         raise Exception("periods is not double")
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5923
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     if PyArray_TYPE(periods) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("periods is not double")
 *     if periods.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_periods) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5924
 *     real_data = <double*>real.data
 *     if PyArray_TYPE(periods) != np.NPY_DOUBLE:
 *         raise Exception("periods is not double")             # <<<<<<<<<<<<<<
 *     if periods.ndim != 1:
 *         raise Exception("periods has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__850, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5924, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5924, __pyx_L1_error)

    /* "talib/stream.pyx":5923
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     if PyArray_TYPE(periods) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("periods is not double")
 *     if periods.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5925
 *     if PyArray_TYPE(periods) != np.NPY_DOUBLE:
 *         raise Exception("periods is not double")
 *     if periods.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("periods has wrong dimensions")
 *     if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_periods->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5926
 *         raise Exception("periods is not double")
 *     if periods.ndim != 1:
 *         raise Exception("periods has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS):
 *         periods = PyArray_GETCONTIGUOUS(periods)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__851, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5926, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5926, __pyx_L1_error)

    /* "talib/stream.pyx":5925
 *     if PyArray_TYPE(periods) != np.NPY_DOUBLE:
 *         raise Exception("periods is not double")
 *     if periods.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("periods has wrong dimensions")
 *     if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5927
 *     if periods.ndim != 1:
 *         raise Exception("periods has wrong dimensions")
 *     if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         periods = PyArray_GETCONTIGUOUS(periods)
 *     periods_data = <double*>periods.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_periods) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5928
 *         raise Exception("periods has wrong dimensions")
 *     if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS):
 *         periods = PyArray_GETCONTIGUOUS(periods)             # <<<<<<<<<<<<<<
 *     periods_data = <double*>periods.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_periods); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5928, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5928, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_periods, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5927
 *     if periods.ndim != 1:
 *         raise Exception("periods has wrong dimensions")
 *     if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         periods = PyArray_GETCONTIGUOUS(periods)
 *     periods_data = <double*>periods.data
 */
  }

  /* "talib/stream.pyx":5929
 *     if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS):
 *         periods = PyArray_GETCONTIGUOUS(periods)
 *     periods_data = <double*>periods.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     if length != periods.shape[0]:
 */
  __pyx_v_periods_data = ((double *)__pyx_v_periods->data);

  /* "talib/stream.pyx":5930
 *         periods = PyArray_GETCONTIGUOUS(periods)
 *     periods_data = <double*>periods.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     if length != periods.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5931
 *     periods_data = <double*>periods.data
 *     length = real.shape[0]
 *     if length != periods.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_periods->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5932
 *     length = real.shape[0]
 *     if length != periods.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MAVP( length - 1 , length - 1 , real_data , periods_data , minperiod , maxperiod , matype , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__852, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5932, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5932, __pyx_L1_error)

    /* "talib/stream.pyx":5931
 *     periods_data = <double*>periods.data
 *     length = real.shape[0]
 *     if length != periods.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":5933
 *     if length != periods.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MAVP( length - 1 , length - 1 , real_data , periods_data , minperiod , maxperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MAVP", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5934
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_MAVP( length - 1 , length - 1 , real_data , periods_data , minperiod , maxperiod , matype , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MAVP", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MAVP((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_periods_data, __pyx_v_minperiod, __pyx_v_maxperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5935
 *     outreal = NaN
 *     retCode = lib.TA_MAVP( length - 1 , length - 1 , real_data , periods_data , minperiod , maxperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MAVP", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MAVP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5936
 *     retCode = lib.TA_MAVP( length - 1 , length - 1 , real_data , periods_data , minperiod , maxperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MAVP", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5891
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAVP( np.ndarray real not None , np.ndarray periods not None , int minperiod=-2**31 , int maxperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ MAVP(real, periods[, minperiod=?, maxperiod=?, matype=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MAVP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XDECREF((PyObject *)__pyx_v_periods);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5940
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MAX(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_217MAX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_216MAX[] = " MAX(real[, timeperiod=?])\n\n    Highest value over a specified period (Math Operators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_217MAX = {"MAX", (PyCFunction)__pyx_pw_5talib_6stream_217MAX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_216MAX};
static PyObject *__pyx_pw_5talib_6stream_217MAX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MAX (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MAX") < 0)) __PYX_ERR(0, 5940, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5940, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MAX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5940, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MAX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5940, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_216MAX(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_216MAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MAX", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5961
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5962
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__853, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5962, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5962, __pyx_L1_error)

    /* "talib/stream.pyx":5961
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5963
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5964
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__854, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5964, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5964, __pyx_L1_error)

    /* "talib/stream.pyx":5963
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":5965
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5966
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5966, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5966, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":5965
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":5967
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":5968
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MAX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":5969
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MAX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MAX", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":5970
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_MAX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MAX", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MAX((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":5971
 *     outreal = NaN
 *     retCode = lib.TA_MAX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MAX", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MAX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":5972
 *     retCode = lib.TA_MAX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MAX", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5940
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MAX(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MAX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":5976
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MAXINDEX(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_219MAXINDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_218MAXINDEX[] = " MAXINDEX(real[, timeperiod=?])\n\n    Index of highest value over a specified period (Math Operators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_219MAXINDEX = {"MAXINDEX", (PyCFunction)__pyx_pw_5talib_6stream_219MAXINDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_218MAXINDEX};
static PyObject *__pyx_pw_5talib_6stream_219MAXINDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MAXINDEX (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MAXINDEX") < 0)) __PYX_ERR(0, 5976, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 5976, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MAXINDEX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 5976, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MAXINDEX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 5976, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_218MAXINDEX(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_218MAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MAXINDEX", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":5997
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":5998
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__855, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5998, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 5998, __pyx_L1_error)

    /* "talib/stream.pyx":5997
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":5999
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6000
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__856, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6000, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6000, __pyx_L1_error)

    /* "talib/stream.pyx":5999
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6001
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6002
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6002, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6002, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6001
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6003
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outinteger = 0
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6004
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_MAXINDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6005
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MAXINDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_MAXINDEX", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":6006
 *     length = real.shape[0]
 *     outinteger = 0
 *     retCode = lib.TA_MAXINDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MAXINDEX", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_MAXINDEX((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":6007
 *     outinteger = 0
 *     retCode = lib.TA_MAXINDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_MAXINDEX", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MAXINDEX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6008
 *     retCode = lib.TA_MAXINDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_MAXINDEX", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":5976
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MAXINDEX(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MAXINDEX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6012
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MEDPRICE( np.ndarray high not None , np.ndarray low not None ):             # <<<<<<<<<<<<<<
 *     """ MEDPRICE(high, low)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_221MEDPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_220MEDPRICE[] = " MEDPRICE(high, low)\n\n    Median Price (Price Transform)\n\n    Inputs:\n        prices: ['high', 'low']\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_221MEDPRICE = {"MEDPRICE", (PyCFunction)__pyx_pw_5talib_6stream_221MEDPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_220MEDPRICE};
static PyObject *__pyx_pw_5talib_6stream_221MEDPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MEDPRICE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("MEDPRICE", 1, 2, 2, 1); __PYX_ERR(0, 6012, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MEDPRICE") < 0)) __PYX_ERR(0, 6012, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MEDPRICE", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6012, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MEDPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6012, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6012, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_220MEDPRICE(__pyx_self, __pyx_v_high, __pyx_v_low);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_220MEDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MEDPRICE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);

  /* "talib/stream.pyx":6032
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6033
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__857, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6033, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6033, __pyx_L1_error)

    /* "talib/stream.pyx":6032
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6034
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6035
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__858, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6035, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6035, __pyx_L1_error)

    /* "talib/stream.pyx":6034
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6036
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6037
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6037, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6036
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":6038
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":6039
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6040
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__859, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6040, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6040, __pyx_L1_error)

    /* "talib/stream.pyx":6039
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6041
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6042
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__860, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6042, __pyx_L1_error)

    /* "talib/stream.pyx":6041
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6043
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6044
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6044, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6043
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":6045
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":6046
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":6047
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6048
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MEDPRICE( length - 1 , length - 1 , high_data , low_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__861, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6048, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6048, __pyx_L1_error)

    /* "talib/stream.pyx":6047
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":6049
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MEDPRICE( length - 1 , length - 1 , high_data , low_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MEDPRICE", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6050
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_MEDPRICE( length - 1 , length - 1 , high_data , low_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MEDPRICE", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MEDPRICE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6051
 *     outreal = NaN
 *     retCode = lib.TA_MEDPRICE( length - 1 , length - 1 , high_data , low_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MEDPRICE", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MEDPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6052
 *     retCode = lib.TA_MEDPRICE( length - 1 , length - 1 , high_data , low_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MEDPRICE", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6012
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MEDPRICE( np.ndarray high not None , np.ndarray low not None ):             # <<<<<<<<<<<<<<
 *     """ MEDPRICE(high, low)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MEDPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6056
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MFI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MFI(high, low, close, volume[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_223MFI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_222MFI[] = " MFI(high, low, close, volume[, timeperiod=?])\n\n    Money Flow Index (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close', 'volume']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_223MFI = {"MFI", (PyCFunction)__pyx_pw_5talib_6stream_223MFI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_222MFI};
static PyObject *__pyx_pw_5talib_6stream_223MFI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyArrayObject *__pyx_v_volume = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MFI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_volume,&__pyx_n_s_timeperiod,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("MFI", 0, 4, 5, 1); __PYX_ERR(0, 6056, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("MFI", 0, 4, 5, 2); __PYX_ERR(0, 6056, __pyx_L3_error)
        }
        case  3:
        if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_volume)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("MFI", 0, 4, 5, 3); __PYX_ERR(0, 6056, __pyx_L3_error)
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MFI") < 0)) __PYX_ERR(0, 6056, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    __pyx_v_volume = ((PyArrayObject *)values[3]);
    if (values[4]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6056, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MFI", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6056, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MFI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6056, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6056, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 6056, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(0, 6056, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_222MFI(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_volume, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_222MFI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, PyArrayObject *__pyx_v_volume, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  double *__pyx_v_volume_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MFI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);
  __Pyx_INCREF((PyObject *)__pyx_v_volume);

  /* "talib/stream.pyx":6080
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6081
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__862, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6081, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6081, __pyx_L1_error)

    /* "talib/stream.pyx":6080
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6082
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6083
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__863, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6083, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6083, __pyx_L1_error)

    /* "talib/stream.pyx":6082
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6084
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6085
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6085, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6085, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6084
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":6086
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":6087
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6088
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__864, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6088, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6088, __pyx_L1_error)

    /* "talib/stream.pyx":6087
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6089
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6090
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__865, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6090, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6090, __pyx_L1_error)

    /* "talib/stream.pyx":6089
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6091
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6092
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6092, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6092, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6091
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":6093
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":6094
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6095
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__866, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6095, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6095, __pyx_L1_error)

    /* "talib/stream.pyx":6094
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6096
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6097
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__867, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6097, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6097, __pyx_L1_error)

    /* "talib/stream.pyx":6096
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6098
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6099
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6099, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6099, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6098
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":6100
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":6101
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_volume) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6102
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")             # <<<<<<<<<<<<<<
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__868, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6102, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6102, __pyx_L1_error)

    /* "talib/stream.pyx":6101
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6103
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_volume->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6104
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__869, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6104, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6104, __pyx_L1_error)

    /* "talib/stream.pyx":6103
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6105
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6106
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)             # <<<<<<<<<<<<<<
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6106, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6106, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6105
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 */
  }

  /* "talib/stream.pyx":6107
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_volume_data = ((double *)__pyx_v_volume->data);

  /* "talib/stream.pyx":6108
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":6109
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6110
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__870, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6110, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6110, __pyx_L1_error)

    /* "talib/stream.pyx":6109
 *     volume_data = <double*>volume.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":6111
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6112
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__871, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6112, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6112, __pyx_L1_error)

    /* "talib/stream.pyx":6111
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 */
  }

  /* "talib/stream.pyx":6113
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6114
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MFI( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__872, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6114, __pyx_L1_error)

    /* "talib/stream.pyx":6113
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":6115
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MFI( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MFI", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6116
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_MFI( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MFI", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MFI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_volume_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6117
 *     outreal = NaN
 *     retCode = lib.TA_MFI( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MFI", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MFI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6118
 *     retCode = lib.TA_MFI( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MFI", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6056
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MFI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MFI(high, low, close, volume[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MFI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XDECREF((PyObject *)__pyx_v_volume);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6122
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIDPOINT( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIDPOINT(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_225MIDPOINT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_224MIDPOINT[] = " MIDPOINT(real[, timeperiod=?])\n\n    MidPoint over period (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_225MIDPOINT = {"MIDPOINT", (PyCFunction)__pyx_pw_5talib_6stream_225MIDPOINT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_224MIDPOINT};
static PyObject *__pyx_pw_5talib_6stream_225MIDPOINT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MIDPOINT (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MIDPOINT") < 0)) __PYX_ERR(0, 6122, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6122, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MIDPOINT", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6122, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MIDPOINT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6122, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_224MIDPOINT(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_224MIDPOINT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MIDPOINT", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6143
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6144
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__873, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6144, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6144, __pyx_L1_error)

    /* "talib/stream.pyx":6143
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6145
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6146
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__874, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6146, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6146, __pyx_L1_error)

    /* "talib/stream.pyx":6145
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6147
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6148
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6148, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6148, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6147
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6149
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6150
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MIDPOINT( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6151
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MIDPOINT( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MIDPOINT", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6152
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_MIDPOINT( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MIDPOINT", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MIDPOINT((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6153
 *     outreal = NaN
 *     retCode = lib.TA_MIDPOINT( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MIDPOINT", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MIDPOINT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6154
 *     retCode = lib.TA_MIDPOINT( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MIDPOINT", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6154, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6122
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIDPOINT( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIDPOINT(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MIDPOINT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6158
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIDPRICE( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIDPRICE(high, low[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_227MIDPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_226MIDPRICE[] = " MIDPRICE(high, low[, timeperiod=?])\n\n    Midpoint Price over period (Overlap Studies)\n\n    Inputs:\n        prices: ['high', 'low']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_227MIDPRICE = {"MIDPRICE", (PyCFunction)__pyx_pw_5talib_6stream_227MIDPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_226MIDPRICE};
static PyObject *__pyx_pw_5talib_6stream_227MIDPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MIDPRICE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_timeperiod,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("MIDPRICE", 0, 2, 3, 1); __PYX_ERR(0, 6158, __pyx_L3_error)
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MIDPRICE") < 0)) __PYX_ERR(0, 6158, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    if (values[2]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6158, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MIDPRICE", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6158, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MIDPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6158, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6158, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_226MIDPRICE(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_226MIDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MIDPRICE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);

  /* "talib/stream.pyx":6180
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6181
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__875, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6181, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6181, __pyx_L1_error)

    /* "talib/stream.pyx":6180
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6182
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6183
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__876, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6183, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6183, __pyx_L1_error)

    /* "talib/stream.pyx":6182
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6184
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6185
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6185, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6185, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6184
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":6186
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":6187
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6188
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__877, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6188, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6188, __pyx_L1_error)

    /* "talib/stream.pyx":6187
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6189
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6190
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__878, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6190, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6190, __pyx_L1_error)

    /* "talib/stream.pyx":6189
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6191
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6192
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6192, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6192, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6191
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":6193
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":6194
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":6195
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6196
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MIDPRICE( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__879, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6196, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6196, __pyx_L1_error)

    /* "talib/stream.pyx":6195
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":6197
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MIDPRICE( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MIDPRICE", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6198
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_MIDPRICE( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MIDPRICE", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MIDPRICE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6199
 *     outreal = NaN
 *     retCode = lib.TA_MIDPRICE( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MIDPRICE", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MIDPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6200
 *     retCode = lib.TA_MIDPRICE( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MIDPRICE", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6158
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIDPRICE( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIDPRICE(high, low[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MIDPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6204
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIN( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIN(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_229MIN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_228MIN[] = " MIN(real[, timeperiod=?])\n\n    Lowest value over a specified period (Math Operators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_229MIN = {"MIN", (PyCFunction)__pyx_pw_5talib_6stream_229MIN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_228MIN};
static PyObject *__pyx_pw_5talib_6stream_229MIN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MIN (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MIN") < 0)) __PYX_ERR(0, 6204, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6204, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MIN", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6204, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MIN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6204, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_228MIN(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_228MIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MIN", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6225
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6226
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__880, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6226, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6226, __pyx_L1_error)

    /* "talib/stream.pyx":6225
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6227
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6228
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__881, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6228, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6228, __pyx_L1_error)

    /* "talib/stream.pyx":6227
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6229
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6230
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6230, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6230, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6229
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6231
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6232
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MIN( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6233
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MIN( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MIN", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6234
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_MIN( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MIN", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MIN((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6235
 *     outreal = NaN
 *     retCode = lib.TA_MIN( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MIN", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MIN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6236
 *     retCode = lib.TA_MIN( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MIN", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6204
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIN( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIN(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MIN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6240
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MININDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MININDEX(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_231MININDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_230MININDEX[] = " MININDEX(real[, timeperiod=?])\n\n    Index of lowest value over a specified period (Math Operators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        integer (values are -100, 0 or 100)\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_231MININDEX = {"MININDEX", (PyCFunction)__pyx_pw_5talib_6stream_231MININDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_230MININDEX};
static PyObject *__pyx_pw_5talib_6stream_231MININDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MININDEX (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MININDEX") < 0)) __PYX_ERR(0, 6240, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6240, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MININDEX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6240, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MININDEX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6240, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_230MININDEX(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_230MININDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outinteger;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MININDEX", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6261
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6262
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__882, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6262, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6262, __pyx_L1_error)

    /* "talib/stream.pyx":6261
 *         int outnbelement
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6263
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6264
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__883, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6264, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6264, __pyx_L1_error)

    /* "talib/stream.pyx":6263
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6265
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6266
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6266, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6266, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6265
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6267
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outinteger = 0
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6268
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_MININDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6269
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outinteger = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MININDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_MININDEX", retCode)
 */
  __pyx_v_outinteger = 0;

  /* "talib/stream.pyx":6270
 *     length = real.shape[0]
 *     outinteger = 0
 *     retCode = lib.TA_MININDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outinteger )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MININDEX", retCode)
 *     return outinteger
 */
  __pyx_v_retCode = TA_MININDEX((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outinteger));

  /* "talib/stream.pyx":6271
 *     outinteger = 0
 *     retCode = lib.TA_MININDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_MININDEX", retCode)             # <<<<<<<<<<<<<<
 *     return outinteger
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MININDEX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6271, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6272
 *     retCode = lib.TA_MININDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outinteger )
 *     _ta_check_success("TA_MININDEX", retCode)
 *     return outinteger             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outinteger); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6240
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MININDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MININDEX(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MININDEX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6276
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINMAX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINMAX(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_233MINMAX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_232MINMAX[] = " MINMAX(real[, timeperiod=?])\n\n    Lowest and highest values over a specified period (Math Operators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        min\n        max\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_233MINMAX = {"MINMAX", (PyCFunction)__pyx_pw_5talib_6stream_233MINMAX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_232MINMAX};
static PyObject *__pyx_pw_5talib_6stream_233MINMAX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MINMAX (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MINMAX") < 0)) __PYX_ERR(0, 6276, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6276, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MINMAX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6276, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MINMAX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6276, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_232MINMAX(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_232MINMAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outmin;
  double __pyx_v_outmax;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("MINMAX", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6299
 *         double outmin
 *         double outmax
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6300
 *         double outmax
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__884, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6300, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6300, __pyx_L1_error)

    /* "talib/stream.pyx":6299
 *         double outmin
 *         double outmax
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6301
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6302
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__885, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6302, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6302, __pyx_L1_error)

    /* "talib/stream.pyx":6301
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6303
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6304
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6304, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6304, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6303
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6305
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outmin = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6306
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outmin = NaN
 *     outmax = NaN
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6307
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outmin = NaN             # <<<<<<<<<<<<<<
 *     outmax = NaN
 *     retCode = lib.TA_MINMAX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outmin , &outmax )
 */
  __pyx_v_outmin = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6308
 *     length = real.shape[0]
 *     outmin = NaN
 *     outmax = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MINMAX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outmin , &outmax )
 *     _ta_check_success("TA_MINMAX", retCode)
 */
  __pyx_v_outmax = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6309
 *     outmin = NaN
 *     outmax = NaN
 *     retCode = lib.TA_MINMAX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outmin , &outmax )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MINMAX", retCode)
 *     return outmin , outmax
 */
  __pyx_v_retCode = TA_MINMAX((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outmin), (&__pyx_v_outmax));

  /* "talib/stream.pyx":6310
 *     outmax = NaN
 *     retCode = lib.TA_MINMAX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outmin , &outmax )
 *     _ta_check_success("TA_MINMAX", retCode)             # <<<<<<<<<<<<<<
 *     return outmin , outmax
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MINMAX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6311
 *     retCode = lib.TA_MINMAX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outmin , &outmax )
 *     _ta_check_success("TA_MINMAX", retCode)
 *     return outmin , outmax             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outmin); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outmax); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6276
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINMAX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINMAX(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("talib.stream.MINMAX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6315
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINMAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINMAXINDEX(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_235MINMAXINDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_234MINMAXINDEX[] = " MINMAXINDEX(real[, timeperiod=?])\n\n    Indexes of lowest and highest values over a specified period (Math Operators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        minidx\n        maxidx\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_235MINMAXINDEX = {"MINMAXINDEX", (PyCFunction)__pyx_pw_5talib_6stream_235MINMAXINDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_234MINMAXINDEX};
static PyObject *__pyx_pw_5talib_6stream_235MINMAXINDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MINMAXINDEX (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MINMAXINDEX") < 0)) __PYX_ERR(0, 6315, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6315, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MINMAXINDEX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6315, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MINMAXINDEX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6315, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_234MINMAXINDEX(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_234MINMAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  int __pyx_v_outminidx;
  int __pyx_v_outmaxidx;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("MINMAXINDEX", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6338
 *         int outminidx
 *         int outmaxidx
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6339
 *         int outmaxidx
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__886, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6339, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6339, __pyx_L1_error)

    /* "talib/stream.pyx":6338
 *         int outminidx
 *         int outmaxidx
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6340
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6341
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__887, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6341, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6341, __pyx_L1_error)

    /* "talib/stream.pyx":6340
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6342
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6343
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6343, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6343, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6342
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6344
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outminidx = 0
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6345
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outminidx = 0
 *     outmaxidx = 0
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6346
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outminidx = 0             # <<<<<<<<<<<<<<
 *     outmaxidx = 0
 *     retCode = lib.TA_MINMAXINDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outminidx , &outmaxidx )
 */
  __pyx_v_outminidx = 0;

  /* "talib/stream.pyx":6347
 *     length = real.shape[0]
 *     outminidx = 0
 *     outmaxidx = 0             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MINMAXINDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outminidx , &outmaxidx )
 *     _ta_check_success("TA_MINMAXINDEX", retCode)
 */
  __pyx_v_outmaxidx = 0;

  /* "talib/stream.pyx":6348
 *     outminidx = 0
 *     outmaxidx = 0
 *     retCode = lib.TA_MINMAXINDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outminidx , &outmaxidx )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MINMAXINDEX", retCode)
 *     return outminidx , outmaxidx
 */
  __pyx_v_retCode = TA_MINMAXINDEX((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outminidx), (&__pyx_v_outmaxidx));

  /* "talib/stream.pyx":6349
 *     outmaxidx = 0
 *     retCode = lib.TA_MINMAXINDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outminidx , &outmaxidx )
 *     _ta_check_success("TA_MINMAXINDEX", retCode)             # <<<<<<<<<<<<<<
 *     return outminidx , outmaxidx
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MINMAXINDEX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6350
 *     retCode = lib.TA_MINMAXINDEX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outminidx , &outmaxidx )
 *     _ta_check_success("TA_MINMAXINDEX", retCode)
 *     return outminidx , outmaxidx             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = __Pyx_PyInt_From_int(__pyx_v_outminidx); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_outmaxidx); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 6350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6315
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINMAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINMAXINDEX(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("talib.stream.MINMAXINDEX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6354
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINUS_DI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINUS_DI(high, low, close[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_237MINUS_DI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_236MINUS_DI[] = " MINUS_DI(high, low, close[, timeperiod=?])\n\n    Minus Directional Indicator (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_237MINUS_DI = {"MINUS_DI", (PyCFunction)__pyx_pw_5talib_6stream_237MINUS_DI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_236MINUS_DI};
static PyObject *__pyx_pw_5talib_6stream_237MINUS_DI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MINUS_DI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_timeperiod,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("MINUS_DI", 0, 3, 4, 1); __PYX_ERR(0, 6354, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("MINUS_DI", 0, 3, 4, 2); __PYX_ERR(0, 6354, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MINUS_DI") < 0)) __PYX_ERR(0, 6354, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6354, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MINUS_DI", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6354, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MINUS_DI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6354, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6354, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 6354, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_236MINUS_DI(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_236MINUS_DI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MINUS_DI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":6377
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6378
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__888, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6378, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6378, __pyx_L1_error)

    /* "talib/stream.pyx":6377
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6379
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6380
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__889, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6380, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6380, __pyx_L1_error)

    /* "talib/stream.pyx":6379
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6381
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6382
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6382, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6382, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6381
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":6383
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":6384
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6385
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__890, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6385, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6385, __pyx_L1_error)

    /* "talib/stream.pyx":6384
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6386
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6387
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__891, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6387, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6387, __pyx_L1_error)

    /* "talib/stream.pyx":6386
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6388
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6389
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6389, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6389, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6388
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":6390
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":6391
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6392
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__892, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6392, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6392, __pyx_L1_error)

    /* "talib/stream.pyx":6391
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6393
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6394
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__893, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6394, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6394, __pyx_L1_error)

    /* "talib/stream.pyx":6393
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6395
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6396
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6396, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6396, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6395
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":6397
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":6398
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":6399
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6400
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__894, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6400, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6400, __pyx_L1_error)

    /* "talib/stream.pyx":6399
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":6401
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6402
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MINUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__895, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6402, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6402, __pyx_L1_error)

    /* "talib/stream.pyx":6401
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":6403
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MINUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MINUS_DI", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6404
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_MINUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MINUS_DI", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MINUS_DI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6405
 *     outreal = NaN
 *     retCode = lib.TA_MINUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MINUS_DI", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MINUS_DI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6406
 *     retCode = lib.TA_MINUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MINUS_DI", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6406, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6354
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINUS_DI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINUS_DI(high, low, close[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MINUS_DI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6410
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINUS_DM(high, low[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_239MINUS_DM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_238MINUS_DM[] = " MINUS_DM(high, low[, timeperiod=?])\n\n    Minus Directional Movement (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_239MINUS_DM = {"MINUS_DM", (PyCFunction)__pyx_pw_5talib_6stream_239MINUS_DM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_238MINUS_DM};
static PyObject *__pyx_pw_5talib_6stream_239MINUS_DM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MINUS_DM (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_timeperiod,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("MINUS_DM", 0, 2, 3, 1); __PYX_ERR(0, 6410, __pyx_L3_error)
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MINUS_DM") < 0)) __PYX_ERR(0, 6410, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    if (values[2]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6410, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MINUS_DM", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6410, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MINUS_DM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6410, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6410, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_238MINUS_DM(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_238MINUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MINUS_DM", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);

  /* "talib/stream.pyx":6432
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6433
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__896, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6433, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6433, __pyx_L1_error)

    /* "talib/stream.pyx":6432
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6434
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6435
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__897, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6435, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6435, __pyx_L1_error)

    /* "talib/stream.pyx":6434
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6436
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6437
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6437, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6437, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6436
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":6438
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":6439
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6440
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__898, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6440, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6440, __pyx_L1_error)

    /* "talib/stream.pyx":6439
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6441
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6442
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__899, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6442, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6442, __pyx_L1_error)

    /* "talib/stream.pyx":6441
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6443
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6444
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6444, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6444, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6443
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":6445
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":6446
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":6447
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6448
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MINUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__900, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6448, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6448, __pyx_L1_error)

    /* "talib/stream.pyx":6447
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":6449
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MINUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MINUS_DM", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6450
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_MINUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MINUS_DM", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MINUS_DM((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6451
 *     outreal = NaN
 *     retCode = lib.TA_MINUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MINUS_DM", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MINUS_DM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6451, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6452
 *     retCode = lib.TA_MINUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MINUS_DM", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6452, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6410
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINUS_DM(high, low[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MINUS_DM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6456
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MOM( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MOM(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_241MOM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_240MOM[] = " MOM(real[, timeperiod=?])\n\n    Momentum (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 10\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_241MOM = {"MOM", (PyCFunction)__pyx_pw_5talib_6stream_241MOM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_240MOM};
static PyObject *__pyx_pw_5talib_6stream_241MOM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MOM (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MOM") < 0)) __PYX_ERR(0, 6456, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6456, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MOM", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6456, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MOM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6456, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_240MOM(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_240MOM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MOM", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6477
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6478
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__901, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6478, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6478, __pyx_L1_error)

    /* "talib/stream.pyx":6477
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6479
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6480
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__902, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6480, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6480, __pyx_L1_error)

    /* "talib/stream.pyx":6479
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6481
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6482
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6482, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6482, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6481
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6483
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6484
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MOM( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6485
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MOM( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MOM", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6486
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_MOM( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MOM", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MOM((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6487
 *     outreal = NaN
 *     retCode = lib.TA_MOM( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MOM", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MOM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6488
 *     retCode = lib.TA_MOM( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MOM", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6488, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6456
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MOM( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MOM(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MOM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6492
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MULT( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ MULT(real0, real1)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_243MULT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_242MULT[] = " MULT(real0, real1)\n\n    Vector Arithmetic Mult (Math Operators)\n\n    Inputs:\n        real0: (any ndarray)\n        real1: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_243MULT = {"MULT", (PyCFunction)__pyx_pw_5talib_6stream_243MULT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_242MULT};
static PyObject *__pyx_pw_5talib_6stream_243MULT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real0 = 0;
  PyArrayObject *__pyx_v_real1 = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("MULT (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real0,&__pyx_n_s_real1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("MULT", 1, 2, 2, 1); __PYX_ERR(0, 6492, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MULT") < 0)) __PYX_ERR(0, 6492, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_real0 = ((PyArrayObject *)values[0]);
    __pyx_v_real1 = ((PyArrayObject *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("MULT", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6492, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.MULT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real0), __pyx_ptype_5numpy_ndarray, 0, "real0", 0))) __PYX_ERR(0, 6492, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 6492, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_242MULT(__pyx_self, __pyx_v_real0, __pyx_v_real1);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_242MULT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real0_data;
  double *__pyx_v_real1_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("MULT", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real0);
  __Pyx_INCREF((PyObject *)__pyx_v_real1);

  /* "talib/stream.pyx":6513
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real0) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6514
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__903, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6514, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6514, __pyx_L1_error)

    /* "talib/stream.pyx":6513
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6515
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real0->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6516
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__904, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6516, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6516, __pyx_L1_error)

    /* "talib/stream.pyx":6515
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6517
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6518
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)             # <<<<<<<<<<<<<<
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6518, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6518, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6517
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  }

  /* "talib/stream.pyx":6519
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 */
  __pyx_v_real0_data = ((double *)__pyx_v_real0->data);

  /* "talib/stream.pyx":6520
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real1) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6521
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__905, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6521, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6521, __pyx_L1_error)

    /* "talib/stream.pyx":6520
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6522
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real1->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6523
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__906, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6523, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6523, __pyx_L1_error)

    /* "talib/stream.pyx":6522
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6524
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6525
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)             # <<<<<<<<<<<<<<
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6525, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6525, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6524
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  }

  /* "talib/stream.pyx":6526
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data             # <<<<<<<<<<<<<<
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 */
  __pyx_v_real1_data = ((double *)__pyx_v_real1->data);

  /* "talib/stream.pyx":6527
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]             # <<<<<<<<<<<<<<
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_real0->dimensions[0]);

  /* "talib/stream.pyx":6528
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6529
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MULT( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__907, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6529, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6529, __pyx_L1_error)

    /* "talib/stream.pyx":6528
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":6530
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_MULT( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MULT", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6531
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_MULT( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_MULT", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_MULT((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real0_data, __pyx_v_real1_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6532
 *     outreal = NaN
 *     retCode = lib.TA_MULT( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MULT", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_MULT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6532, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6533
 *     retCode = lib.TA_MULT( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_MULT", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6492
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MULT( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ MULT(real0, real1)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.MULT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real0);
  __Pyx_XDECREF((PyObject *)__pyx_v_real1);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6537
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def NATR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ NATR(high, low, close[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_245NATR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_244NATR[] = " NATR(high, low, close[, timeperiod=?])\n\n    Normalized Average True Range (Volatility Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_245NATR = {"NATR", (PyCFunction)__pyx_pw_5talib_6stream_245NATR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_244NATR};
static PyObject *__pyx_pw_5talib_6stream_245NATR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("NATR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_timeperiod,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("NATR", 0, 3, 4, 1); __PYX_ERR(0, 6537, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("NATR", 0, 3, 4, 2); __PYX_ERR(0, 6537, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "NATR") < 0)) __PYX_ERR(0, 6537, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6537, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("NATR", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6537, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.NATR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6537, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6537, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 6537, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_244NATR(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_244NATR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("NATR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":6560
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6561
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__908, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6561, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6561, __pyx_L1_error)

    /* "talib/stream.pyx":6560
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6562
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6563
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__909, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6563, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6563, __pyx_L1_error)

    /* "talib/stream.pyx":6562
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6564
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6565
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6565, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6565, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6564
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":6566
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":6567
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6568
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__910, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6568, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6568, __pyx_L1_error)

    /* "talib/stream.pyx":6567
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6569
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6570
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__911, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6570, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6570, __pyx_L1_error)

    /* "talib/stream.pyx":6569
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6571
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6572
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6572, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6572, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6571
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":6573
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":6574
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6575
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__912, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6575, __pyx_L1_error)

    /* "talib/stream.pyx":6574
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6576
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6577
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__913, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6577, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6577, __pyx_L1_error)

    /* "talib/stream.pyx":6576
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6578
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6579
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6579, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6579, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6578
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":6580
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":6581
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":6582
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6583
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__914, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6583, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6583, __pyx_L1_error)

    /* "talib/stream.pyx":6582
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":6584
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6585
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_NATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__915, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6585, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6585, __pyx_L1_error)

    /* "talib/stream.pyx":6584
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":6586
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_NATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_NATR", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6587
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_NATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_NATR", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_NATR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6588
 *     outreal = NaN
 *     retCode = lib.TA_NATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_NATR", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_NATR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6589
 *     retCode = lib.TA_NATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_NATR", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6589, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6537
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def NATR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ NATR(high, low, close[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.NATR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6593
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def OBV( np.ndarray real not None , np.ndarray volume not None ):             # <<<<<<<<<<<<<<
 *     """ OBV(real, volume)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_247OBV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_246OBV[] = " OBV(real, volume)\n\n    On Balance Volume (Volume Indicators)\n\n    Inputs:\n        real: (any ndarray)\n        prices: ['volume']\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_247OBV = {"OBV", (PyCFunction)__pyx_pw_5talib_6stream_247OBV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_246OBV};
static PyObject *__pyx_pw_5talib_6stream_247OBV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  PyArrayObject *__pyx_v_volume = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("OBV (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_volume,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_volume)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("OBV", 1, 2, 2, 1); __PYX_ERR(0, 6593, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "OBV") < 0)) __PYX_ERR(0, 6593, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    __pyx_v_volume = ((PyArrayObject *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("OBV", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6593, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.OBV", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6593, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(0, 6593, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_246OBV(__pyx_self, __pyx_v_real, __pyx_v_volume);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_246OBV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, PyArrayObject *__pyx_v_volume) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  double *__pyx_v_volume_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("OBV", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);
  __Pyx_INCREF((PyObject *)__pyx_v_volume);

  /* "talib/stream.pyx":6614
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6615
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__916, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6615, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6615, __pyx_L1_error)

    /* "talib/stream.pyx":6614
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6616
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6617
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__917, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6617, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6617, __pyx_L1_error)

    /* "talib/stream.pyx":6616
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6618
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6619
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6619, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6619, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6618
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6620
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6621
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_volume) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6622
 *     real_data = <double*>real.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")             # <<<<<<<<<<<<<<
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__918, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6622, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6622, __pyx_L1_error)

    /* "talib/stream.pyx":6621
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6623
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_volume->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6624
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__919, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6624, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6624, __pyx_L1_error)

    /* "talib/stream.pyx":6623
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6625
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6626
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)             # <<<<<<<<<<<<<<
 *     volume_data = <double*>volume.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6626, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6626, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6625
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 */
  }

  /* "talib/stream.pyx":6627
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     if length != volume.shape[0]:
 */
  __pyx_v_volume_data = ((double *)__pyx_v_volume->data);

  /* "talib/stream.pyx":6628
 *         volume = PyArray_GETCONTIGUOUS(volume)
 *     volume_data = <double*>volume.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6629
 *     volume_data = <double*>volume.data
 *     length = real.shape[0]
 *     if length != volume.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6630
 *     length = real.shape[0]
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_OBV( length - 1 , length - 1 , real_data , volume_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__920, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6630, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6630, __pyx_L1_error)

    /* "talib/stream.pyx":6629
 *     volume_data = <double*>volume.data
 *     length = real.shape[0]
 *     if length != volume.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":6631
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_OBV( length - 1 , length - 1 , real_data , volume_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_OBV", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6632
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_OBV( length - 1 , length - 1 , real_data , volume_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_OBV", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_OBV((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_volume_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6633
 *     outreal = NaN
 *     retCode = lib.TA_OBV( length - 1 , length - 1 , real_data , volume_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_OBV", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_OBV, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6634
 *     retCode = lib.TA_OBV( length - 1 , length - 1 , real_data , volume_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_OBV", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6634, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6593
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def OBV( np.ndarray real not None , np.ndarray volume not None ):             # <<<<<<<<<<<<<<
 *     """ OBV(real, volume)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.OBV", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XDECREF((PyObject *)__pyx_v_volume);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6638
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PLUS_DI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ PLUS_DI(high, low, close[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_249PLUS_DI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_248PLUS_DI[] = " PLUS_DI(high, low, close[, timeperiod=?])\n\n    Plus Directional Indicator (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_249PLUS_DI = {"PLUS_DI", (PyCFunction)__pyx_pw_5talib_6stream_249PLUS_DI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_248PLUS_DI};
static PyObject *__pyx_pw_5talib_6stream_249PLUS_DI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("PLUS_DI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_timeperiod,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("PLUS_DI", 0, 3, 4, 1); __PYX_ERR(0, 6638, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("PLUS_DI", 0, 3, 4, 2); __PYX_ERR(0, 6638, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "PLUS_DI") < 0)) __PYX_ERR(0, 6638, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6638, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("PLUS_DI", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6638, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.PLUS_DI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6638, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6638, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 6638, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_248PLUS_DI(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_248PLUS_DI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("PLUS_DI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":6661
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6662
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__921, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6662, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6662, __pyx_L1_error)

    /* "talib/stream.pyx":6661
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6663
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6664
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__922, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6664, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6664, __pyx_L1_error)

    /* "talib/stream.pyx":6663
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6665
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6666
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6666, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6666, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6665
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":6667
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":6668
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6669
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__923, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6669, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6669, __pyx_L1_error)

    /* "talib/stream.pyx":6668
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6670
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6671
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__924, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6671, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6671, __pyx_L1_error)

    /* "talib/stream.pyx":6670
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6672
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6673
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6673, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6673, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6672
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":6674
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":6675
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6676
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__925, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6676, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6676, __pyx_L1_error)

    /* "talib/stream.pyx":6675
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6677
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6678
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__926, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6678, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6678, __pyx_L1_error)

    /* "talib/stream.pyx":6677
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6679
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6680
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6680, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6680, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6679
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":6681
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":6682
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":6683
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6684
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__927, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6684, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6684, __pyx_L1_error)

    /* "talib/stream.pyx":6683
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":6685
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6686
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_PLUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__928, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6686, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6686, __pyx_L1_error)

    /* "talib/stream.pyx":6685
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":6687
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_PLUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_PLUS_DI", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6688
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_PLUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_PLUS_DI", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_PLUS_DI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6689
 *     outreal = NaN
 *     retCode = lib.TA_PLUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_PLUS_DI", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_PLUS_DI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6690
 *     retCode = lib.TA_PLUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_PLUS_DI", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6690, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6638
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PLUS_DI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ PLUS_DI(high, low, close[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.PLUS_DI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6694
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PLUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ PLUS_DM(high, low[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_251PLUS_DM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_250PLUS_DM[] = " PLUS_DM(high, low[, timeperiod=?])\n\n    Plus Directional Movement (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_251PLUS_DM = {"PLUS_DM", (PyCFunction)__pyx_pw_5talib_6stream_251PLUS_DM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_250PLUS_DM};
static PyObject *__pyx_pw_5talib_6stream_251PLUS_DM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("PLUS_DM (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_timeperiod,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("PLUS_DM", 0, 2, 3, 1); __PYX_ERR(0, 6694, __pyx_L3_error)
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "PLUS_DM") < 0)) __PYX_ERR(0, 6694, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    if (values[2]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6694, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("PLUS_DM", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6694, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.PLUS_DM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6694, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6694, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_250PLUS_DM(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_250PLUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("PLUS_DM", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);

  /* "talib/stream.pyx":6716
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6717
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__929, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6717, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6717, __pyx_L1_error)

    /* "talib/stream.pyx":6716
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6718
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6719
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__930, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6719, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6719, __pyx_L1_error)

    /* "talib/stream.pyx":6718
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6720
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6721
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6721, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6721, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6720
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":6722
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":6723
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6724
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__931, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6724, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6724, __pyx_L1_error)

    /* "talib/stream.pyx":6723
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6725
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6726
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__932, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6726, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6726, __pyx_L1_error)

    /* "talib/stream.pyx":6725
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6727
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6728
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6728, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6728, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6727
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":6729
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":6730
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":6731
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6732
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_PLUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__933, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6732, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6732, __pyx_L1_error)

    /* "talib/stream.pyx":6731
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":6733
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_PLUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_PLUS_DM", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6734
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_PLUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_PLUS_DM", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_PLUS_DM((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6735
 *     outreal = NaN
 *     retCode = lib.TA_PLUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_PLUS_DM", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_PLUS_DM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6735, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6736
 *     retCode = lib.TA_PLUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_PLUS_DM", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6736, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6694
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PLUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ PLUS_DM(high, low[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.PLUS_DM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6740
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PPO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ PPO(real[, fastperiod=?, slowperiod=?, matype=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_253PPO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_252PPO[] = " PPO(real[, fastperiod=?, slowperiod=?, matype=?])\n\n    Percentage Price Oscillator (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        fastperiod: 12\n        slowperiod: 26\n        matype: 0 (Simple Moving Average)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_253PPO = {"PPO", (PyCFunction)__pyx_pw_5talib_6stream_253PPO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_252PPO};
static PyObject *__pyx_pw_5talib_6stream_253PPO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_fastperiod;
  int __pyx_v_slowperiod;
  int __pyx_v_matype;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("PPO (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_fastperiod,&__pyx_n_s_slowperiod,&__pyx_n_s_matype,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastperiod);
          if (value) { values[1] = value; kw_args--; }
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_slowperiod);
          if (value) { values[2] = value; kw_args--; }
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_matype);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "PPO") < 0)) __PYX_ERR(0, 6740, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_fastperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_fastperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6740, __pyx_L3_error)
    } else {
      __pyx_v_fastperiod = ((int)-2147483648);
    }
    if (values[2]) {
      __pyx_v_slowperiod = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_slowperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6740, __pyx_L3_error)
    } else {
      __pyx_v_slowperiod = ((int)-2147483648);
    }
    if (values[3]) {
      __pyx_v_matype = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_matype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6740, __pyx_L3_error)
    } else {
      __pyx_v_matype = ((int)0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("PPO", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6740, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.PPO", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6740, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_252PPO(__pyx_self, __pyx_v_real, __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_252PPO(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_fastperiod, int __pyx_v_slowperiod, int __pyx_v_matype) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("PPO", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6763
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6764
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__934, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6764, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6764, __pyx_L1_error)

    /* "talib/stream.pyx":6763
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6765
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6766
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__935, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6766, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6766, __pyx_L1_error)

    /* "talib/stream.pyx":6765
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6767
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6768
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6768, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6768, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6767
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6769
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6770
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_PPO( length - 1 , length - 1 , real_data , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6771
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_PPO( length - 1 , length - 1 , real_data , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_PPO", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6772
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_PPO( length - 1 , length - 1 , real_data , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_PPO", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_PPO((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6773
 *     outreal = NaN
 *     retCode = lib.TA_PPO( length - 1 , length - 1 , real_data , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_PPO", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_PPO, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6774
 *     retCode = lib.TA_PPO( length - 1 , length - 1 , real_data , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_PPO", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6774, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6740
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PPO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ PPO(real[, fastperiod=?, slowperiod=?, matype=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.PPO", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6778
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROC( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROC(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_255ROC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_254ROC[] = " ROC(real[, timeperiod=?])\n\n    Rate of change : ((real/prevPrice)-1)*100 (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 10\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_255ROC = {"ROC", (PyCFunction)__pyx_pw_5talib_6stream_255ROC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_254ROC};
static PyObject *__pyx_pw_5talib_6stream_255ROC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ROC (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ROC") < 0)) __PYX_ERR(0, 6778, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6778, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ROC", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6778, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.ROC", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6778, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_254ROC(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_254ROC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ROC", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6799
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6800
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__936, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6800, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6800, __pyx_L1_error)

    /* "talib/stream.pyx":6799
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6801
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6802
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__937, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6802, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6802, __pyx_L1_error)

    /* "talib/stream.pyx":6801
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6803
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6804
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6804, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6804, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6803
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6805
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6806
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ROC( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6807
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ROC( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROC", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6808
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_ROC( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ROC", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ROC((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6809
 *     outreal = NaN
 *     retCode = lib.TA_ROC( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROC", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ROC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6809, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6810
 *     retCode = lib.TA_ROC( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROC", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6778
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROC( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROC(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ROC", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6814
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCP( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCP(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_257ROCP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_256ROCP[] = " ROCP(real[, timeperiod=?])\n\n    Rate of change Percentage: (real-prevPrice)/prevPrice (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 10\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_257ROCP = {"ROCP", (PyCFunction)__pyx_pw_5talib_6stream_257ROCP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_256ROCP};
static PyObject *__pyx_pw_5talib_6stream_257ROCP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ROCP (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ROCP") < 0)) __PYX_ERR(0, 6814, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6814, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ROCP", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6814, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.ROCP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6814, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_256ROCP(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_256ROCP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ROCP", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6835
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6836
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__938, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6836, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6836, __pyx_L1_error)

    /* "talib/stream.pyx":6835
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6837
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6838
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__939, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6838, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6838, __pyx_L1_error)

    /* "talib/stream.pyx":6837
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6839
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6840
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6840, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6840, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6839
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6841
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6842
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ROCP( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6843
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ROCP( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROCP", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6844
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_ROCP( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ROCP", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ROCP((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6845
 *     outreal = NaN
 *     retCode = lib.TA_ROCP( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROCP", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ROCP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6845, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6846
 *     retCode = lib.TA_ROCP( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROCP", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6846, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6814
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCP( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCP(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ROCP", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6850
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCR( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCR(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_259ROCR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_258ROCR[] = " ROCR(real[, timeperiod=?])\n\n    Rate of change ratio: (real/prevPrice) (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 10\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_259ROCR = {"ROCR", (PyCFunction)__pyx_pw_5talib_6stream_259ROCR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_258ROCR};
static PyObject *__pyx_pw_5talib_6stream_259ROCR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ROCR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ROCR") < 0)) __PYX_ERR(0, 6850, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6850, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ROCR", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6850, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.ROCR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6850, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_258ROCR(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_258ROCR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ROCR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6871
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6872
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__940, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6872, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6872, __pyx_L1_error)

    /* "talib/stream.pyx":6871
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6873
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6874
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__941, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6874, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6874, __pyx_L1_error)

    /* "talib/stream.pyx":6873
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6875
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6876
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6876, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6876, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6875
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6877
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6878
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ROCR( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6879
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ROCR( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROCR", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6880
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_ROCR( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ROCR", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ROCR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6881
 *     outreal = NaN
 *     retCode = lib.TA_ROCR( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROCR", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ROCR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6881, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6882
 *     retCode = lib.TA_ROCR( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROCR", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6850
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCR( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCR(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ROCR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6886
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCR100( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCR100(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_261ROCR100(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_260ROCR100[] = " ROCR100(real[, timeperiod=?])\n\n    Rate of change ratio 100 scale: (real/prevPrice)*100 (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 10\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_261ROCR100 = {"ROCR100", (PyCFunction)__pyx_pw_5talib_6stream_261ROCR100, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_260ROCR100};
static PyObject *__pyx_pw_5talib_6stream_261ROCR100(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ROCR100 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ROCR100") < 0)) __PYX_ERR(0, 6886, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6886, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ROCR100", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6886, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.ROCR100", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6886, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_260ROCR100(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_260ROCR100(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ROCR100", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6907
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6908
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__942, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6908, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6908, __pyx_L1_error)

    /* "talib/stream.pyx":6907
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6909
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6910
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__943, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6910, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6910, __pyx_L1_error)

    /* "talib/stream.pyx":6909
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6911
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6912
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6912, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6912, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6911
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6913
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6914
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ROCR100( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6915
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ROCR100( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROCR100", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6916
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_ROCR100( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ROCR100", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ROCR100((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6917
 *     outreal = NaN
 *     retCode = lib.TA_ROCR100( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROCR100", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ROCR100, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6918
 *     retCode = lib.TA_ROCR100( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ROCR100", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6886
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCR100( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCR100(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ROCR100", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6922
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def RSI( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ RSI(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_263RSI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_262RSI[] = " RSI(real[, timeperiod=?])\n\n    Relative Strength Index (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_263RSI = {"RSI", (PyCFunction)__pyx_pw_5talib_6stream_263RSI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_262RSI};
static PyObject *__pyx_pw_5talib_6stream_263RSI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("RSI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "RSI") < 0)) __PYX_ERR(0, 6922, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 6922, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("RSI", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6922, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.RSI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 6922, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_262RSI(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_262RSI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("RSI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":6943
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6944
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__944, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6944, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6944, __pyx_L1_error)

    /* "talib/stream.pyx":6943
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6945
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6946
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__945, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6946, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6946, __pyx_L1_error)

    /* "talib/stream.pyx":6945
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6947
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6948
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6948, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6948, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6947
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":6949
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":6950
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_RSI( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":6951
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_RSI( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_RSI", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6952
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_RSI( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_RSI", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_RSI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":6953
 *     outreal = NaN
 *     retCode = lib.TA_RSI( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_RSI", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_RSI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6953, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":6954
 *     retCode = lib.TA_RSI( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_RSI", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6922
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def RSI( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ RSI(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.RSI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":6958
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SAR( np.ndarray high not None , np.ndarray low not None , double acceleration=0.02 , double maximum=0.2 ):             # <<<<<<<<<<<<<<
 *     """ SAR(high, low[, acceleration=?, maximum=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_265SAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_264SAR[] = " SAR(high, low[, acceleration=?, maximum=?])\n\n    Parabolic SAR (Overlap Studies)\n\n    Inputs:\n        prices: ['high', 'low']\n    Parameters:\n        acceleration: 0.02\n        maximum: 0.2\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_265SAR = {"SAR", (PyCFunction)__pyx_pw_5talib_6stream_265SAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_264SAR};
static PyObject *__pyx_pw_5talib_6stream_265SAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  double __pyx_v_acceleration;
  double __pyx_v_maximum;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SAR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_acceleration,&__pyx_n_s_maximum,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("SAR", 0, 2, 4, 1); __PYX_ERR(0, 6958, __pyx_L3_error)
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_acceleration);
          if (value) { values[2] = value; kw_args--; }
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_maximum);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "SAR") < 0)) __PYX_ERR(0, 6958, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    if (values[2]) {
      __pyx_v_acceleration = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_acceleration == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6958, __pyx_L3_error)
    } else {
      __pyx_v_acceleration = ((double)0.02);
    }
    if (values[3]) {
      __pyx_v_maximum = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_maximum == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 6958, __pyx_L3_error)
    } else {
      __pyx_v_maximum = ((double)0.2);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("SAR", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 6958, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.SAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6958, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6958, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_264SAR(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_acceleration, __pyx_v_maximum);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_264SAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, double __pyx_v_acceleration, double __pyx_v_maximum) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("SAR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);

  /* "talib/stream.pyx":6981
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6982
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__946, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6982, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6982, __pyx_L1_error)

    /* "talib/stream.pyx":6981
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6983
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6984
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__947, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6984, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6984, __pyx_L1_error)

    /* "talib/stream.pyx":6983
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6985
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6986
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6986, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6986, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6985
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":6987
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":6988
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6989
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__948, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6989, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6989, __pyx_L1_error)

    /* "talib/stream.pyx":6988
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":6990
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6991
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__949, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6991, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6991, __pyx_L1_error)

    /* "talib/stream.pyx":6990
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":6992
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6993
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6993, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6993, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":6992
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":6994
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":6995
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":6996
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":6997
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_SAR( length - 1 , length - 1 , high_data , low_data , acceleration , maximum , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__950, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6997, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 6997, __pyx_L1_error)

    /* "talib/stream.pyx":6996
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":6998
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_SAR( length - 1 , length - 1 , high_data , low_data , acceleration , maximum , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SAR", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":6999
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_SAR( length - 1 , length - 1 , high_data , low_data , acceleration , maximum , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_SAR", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_SAR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_acceleration, __pyx_v_maximum, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7000
 *     outreal = NaN
 *     retCode = lib.TA_SAR( length - 1 , length - 1 , high_data , low_data , acceleration , maximum , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SAR", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_SAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7000, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7001
 *     retCode = lib.TA_SAR( length - 1 , length - 1 , high_data , low_data , acceleration , maximum , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SAR", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":6958
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SAR( np.ndarray high not None , np.ndarray low not None , double acceleration=0.02 , double maximum=0.2 ):             # <<<<<<<<<<<<<<
 *     """ SAR(high, low[, acceleration=?, maximum=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.SAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7005
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SAREXT( np.ndarray high not None , np.ndarray low not None , double startvalue=-4e37 , double offsetonreverse=-4e37 , double accelerationinitlong=-4e37 , double accelerationlong=-4e37 , double accelerationmaxlong=-4e37 , double accelerationinitshort=-4e37 , double accelerationshort=-4e37 , double accelerationmaxshort=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ SAREXT(high, low[, startvalue=?, offsetonreverse=?, accelerationinitlong=?, accelerationlong=?, accelerationmaxlong=?, accelerationinitshort=?, accelerationshort=?, accelerationmaxshort=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_267SAREXT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_266SAREXT[] = " SAREXT(high, low[, startvalue=?, offsetonreverse=?, accelerationinitlong=?, accelerationlong=?, accelerationmaxlong=?, accelerationinitshort=?, accelerationshort=?, accelerationmaxshort=?])\n\n    Parabolic SAR - Extended (Overlap Studies)\n\n    Inputs:\n        prices: ['high', 'low']\n    Parameters:\n        startvalue: 0\n        offsetonreverse: 0\n        accelerationinitlong: 0.02\n        accelerationlong: 0.02\n        accelerationmaxlong: 0.2\n        accelerationinitshort: 0.02\n        accelerationshort: 0.02\n        accelerationmaxshort: 0.2\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_267SAREXT = {"SAREXT", (PyCFunction)__pyx_pw_5talib_6stream_267SAREXT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_266SAREXT};
static PyObject *__pyx_pw_5talib_6stream_267SAREXT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  double __pyx_v_startvalue;
  double __pyx_v_offsetonreverse;
  double __pyx_v_accelerationinitlong;
  double __pyx_v_accelerationlong;
  double __pyx_v_accelerationmaxlong;
  double __pyx_v_accelerationinitshort;
  double __pyx_v_accelerationshort;
  double __pyx_v_accelerationmaxshort;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SAREXT (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_startvalue,&__pyx_n_s_offsetonreverse,&__pyx_n_s_accelerationinitlong,&__pyx_n_s_accelerationlong,&__pyx_n_s_accelerationmaxlong,&__pyx_n_s_accelerationinitshort,&__pyx_n_s_accelerationshort,&__pyx_n_s_accelerationmaxshort,0};
    PyObject* values[10] = {0,0,0,0,0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
        case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("SAREXT", 0, 2, 10, 1); __PYX_ERR(0, 7005, __pyx_L3_error)
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_startvalue);
          if (value) { values[2] = value; kw_args--; }
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_offsetonreverse);
          if (value) { values[3] = value; kw_args--; }
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_accelerationinitlong);
          if (value) { values[4] = value; kw_args--; }
        }
        case  5:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_accelerationlong);
          if (value) { values[5] = value; kw_args--; }
        }
        case  6:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_accelerationmaxlong);
          if (value) { values[6] = value; kw_args--; }
        }
        case  7:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_accelerationinitshort);
          if (value) { values[7] = value; kw_args--; }
        }
        case  8:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_accelerationshort);
          if (value) { values[8] = value; kw_args--; }
        }
        case  9:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_accelerationmaxshort);
          if (value) { values[9] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "SAREXT") < 0)) __PYX_ERR(0, 7005, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case 10: values[9] = PyTuple_GET_ITEM(__pyx_args, 9);
        case  9: values[8] = PyTuple_GET_ITEM(__pyx_args, 8);
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    if (values[2]) {
      __pyx_v_startvalue = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_startvalue == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7005, __pyx_L3_error)
    } else {
      __pyx_v_startvalue = ((double)-4e37);
    }
    if (values[3]) {
      __pyx_v_offsetonreverse = __pyx_PyFloat_AsDouble(values[3]); if (unlikely((__pyx_v_offsetonreverse == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7005, __pyx_L3_error)
    } else {
      __pyx_v_offsetonreverse = ((double)-4e37);
    }
    if (values[4]) {
      __pyx_v_accelerationinitlong = __pyx_PyFloat_AsDouble(values[4]); if (unlikely((__pyx_v_accelerationinitlong == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7005, __pyx_L3_error)
    } else {
      __pyx_v_accelerationinitlong = ((double)-4e37);
    }
    if (values[5]) {
      __pyx_v_accelerationlong = __pyx_PyFloat_AsDouble(values[5]); if (unlikely((__pyx_v_accelerationlong == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7005, __pyx_L3_error)
    } else {
      __pyx_v_accelerationlong = ((double)-4e37);
    }
    if (values[6]) {
      __pyx_v_accelerationmaxlong = __pyx_PyFloat_AsDouble(values[6]); if (unlikely((__pyx_v_accelerationmaxlong == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7005, __pyx_L3_error)
    } else {
      __pyx_v_accelerationmaxlong = ((double)-4e37);
    }
    if (values[7]) {
      __pyx_v_accelerationinitshort = __pyx_PyFloat_AsDouble(values[7]); if (unlikely((__pyx_v_accelerationinitshort == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7005, __pyx_L3_error)
    } else {
      __pyx_v_accelerationinitshort = ((double)-4e37);
    }
    if (values[8]) {
      __pyx_v_accelerationshort = __pyx_PyFloat_AsDouble(values[8]); if (unlikely((__pyx_v_accelerationshort == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7005, __pyx_L3_error)
    } else {
      __pyx_v_accelerationshort = ((double)-4e37);
    }
    if (values[9]) {
      __pyx_v_accelerationmaxshort = __pyx_PyFloat_AsDouble(values[9]); if (unlikely((__pyx_v_accelerationmaxshort == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7005, __pyx_L3_error)
    } else {
      __pyx_v_accelerationmaxshort = ((double)-4e37);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("SAREXT", 0, 2, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7005, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.SAREXT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 7005, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 7005, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_266SAREXT(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_startvalue, __pyx_v_offsetonreverse, __pyx_v_accelerationinitlong, __pyx_v_accelerationlong, __pyx_v_accelerationmaxlong, __pyx_v_accelerationinitshort, __pyx_v_accelerationshort, __pyx_v_accelerationmaxshort);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_266SAREXT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, double __pyx_v_startvalue, double __pyx_v_offsetonreverse, double __pyx_v_accelerationinitlong, double __pyx_v_accelerationlong, double __pyx_v_accelerationmaxlong, double __pyx_v_accelerationinitshort, double __pyx_v_accelerationshort, double __pyx_v_accelerationmaxshort) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("SAREXT", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);

  /* "talib/stream.pyx":7034
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7035
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__951, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7035, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7035, __pyx_L1_error)

    /* "talib/stream.pyx":7034
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7036
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7037
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__952, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7037, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7037, __pyx_L1_error)

    /* "talib/stream.pyx":7036
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7038
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7039
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7039, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7039, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7038
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":7040
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":7041
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7042
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__953, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7042, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7042, __pyx_L1_error)

    /* "talib/stream.pyx":7041
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7043
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7044
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__954, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7044, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7044, __pyx_L1_error)

    /* "talib/stream.pyx":7043
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7045
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7046
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7046, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7046, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7045
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":7047
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":7048
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":7049
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7050
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_SAREXT( length - 1 , length - 1 , high_data , low_data , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__955, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7050, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7050, __pyx_L1_error)

    /* "talib/stream.pyx":7049
 *     low_data = <double*>low.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":7051
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_SAREXT( length - 1 , length - 1 , high_data , low_data , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SAREXT", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7052
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_SAREXT( length - 1 , length - 1 , high_data , low_data , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_SAREXT", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_SAREXT((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_startvalue, __pyx_v_offsetonreverse, __pyx_v_accelerationinitlong, __pyx_v_accelerationlong, __pyx_v_accelerationmaxlong, __pyx_v_accelerationinitshort, __pyx_v_accelerationshort, __pyx_v_accelerationmaxshort, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7053
 *     outreal = NaN
 *     retCode = lib.TA_SAREXT( length - 1 , length - 1 , high_data , low_data , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SAREXT", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_SAREXT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7054
 *     retCode = lib.TA_SAREXT( length - 1 , length - 1 , high_data , low_data , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SAREXT", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7054, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7005
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SAREXT( np.ndarray high not None , np.ndarray low not None , double startvalue=-4e37 , double offsetonreverse=-4e37 , double accelerationinitlong=-4e37 , double accelerationlong=-4e37 , double accelerationmaxlong=-4e37 , double accelerationinitshort=-4e37 , double accelerationshort=-4e37 , double accelerationmaxshort=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ SAREXT(high, low[, startvalue=?, offsetonreverse=?, accelerationinitlong=?, accelerationlong=?, accelerationmaxlong=?, accelerationinitshort=?, accelerationshort=?, accelerationmaxshort=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.SAREXT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7058
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SIN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SIN(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_269SIN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_268SIN[] = " SIN(real)\n\n    Vector Trigonometric Sin (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_269SIN = {"SIN", (PyCFunction)__pyx_pw_5talib_6stream_269SIN, METH_O, __pyx_doc_5talib_6stream_268SIN};
static PyObject *__pyx_pw_5talib_6stream_269SIN(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SIN (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7058, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_268SIN(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_268SIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("SIN", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7077
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7078
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__956, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7078, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7078, __pyx_L1_error)

    /* "talib/stream.pyx":7077
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7079
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7080
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__957, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7080, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7080, __pyx_L1_error)

    /* "talib/stream.pyx":7079
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7081
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7082
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7082, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7082, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7081
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7083
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7084
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_SIN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7085
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_SIN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SIN", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7086
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_SIN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_SIN", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_SIN((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7087
 *     outreal = NaN
 *     retCode = lib.TA_SIN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SIN", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_SIN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7087, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7088
 *     retCode = lib.TA_SIN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SIN", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7058
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SIN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SIN(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.SIN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7092
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SINH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SINH(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_271SINH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_270SINH[] = " SINH(real)\n\n    Vector Trigonometric Sinh (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_271SINH = {"SINH", (PyCFunction)__pyx_pw_5talib_6stream_271SINH, METH_O, __pyx_doc_5talib_6stream_270SINH};
static PyObject *__pyx_pw_5talib_6stream_271SINH(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SINH (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7092, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_270SINH(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_270SINH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("SINH", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7111
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7112
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__958, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7112, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7112, __pyx_L1_error)

    /* "talib/stream.pyx":7111
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7113
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7114
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__959, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7114, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7114, __pyx_L1_error)

    /* "talib/stream.pyx":7113
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7115
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7116
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7116, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7116, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7115
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7117
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7118
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_SINH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7119
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_SINH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SINH", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7120
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_SINH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_SINH", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_SINH((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7121
 *     outreal = NaN
 *     retCode = lib.TA_SINH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SINH", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_SINH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7121, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7122
 *     retCode = lib.TA_SINH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SINH", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7092
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SINH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SINH(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.SINH", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7126
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ SMA(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_273SMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_272SMA[] = " SMA(real[, timeperiod=?])\n\n    Simple Moving Average (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_273SMA = {"SMA", (PyCFunction)__pyx_pw_5talib_6stream_273SMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_272SMA};
static PyObject *__pyx_pw_5talib_6stream_273SMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SMA (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "SMA") < 0)) __PYX_ERR(0, 7126, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7126, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("SMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7126, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.SMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7126, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_272SMA(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_272SMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("SMA", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7147
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7148
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__960, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7148, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7148, __pyx_L1_error)

    /* "talib/stream.pyx":7147
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7149
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7150
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__961, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7150, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7150, __pyx_L1_error)

    /* "talib/stream.pyx":7149
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7151
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7152
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7152, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7152, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7151
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7153
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7154
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_SMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7155
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_SMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SMA", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7156
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_SMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_SMA", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_SMA((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7157
 *     outreal = NaN
 *     retCode = lib.TA_SMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SMA", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_SMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7158
 *     retCode = lib.TA_SMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SMA", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7126
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ SMA(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.SMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7162
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SQRT( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SQRT(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_275SQRT(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_274SQRT[] = " SQRT(real)\n\n    Vector Square Root (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_275SQRT = {"SQRT", (PyCFunction)__pyx_pw_5talib_6stream_275SQRT, METH_O, __pyx_doc_5talib_6stream_274SQRT};
static PyObject *__pyx_pw_5talib_6stream_275SQRT(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SQRT (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7162, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_274SQRT(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_274SQRT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("SQRT", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7181
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7182
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__962, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7182, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7182, __pyx_L1_error)

    /* "talib/stream.pyx":7181
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7183
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7184
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__963, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7184, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7184, __pyx_L1_error)

    /* "talib/stream.pyx":7183
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7185
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7186
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7186, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7186, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7185
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7187
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7188
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_SQRT( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7189
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_SQRT( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SQRT", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7190
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_SQRT( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_SQRT", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_SQRT((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7191
 *     outreal = NaN
 *     retCode = lib.TA_SQRT( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SQRT", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_SQRT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7192
 *     retCode = lib.TA_SQRT( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SQRT", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7162
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SQRT( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SQRT(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.SQRT", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7196
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STDDEV( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ STDDEV(real[, timeperiod=?, nbdev=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_277STDDEV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_276STDDEV[] = " STDDEV(real[, timeperiod=?, nbdev=?])\n\n    Standard Deviation (Statistic Functions)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 5\n        nbdev: 1\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_277STDDEV = {"STDDEV", (PyCFunction)__pyx_pw_5talib_6stream_277STDDEV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_276STDDEV};
static PyObject *__pyx_pw_5talib_6stream_277STDDEV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  double __pyx_v_nbdev;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("STDDEV (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,&__pyx_n_s_nbdev,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_nbdev);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "STDDEV") < 0)) __PYX_ERR(0, 7196, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7196, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
    if (values[2]) {
      __pyx_v_nbdev = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nbdev == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7196, __pyx_L3_error)
    } else {
      __pyx_v_nbdev = ((double)-4e37);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("STDDEV", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7196, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.STDDEV", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7196, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_276STDDEV(__pyx_self, __pyx_v_real, __pyx_v_timeperiod, __pyx_v_nbdev);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_276STDDEV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("STDDEV", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7218
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7219
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__964, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7219, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7219, __pyx_L1_error)

    /* "talib/stream.pyx":7218
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7220
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7221
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__965, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7221, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7221, __pyx_L1_error)

    /* "talib/stream.pyx":7220
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7222
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7223
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7223, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7223, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7222
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7224
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7225
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_STDDEV( length - 1 , length - 1 , real_data , timeperiod , nbdev , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7226
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_STDDEV( length - 1 , length - 1 , real_data , timeperiod , nbdev , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_STDDEV", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7227
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_STDDEV( length - 1 , length - 1 , real_data , timeperiod , nbdev , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_STDDEV", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_STDDEV((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, __pyx_v_nbdev, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7228
 *     outreal = NaN
 *     retCode = lib.TA_STDDEV( length - 1 , length - 1 , real_data , timeperiod , nbdev , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_STDDEV", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_STDDEV, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7229
 *     retCode = lib.TA_STDDEV( length - 1 , length - 1 , real_data , timeperiod , nbdev , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_STDDEV", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7196
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STDDEV( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ STDDEV(real[, timeperiod=?, nbdev=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.STDDEV", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7233
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCH( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int fastk_period=-2**31 , int slowk_period=-2**31 , int slowk_matype=0 , int slowd_period=-2**31 , int slowd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCH(high, low, close[, fastk_period=?, slowk_period=?, slowk_matype=?, slowd_period=?, slowd_matype=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_279STOCH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_278STOCH[] = " STOCH(high, low, close[, fastk_period=?, slowk_period=?, slowk_matype=?, slowd_period=?, slowd_matype=?])\n\n    Stochastic (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        fastk_period: 5\n        slowk_period: 3\n        slowk_matype: 0\n        slowd_period: 3\n        slowd_matype: 0\n    Outputs:\n        slowk\n        slowd\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_279STOCH = {"STOCH", (PyCFunction)__pyx_pw_5talib_6stream_279STOCH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_278STOCH};
static PyObject *__pyx_pw_5talib_6stream_279STOCH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_fastk_period;
  int __pyx_v_slowk_period;
  int __pyx_v_slowk_matype;
  int __pyx_v_slowd_period;
  int __pyx_v_slowd_matype;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("STOCH (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_fastk_period,&__pyx_n_s_slowk_period,&__pyx_n_s_slowk_matype,&__pyx_n_s_slowd_period,&__pyx_n_s_slowd_matype,0};
    PyObject* values[8] = {0,0,0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("STOCH", 0, 3, 8, 1); __PYX_ERR(0, 7233, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("STOCH", 0, 3, 8, 2); __PYX_ERR(0, 7233, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastk_period);
          if (value) { values[3] = value; kw_args--; }
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_slowk_period);
          if (value) { values[4] = value; kw_args--; }
        }
        case  5:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_slowk_matype);
          if (value) { values[5] = value; kw_args--; }
        }
        case  6:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_slowd_period);
          if (value) { values[6] = value; kw_args--; }
        }
        case  7:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_slowd_matype);
          if (value) { values[7] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "STOCH") < 0)) __PYX_ERR(0, 7233, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  8: values[7] = PyTuple_GET_ITEM(__pyx_args, 7);
        case  7: values[6] = PyTuple_GET_ITEM(__pyx_args, 6);
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_fastk_period = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_fastk_period == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7233, __pyx_L3_error)
    } else {
      __pyx_v_fastk_period = ((int)-2147483648);
    }
    if (values[4]) {
      __pyx_v_slowk_period = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_slowk_period == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7233, __pyx_L3_error)
    } else {
      __pyx_v_slowk_period = ((int)-2147483648);
    }
    if (values[5]) {
      __pyx_v_slowk_matype = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_slowk_matype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7233, __pyx_L3_error)
    } else {
      __pyx_v_slowk_matype = ((int)0);
    }
    if (values[6]) {
      __pyx_v_slowd_period = __Pyx_PyInt_As_int(values[6]); if (unlikely((__pyx_v_slowd_period == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7233, __pyx_L3_error)
    } else {
      __pyx_v_slowd_period = ((int)-2147483648);
    }
    if (values[7]) {
      __pyx_v_slowd_matype = __Pyx_PyInt_As_int(values[7]); if (unlikely((__pyx_v_slowd_matype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7233, __pyx_L3_error)
    } else {
      __pyx_v_slowd_matype = ((int)0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("STOCH", 0, 3, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7233, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.STOCH", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 7233, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 7233, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 7233, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_278STOCH(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_fastk_period, __pyx_v_slowk_period, __pyx_v_slowk_matype, __pyx_v_slowd_period, __pyx_v_slowd_matype);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_278STOCH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_fastk_period, int __pyx_v_slowk_period, int __pyx_v_slowk_matype, int __pyx_v_slowd_period, int __pyx_v_slowd_matype) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outslowk;
  double __pyx_v_outslowd;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("STOCH", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":7262
 *         double outslowk
 *         double outslowd
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7263
 *         double outslowd
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__966, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7263, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7263, __pyx_L1_error)

    /* "talib/stream.pyx":7262
 *         double outslowk
 *         double outslowd
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7264
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7265
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__967, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7265, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7265, __pyx_L1_error)

    /* "talib/stream.pyx":7264
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7266
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7267
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7267, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7267, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7266
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":7268
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":7269
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7270
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__968, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7270, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7270, __pyx_L1_error)

    /* "talib/stream.pyx":7269
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7271
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7272
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__969, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7272, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7272, __pyx_L1_error)

    /* "talib/stream.pyx":7271
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7273
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7274
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7274, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7274, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7273
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":7275
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":7276
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7277
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__970, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7277, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7277, __pyx_L1_error)

    /* "talib/stream.pyx":7276
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7278
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7279
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__971, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7279, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7279, __pyx_L1_error)

    /* "talib/stream.pyx":7278
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7280
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7281
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7281, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7281, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7280
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":7282
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":7283
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":7284
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7285
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__972, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7285, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7285, __pyx_L1_error)

    /* "talib/stream.pyx":7284
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":7286
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outslowk = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7287
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outslowk = NaN
 *     outslowd = NaN
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__973, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7287, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7287, __pyx_L1_error)

    /* "talib/stream.pyx":7286
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outslowk = NaN
 */
  }

  /* "talib/stream.pyx":7288
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outslowk = NaN             # <<<<<<<<<<<<<<
 *     outslowd = NaN
 *     retCode = lib.TA_STOCH( length - 1 , length - 1 , high_data , low_data , close_data , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , &outslowk , &outslowd )
 */
  __pyx_v_outslowk = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7289
 *         raise Exception("input lengths are different")
 *     outslowk = NaN
 *     outslowd = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_STOCH( length - 1 , length - 1 , high_data , low_data , close_data , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , &outslowk , &outslowd )
 *     _ta_check_success("TA_STOCH", retCode)
 */
  __pyx_v_outslowd = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7290
 *     outslowk = NaN
 *     outslowd = NaN
 *     retCode = lib.TA_STOCH( length - 1 , length - 1 , high_data , low_data , close_data , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , &outslowk , &outslowd )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_STOCH", retCode)
 *     return outslowk , outslowd
 */
  __pyx_v_retCode = TA_STOCH((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_fastk_period, __pyx_v_slowk_period, __pyx_v_slowk_matype, __pyx_v_slowd_period, __pyx_v_slowd_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outslowk), (&__pyx_v_outslowd));

  /* "talib/stream.pyx":7291
 *     outslowd = NaN
 *     retCode = lib.TA_STOCH( length - 1 , length - 1 , high_data , low_data , close_data , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , &outslowk , &outslowd )
 *     _ta_check_success("TA_STOCH", retCode)             # <<<<<<<<<<<<<<
 *     return outslowk , outslowd
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_STOCH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7292
 *     retCode = lib.TA_STOCH( length - 1 , length - 1 , high_data , low_data , close_data , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , &outslowk , &outslowd )
 *     _ta_check_success("TA_STOCH", retCode)
 *     return outslowk , outslowd             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outslowk); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outslowd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7233
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCH( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int fastk_period=-2**31 , int slowk_period=-2**31 , int slowk_matype=0 , int slowd_period=-2**31 , int slowd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCH(high, low, close[, fastk_period=?, slowk_period=?, slowk_matype=?, slowd_period=?, slowd_matype=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("talib.stream.STOCH", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7296
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCHF( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int fastk_period=-2**31 , int fastd_period=-2**31 , int fastd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCHF(high, low, close[, fastk_period=?, fastd_period=?, fastd_matype=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_281STOCHF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_280STOCHF[] = " STOCHF(high, low, close[, fastk_period=?, fastd_period=?, fastd_matype=?])\n\n    Stochastic Fast (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        fastk_period: 5\n        fastd_period: 3\n        fastd_matype: 0\n    Outputs:\n        fastk\n        fastd\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_281STOCHF = {"STOCHF", (PyCFunction)__pyx_pw_5talib_6stream_281STOCHF, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_280STOCHF};
static PyObject *__pyx_pw_5talib_6stream_281STOCHF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_fastk_period;
  int __pyx_v_fastd_period;
  int __pyx_v_fastd_matype;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("STOCHF (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_fastk_period,&__pyx_n_s_fastd_period,&__pyx_n_s_fastd_matype,0};
    PyObject* values[6] = {0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("STOCHF", 0, 3, 6, 1); __PYX_ERR(0, 7296, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("STOCHF", 0, 3, 6, 2); __PYX_ERR(0, 7296, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastk_period);
          if (value) { values[3] = value; kw_args--; }
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastd_period);
          if (value) { values[4] = value; kw_args--; }
        }
        case  5:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastd_matype);
          if (value) { values[5] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "STOCHF") < 0)) __PYX_ERR(0, 7296, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_fastk_period = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_fastk_period == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7296, __pyx_L3_error)
    } else {
      __pyx_v_fastk_period = ((int)-2147483648);
    }
    if (values[4]) {
      __pyx_v_fastd_period = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_fastd_period == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7296, __pyx_L3_error)
    } else {
      __pyx_v_fastd_period = ((int)-2147483648);
    }
    if (values[5]) {
      __pyx_v_fastd_matype = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_fastd_matype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7296, __pyx_L3_error)
    } else {
      __pyx_v_fastd_matype = ((int)0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("STOCHF", 0, 3, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7296, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.STOCHF", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 7296, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 7296, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 7296, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_280STOCHF(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_280STOCHF(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_fastk_period, int __pyx_v_fastd_period, int __pyx_v_fastd_matype) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outfastk;
  double __pyx_v_outfastd;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("STOCHF", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":7323
 *         double outfastk
 *         double outfastd
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7324
 *         double outfastd
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__974, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7324, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7324, __pyx_L1_error)

    /* "talib/stream.pyx":7323
 *         double outfastk
 *         double outfastd
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7325
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7326
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__975, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7326, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7326, __pyx_L1_error)

    /* "talib/stream.pyx":7325
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7327
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7328
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7328, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7328, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7327
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":7329
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":7330
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7331
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__976, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7331, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7331, __pyx_L1_error)

    /* "talib/stream.pyx":7330
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7332
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7333
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__977, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7333, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7333, __pyx_L1_error)

    /* "talib/stream.pyx":7332
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7334
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7335
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7335, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7335, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7334
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":7336
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":7337
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7338
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__978, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7338, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7338, __pyx_L1_error)

    /* "talib/stream.pyx":7337
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7339
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7340
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__979, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7340, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7340, __pyx_L1_error)

    /* "talib/stream.pyx":7339
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7341
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7342
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7342, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7342, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7341
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":7343
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":7344
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":7345
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7346
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__980, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7346, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7346, __pyx_L1_error)

    /* "talib/stream.pyx":7345
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":7347
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outfastk = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7348
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outfastk = NaN
 *     outfastd = NaN
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__981, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7348, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7348, __pyx_L1_error)

    /* "talib/stream.pyx":7347
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outfastk = NaN
 */
  }

  /* "talib/stream.pyx":7349
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outfastk = NaN             # <<<<<<<<<<<<<<
 *     outfastd = NaN
 *     retCode = lib.TA_STOCHF( length - 1 , length - 1 , high_data , low_data , close_data , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , &outfastk , &outfastd )
 */
  __pyx_v_outfastk = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7350
 *         raise Exception("input lengths are different")
 *     outfastk = NaN
 *     outfastd = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_STOCHF( length - 1 , length - 1 , high_data , low_data , close_data , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , &outfastk , &outfastd )
 *     _ta_check_success("TA_STOCHF", retCode)
 */
  __pyx_v_outfastd = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7351
 *     outfastk = NaN
 *     outfastd = NaN
 *     retCode = lib.TA_STOCHF( length - 1 , length - 1 , high_data , low_data , close_data , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , &outfastk , &outfastd )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_STOCHF", retCode)
 *     return outfastk , outfastd
 */
  __pyx_v_retCode = TA_STOCHF((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outfastk), (&__pyx_v_outfastd));

  /* "talib/stream.pyx":7352
 *     outfastd = NaN
 *     retCode = lib.TA_STOCHF( length - 1 , length - 1 , high_data , low_data , close_data , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , &outfastk , &outfastd )
 *     _ta_check_success("TA_STOCHF", retCode)             # <<<<<<<<<<<<<<
 *     return outfastk , outfastd
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_STOCHF, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7353
 *     retCode = lib.TA_STOCHF( length - 1 , length - 1 , high_data , low_data , close_data , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , &outfastk , &outfastd )
 *     _ta_check_success("TA_STOCHF", retCode)
 *     return outfastk , outfastd             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outfastk); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outfastd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7353, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7296
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCHF( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int fastk_period=-2**31 , int fastd_period=-2**31 , int fastd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCHF(high, low, close[, fastk_period=?, fastd_period=?, fastd_matype=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("talib.stream.STOCHF", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7357
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCHRSI( np.ndarray real not None , int timeperiod=-2**31 , int fastk_period=-2**31 , int fastd_period=-2**31 , int fastd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCHRSI(real[, timeperiod=?, fastk_period=?, fastd_period=?, fastd_matype=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_283STOCHRSI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_282STOCHRSI[] = " STOCHRSI(real[, timeperiod=?, fastk_period=?, fastd_period=?, fastd_matype=?])\n\n    Stochastic Relative Strength Index (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 14\n        fastk_period: 5\n        fastd_period: 3\n        fastd_matype: 0\n    Outputs:\n        fastk\n        fastd\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_283STOCHRSI = {"STOCHRSI", (PyCFunction)__pyx_pw_5talib_6stream_283STOCHRSI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_282STOCHRSI};
static PyObject *__pyx_pw_5talib_6stream_283STOCHRSI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  int __pyx_v_fastk_period;
  int __pyx_v_fastd_period;
  int __pyx_v_fastd_matype;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("STOCHRSI (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,&__pyx_n_s_fastk_period,&__pyx_n_s_fastd_period,&__pyx_n_s_fastd_matype,0};
    PyObject* values[5] = {0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastk_period);
          if (value) { values[2] = value; kw_args--; }
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastd_period);
          if (value) { values[3] = value; kw_args--; }
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_fastd_matype);
          if (value) { values[4] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "STOCHRSI") < 0)) __PYX_ERR(0, 7357, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7357, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
    if (values[2]) {
      __pyx_v_fastk_period = __Pyx_PyInt_As_int(values[2]); if (unlikely((__pyx_v_fastk_period == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7357, __pyx_L3_error)
    } else {
      __pyx_v_fastk_period = ((int)-2147483648);
    }
    if (values[3]) {
      __pyx_v_fastd_period = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_fastd_period == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7357, __pyx_L3_error)
    } else {
      __pyx_v_fastd_period = ((int)-2147483648);
    }
    if (values[4]) {
      __pyx_v_fastd_matype = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_fastd_matype == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7357, __pyx_L3_error)
    } else {
      __pyx_v_fastd_matype = ((int)0);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("STOCHRSI", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7357, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.STOCHRSI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7357, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_282STOCHRSI(__pyx_self, __pyx_v_real, __pyx_v_timeperiod, __pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_282STOCHRSI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, int __pyx_v_fastk_period, int __pyx_v_fastd_period, int __pyx_v_fastd_matype) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outfastk;
  double __pyx_v_outfastd;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  __Pyx_RefNannySetupContext("STOCHRSI", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7383
 *         double outfastk
 *         double outfastd
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7384
 *         double outfastd
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__982, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7384, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7384, __pyx_L1_error)

    /* "talib/stream.pyx":7383
 *         double outfastk
 *         double outfastd
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7385
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7386
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__983, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7386, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7386, __pyx_L1_error)

    /* "talib/stream.pyx":7385
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7387
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7388
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7388, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7388, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7387
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7389
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outfastk = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7390
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outfastk = NaN
 *     outfastd = NaN
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7391
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outfastk = NaN             # <<<<<<<<<<<<<<
 *     outfastd = NaN
 *     retCode = lib.TA_STOCHRSI( length - 1 , length - 1 , real_data , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , &outfastk , &outfastd )
 */
  __pyx_v_outfastk = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7392
 *     length = real.shape[0]
 *     outfastk = NaN
 *     outfastd = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_STOCHRSI( length - 1 , length - 1 , real_data , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , &outfastk , &outfastd )
 *     _ta_check_success("TA_STOCHRSI", retCode)
 */
  __pyx_v_outfastd = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7393
 *     outfastk = NaN
 *     outfastd = NaN
 *     retCode = lib.TA_STOCHRSI( length - 1 , length - 1 , real_data , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , &outfastk , &outfastd )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_STOCHRSI", retCode)
 *     return outfastk , outfastd
 */
  __pyx_v_retCode = TA_STOCHRSI((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, __pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outfastk), (&__pyx_v_outfastd));

  /* "talib/stream.pyx":7394
 *     outfastd = NaN
 *     retCode = lib.TA_STOCHRSI( length - 1 , length - 1 , real_data , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , &outfastk , &outfastd )
 *     _ta_check_success("TA_STOCHRSI", retCode)             # <<<<<<<<<<<<<<
 *     return outfastk , outfastd
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_STOCHRSI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7395
 *     retCode = lib.TA_STOCHRSI( length - 1 , length - 1 , real_data , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , &outfastk , &outfastd )
 *     _ta_check_success("TA_STOCHRSI", retCode)
 *     return outfastk , outfastd             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outfastk); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outfastd); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 7395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_4);
  __Pyx_GIVEREF(__pyx_t_2);
  PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_2);
  __Pyx_GIVEREF(__pyx_t_3);
  PyTuple_SET_ITEM(__pyx_t_4, 1, __pyx_t_3);
  __pyx_t_2 = 0;
  __pyx_t_3 = 0;
  __pyx_r = __pyx_t_4;
  __pyx_t_4 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7357
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCHRSI( np.ndarray real not None , int timeperiod=-2**31 , int fastk_period=-2**31 , int fastd_period=-2**31 , int fastd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCHRSI(real[, timeperiod=?, fastk_period=?, fastd_period=?, fastd_matype=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("talib.stream.STOCHRSI", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7399
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SUB( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ SUB(real0, real1)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_285SUB(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_284SUB[] = " SUB(real0, real1)\n\n    Vector Arithmetic Substraction (Math Operators)\n\n    Inputs:\n        real0: (any ndarray)\n        real1: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_285SUB = {"SUB", (PyCFunction)__pyx_pw_5talib_6stream_285SUB, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_284SUB};
static PyObject *__pyx_pw_5talib_6stream_285SUB(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real0 = 0;
  PyArrayObject *__pyx_v_real1 = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SUB (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real0,&__pyx_n_s_real1,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real0)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real1)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("SUB", 1, 2, 2, 1); __PYX_ERR(0, 7399, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "SUB") < 0)) __PYX_ERR(0, 7399, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 2) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
    }
    __pyx_v_real0 = ((PyArrayObject *)values[0]);
    __pyx_v_real1 = ((PyArrayObject *)values[1]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("SUB", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7399, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.SUB", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real0), __pyx_ptype_5numpy_ndarray, 0, "real0", 0))) __PYX_ERR(0, 7399, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 7399, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_284SUB(__pyx_self, __pyx_v_real0, __pyx_v_real1);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_284SUB(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real0_data;
  double *__pyx_v_real1_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("SUB", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real0);
  __Pyx_INCREF((PyObject *)__pyx_v_real1);

  /* "talib/stream.pyx":7420
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real0) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7421
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__984, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7421, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7421, __pyx_L1_error)

    /* "talib/stream.pyx":7420
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7422
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real0->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7423
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__985, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7423, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7423, __pyx_L1_error)

    /* "talib/stream.pyx":7422
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7424
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7425
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)             # <<<<<<<<<<<<<<
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7425, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7425, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7424
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 */
  }

  /* "talib/stream.pyx":7426
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 */
  __pyx_v_real0_data = ((double *)__pyx_v_real0->data);

  /* "talib/stream.pyx":7427
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real1) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7428
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__986, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7428, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7428, __pyx_L1_error)

    /* "talib/stream.pyx":7427
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7429
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real1->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7430
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__987, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7430, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7430, __pyx_L1_error)

    /* "talib/stream.pyx":7429
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7431
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7432
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)             # <<<<<<<<<<<<<<
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7432, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7432, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7431
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 */
  }

  /* "talib/stream.pyx":7433
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data             # <<<<<<<<<<<<<<
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 */
  __pyx_v_real1_data = ((double *)__pyx_v_real1->data);

  /* "talib/stream.pyx":7434
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]             # <<<<<<<<<<<<<<
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_real0->dimensions[0]);

  /* "talib/stream.pyx":7435
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7436
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_SUB( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__988, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7436, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7436, __pyx_L1_error)

    /* "talib/stream.pyx":7435
 *     real1_data = <double*>real1.data
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":7437
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_SUB( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SUB", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7438
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_SUB( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_SUB", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_SUB((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real0_data, __pyx_v_real1_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7439
 *     outreal = NaN
 *     retCode = lib.TA_SUB( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SUB", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_SUB, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7440
 *     retCode = lib.TA_SUB( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SUB", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7399
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SUB( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ SUB(real0, real1)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.SUB", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real0);
  __Pyx_XDECREF((PyObject *)__pyx_v_real1);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7444
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SUM( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ SUM(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_287SUM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_286SUM[] = " SUM(real[, timeperiod=?])\n\n    Summation (Math Operators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_287SUM = {"SUM", (PyCFunction)__pyx_pw_5talib_6stream_287SUM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_286SUM};
static PyObject *__pyx_pw_5talib_6stream_287SUM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("SUM (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "SUM") < 0)) __PYX_ERR(0, 7444, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7444, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("SUM", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7444, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.SUM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7444, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_286SUM(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_286SUM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("SUM", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7465
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7466
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__989, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7466, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7466, __pyx_L1_error)

    /* "talib/stream.pyx":7465
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7467
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7468
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__990, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7468, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7468, __pyx_L1_error)

    /* "talib/stream.pyx":7467
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7469
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7470
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7470, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7470, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7469
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7471
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7472
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_SUM( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7473
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_SUM( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SUM", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7474
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_SUM( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_SUM", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_SUM((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7475
 *     outreal = NaN
 *     retCode = lib.TA_SUM( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SUM", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_SUM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7475, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7476
 *     retCode = lib.TA_SUM( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_SUM", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7476, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7444
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SUM( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ SUM(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.SUM", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7480
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def T3( np.ndarray real not None , int timeperiod=-2**31 , double vfactor=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ T3(real[, timeperiod=?, vfactor=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_289T3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_288T3[] = " T3(real[, timeperiod=?, vfactor=?])\n\n    Triple Exponential Moving Average (T3) (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 5\n        vfactor: 0.7\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_289T3 = {"T3", (PyCFunction)__pyx_pw_5talib_6stream_289T3, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_288T3};
static PyObject *__pyx_pw_5talib_6stream_289T3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  double __pyx_v_vfactor;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("T3 (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,&__pyx_n_s_vfactor,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_vfactor);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "T3") < 0)) __PYX_ERR(0, 7480, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7480, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
    if (values[2]) {
      __pyx_v_vfactor = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_vfactor == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7480, __pyx_L3_error)
    } else {
      __pyx_v_vfactor = ((double)-4e37);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("T3", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7480, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.T3", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7480, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_288T3(__pyx_self, __pyx_v_real, __pyx_v_timeperiod, __pyx_v_vfactor);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_288T3(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_vfactor) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("T3", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7502
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7503
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__991, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7503, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7503, __pyx_L1_error)

    /* "talib/stream.pyx":7502
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7504
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7505
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__992, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7505, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7505, __pyx_L1_error)

    /* "talib/stream.pyx":7504
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7506
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7507
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7507, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7507, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7506
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7508
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7509
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_T3( length - 1 , length - 1 , real_data , timeperiod , vfactor , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7510
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_T3( length - 1 , length - 1 , real_data , timeperiod , vfactor , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_T3", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7511
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_T3( length - 1 , length - 1 , real_data , timeperiod , vfactor , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_T3", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_T3((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, __pyx_v_vfactor, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7512
 *     outreal = NaN
 *     retCode = lib.TA_T3( length - 1 , length - 1 , real_data , timeperiod , vfactor , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_T3", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_T3, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7513
 *     retCode = lib.TA_T3( length - 1 , length - 1 , real_data , timeperiod , vfactor , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_T3", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7480
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def T3( np.ndarray real not None , int timeperiod=-2**31 , double vfactor=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ T3(real[, timeperiod=?, vfactor=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.T3", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7517
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TAN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ TAN(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_291TAN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_290TAN[] = " TAN(real)\n\n    Vector Trigonometric Tan (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_291TAN = {"TAN", (PyCFunction)__pyx_pw_5talib_6stream_291TAN, METH_O, __pyx_doc_5talib_6stream_290TAN};
static PyObject *__pyx_pw_5talib_6stream_291TAN(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("TAN (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7517, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_290TAN(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_290TAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("TAN", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7536
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7537
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__993, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7537, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7537, __pyx_L1_error)

    /* "talib/stream.pyx":7536
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7538
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7539
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__994, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7539, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7539, __pyx_L1_error)

    /* "talib/stream.pyx":7538
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7540
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7541
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7541, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7541, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7540
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7542
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7543
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_TAN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7544
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_TAN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TAN", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7545
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_TAN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_TAN", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_TAN((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7546
 *     outreal = NaN
 *     retCode = lib.TA_TAN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TAN", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_TAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7547
 *     retCode = lib.TA_TAN( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TAN", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7517
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TAN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ TAN(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.TAN", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7551
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TANH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ TANH(real)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_293TANH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/
static char __pyx_doc_5talib_6stream_292TANH[] = " TANH(real)\n\n    Vector Trigonometric Tanh (Math Transform)\n\n    Inputs:\n        real: (any ndarray)\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_293TANH = {"TANH", (PyCFunction)__pyx_pw_5talib_6stream_293TANH, METH_O, __pyx_doc_5talib_6stream_292TANH};
static PyObject *__pyx_pw_5talib_6stream_293TANH(PyObject *__pyx_self, PyObject *__pyx_v_real) {
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("TANH (wrapper)", 0);
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7551, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_292TANH(__pyx_self, ((PyArrayObject *)__pyx_v_real));

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_292TANH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("TANH", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7570
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7571
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__995, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7571, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7571, __pyx_L1_error)

    /* "talib/stream.pyx":7570
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7572
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7573
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__996, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7573, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7573, __pyx_L1_error)

    /* "talib/stream.pyx":7572
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7574
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7575
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7575, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7575, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7574
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7576
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7577
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_TANH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7578
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_TANH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TANH", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7579
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_TANH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_TANH", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_TANH((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7580
 *     outreal = NaN
 *     retCode = lib.TA_TANH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TANH", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_TANH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7581
 *     retCode = lib.TA_TANH( length - 1 , length - 1 , real_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TANH", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7551
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TANH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ TANH(real)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.TANH", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7585
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TEMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TEMA(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_295TEMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_294TEMA[] = " TEMA(real[, timeperiod=?])\n\n    Triple Exponential Moving Average (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_295TEMA = {"TEMA", (PyCFunction)__pyx_pw_5talib_6stream_295TEMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_294TEMA};
static PyObject *__pyx_pw_5talib_6stream_295TEMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("TEMA (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TEMA") < 0)) __PYX_ERR(0, 7585, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7585, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("TEMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7585, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.TEMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7585, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_294TEMA(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_294TEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("TEMA", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7606
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7607
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__997, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7607, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7607, __pyx_L1_error)

    /* "talib/stream.pyx":7606
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7608
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7609
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__998, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7609, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7609, __pyx_L1_error)

    /* "talib/stream.pyx":7608
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7610
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7611
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7611, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7611, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7610
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7612
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7613
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_TEMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7614
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_TEMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TEMA", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7615
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_TEMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_TEMA", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_TEMA((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7616
 *     outreal = NaN
 *     retCode = lib.TA_TEMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TEMA", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_TEMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7617
 *     retCode = lib.TA_TEMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TEMA", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7585
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TEMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TEMA(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.TEMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7621
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRANGE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ TRANGE(high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_297TRANGE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_296TRANGE[] = " TRANGE(high, low, close)\n\n    True Range (Volatility Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_297TRANGE = {"TRANGE", (PyCFunction)__pyx_pw_5talib_6stream_297TRANGE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_296TRANGE};
static PyObject *__pyx_pw_5talib_6stream_297TRANGE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("TRANGE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("TRANGE", 1, 3, 3, 1); __PYX_ERR(0, 7621, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("TRANGE", 1, 3, 3, 2); __PYX_ERR(0, 7621, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TRANGE") < 0)) __PYX_ERR(0, 7621, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("TRANGE", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7621, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.TRANGE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 7621, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 7621, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 7621, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_296TRANGE(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_296TRANGE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("TRANGE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":7642
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7643
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__999, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7643, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7643, __pyx_L1_error)

    /* "talib/stream.pyx":7642
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7644
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7645
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1000, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7645, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7645, __pyx_L1_error)

    /* "talib/stream.pyx":7644
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7646
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7647
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7647, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7647, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7646
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":7648
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":7649
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7650
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1001, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7650, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7650, __pyx_L1_error)

    /* "talib/stream.pyx":7649
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7651
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7652
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1002, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7652, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7652, __pyx_L1_error)

    /* "talib/stream.pyx":7651
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7653
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7654
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7654, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7654, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7653
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":7655
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":7656
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7657
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1003, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7657, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7657, __pyx_L1_error)

    /* "talib/stream.pyx":7656
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7658
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7659
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1004, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7659, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7659, __pyx_L1_error)

    /* "talib/stream.pyx":7658
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7660
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7661
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7661, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7661, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7660
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":7662
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":7663
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":7664
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7665
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1005, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7665, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7665, __pyx_L1_error)

    /* "talib/stream.pyx":7664
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":7666
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7667
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_TRANGE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1006, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7667, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7667, __pyx_L1_error)

    /* "talib/stream.pyx":7666
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":7668
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_TRANGE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TRANGE", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7669
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_TRANGE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_TRANGE", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_TRANGE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7670
 *     outreal = NaN
 *     retCode = lib.TA_TRANGE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TRANGE", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_TRANGE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7670, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7671
 *     retCode = lib.TA_TRANGE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TRANGE", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7621
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRANGE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ TRANGE(high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.TRANGE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7675
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRIMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TRIMA(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_299TRIMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_298TRIMA[] = " TRIMA(real[, timeperiod=?])\n\n    Triangular Moving Average (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_299TRIMA = {"TRIMA", (PyCFunction)__pyx_pw_5talib_6stream_299TRIMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_298TRIMA};
static PyObject *__pyx_pw_5talib_6stream_299TRIMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("TRIMA (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TRIMA") < 0)) __PYX_ERR(0, 7675, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7675, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("TRIMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7675, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.TRIMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7675, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_298TRIMA(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_298TRIMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("TRIMA", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7696
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7697
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1007, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7697, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7697, __pyx_L1_error)

    /* "talib/stream.pyx":7696
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7698
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7699
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1008, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7699, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7699, __pyx_L1_error)

    /* "talib/stream.pyx":7698
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7700
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7701
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7701, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7701, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7700
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7702
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7703
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_TRIMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7704
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_TRIMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TRIMA", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7705
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_TRIMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_TRIMA", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_TRIMA((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7706
 *     outreal = NaN
 *     retCode = lib.TA_TRIMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TRIMA", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_TRIMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7707
 *     retCode = lib.TA_TRIMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TRIMA", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7707, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7675
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRIMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TRIMA(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.TRIMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7711
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRIX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TRIX(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_301TRIX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_300TRIX[] = " TRIX(real[, timeperiod=?])\n\n    1-day Rate-Of-Change (ROC) of a Triple Smooth EMA (Momentum Indicators)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_301TRIX = {"TRIX", (PyCFunction)__pyx_pw_5talib_6stream_301TRIX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_300TRIX};
static PyObject *__pyx_pw_5talib_6stream_301TRIX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("TRIX (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TRIX") < 0)) __PYX_ERR(0, 7711, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7711, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("TRIX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7711, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.TRIX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7711, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_300TRIX(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_300TRIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("TRIX", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7732
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7733
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1009, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7733, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7733, __pyx_L1_error)

    /* "talib/stream.pyx":7732
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7734
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7735
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1010, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7735, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7735, __pyx_L1_error)

    /* "talib/stream.pyx":7734
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7736
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7737
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7737, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7737, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7736
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7738
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7739
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_TRIX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7740
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_TRIX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TRIX", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7741
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_TRIX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_TRIX", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_TRIX((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7742
 *     outreal = NaN
 *     retCode = lib.TA_TRIX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TRIX", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_TRIX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7742, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7743
 *     retCode = lib.TA_TRIX( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TRIX", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7711
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRIX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TRIX(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.TRIX", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7747
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TSF( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TSF(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_303TSF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_302TSF[] = " TSF(real[, timeperiod=?])\n\n    Time Series Forecast (Statistic Functions)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_303TSF = {"TSF", (PyCFunction)__pyx_pw_5talib_6stream_303TSF, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_302TSF};
static PyObject *__pyx_pw_5talib_6stream_303TSF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("TSF (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TSF") < 0)) __PYX_ERR(0, 7747, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7747, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("TSF", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7747, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.TSF", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7747, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_302TSF(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_302TSF(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("TSF", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7768
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7769
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1011, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7769, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7769, __pyx_L1_error)

    /* "talib/stream.pyx":7768
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7770
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7771
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1012, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7771, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7771, __pyx_L1_error)

    /* "talib/stream.pyx":7770
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7772
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7773
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7773, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7773, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7772
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7774
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7775
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_TSF( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7776
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_TSF( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TSF", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7777
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_TSF( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_TSF", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_TSF((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7778
 *     outreal = NaN
 *     retCode = lib.TA_TSF( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TSF", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_TSF, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7779
 *     retCode = lib.TA_TSF( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TSF", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7747
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TSF( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TSF(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.TSF", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7783
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TYPPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ TYPPRICE(high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_305TYPPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_304TYPPRICE[] = " TYPPRICE(high, low, close)\n\n    Typical Price (Price Transform)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_305TYPPRICE = {"TYPPRICE", (PyCFunction)__pyx_pw_5talib_6stream_305TYPPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_304TYPPRICE};
static PyObject *__pyx_pw_5talib_6stream_305TYPPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("TYPPRICE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("TYPPRICE", 1, 3, 3, 1); __PYX_ERR(0, 7783, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("TYPPRICE", 1, 3, 3, 2); __PYX_ERR(0, 7783, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TYPPRICE") < 0)) __PYX_ERR(0, 7783, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("TYPPRICE", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7783, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.TYPPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 7783, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 7783, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 7783, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_304TYPPRICE(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_304TYPPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("TYPPRICE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":7804
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7805
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1013, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7805, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7805, __pyx_L1_error)

    /* "talib/stream.pyx":7804
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7806
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7807
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1014, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7807, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7807, __pyx_L1_error)

    /* "talib/stream.pyx":7806
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7808
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7809
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7809, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7809, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7808
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":7810
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":7811
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7812
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1015, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7812, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7812, __pyx_L1_error)

    /* "talib/stream.pyx":7811
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7813
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7814
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1016, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7814, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7814, __pyx_L1_error)

    /* "talib/stream.pyx":7813
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7815
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7816
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7816, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7816, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7815
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":7817
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":7818
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7819
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1017, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7819, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7819, __pyx_L1_error)

    /* "talib/stream.pyx":7818
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7820
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7821
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1018, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7821, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7821, __pyx_L1_error)

    /* "talib/stream.pyx":7820
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7822
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7823
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7823, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7823, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7822
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":7824
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":7825
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":7826
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7827
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1019, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7827, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7827, __pyx_L1_error)

    /* "talib/stream.pyx":7826
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":7828
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7829
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_TYPPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1020, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7829, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7829, __pyx_L1_error)

    /* "talib/stream.pyx":7828
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":7830
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_TYPPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TYPPRICE", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7831
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_TYPPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_TYPPRICE", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_TYPPRICE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7832
 *     outreal = NaN
 *     retCode = lib.TA_TYPPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TYPPRICE", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_TYPPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7833
 *     retCode = lib.TA_TYPPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_TYPPRICE", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7783
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TYPPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ TYPPRICE(high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.TYPPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7837
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ULTOSC( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod1=-2**31 , int timeperiod2=-2**31 , int timeperiod3=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ULTOSC(high, low, close[, timeperiod1=?, timeperiod2=?, timeperiod3=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_307ULTOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_306ULTOSC[] = " ULTOSC(high, low, close[, timeperiod1=?, timeperiod2=?, timeperiod3=?])\n\n    Ultimate Oscillator (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        timeperiod1: 7\n        timeperiod2: 14\n        timeperiod3: 28\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_307ULTOSC = {"ULTOSC", (PyCFunction)__pyx_pw_5talib_6stream_307ULTOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_306ULTOSC};
static PyObject *__pyx_pw_5talib_6stream_307ULTOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_timeperiod1;
  int __pyx_v_timeperiod2;
  int __pyx_v_timeperiod3;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("ULTOSC (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_timeperiod1,&__pyx_n_s_timeperiod2,&__pyx_n_s_timeperiod3,0};
    PyObject* values[6] = {0,0,0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ULTOSC", 0, 3, 6, 1); __PYX_ERR(0, 7837, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("ULTOSC", 0, 3, 6, 2); __PYX_ERR(0, 7837, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod1);
          if (value) { values[3] = value; kw_args--; }
        }
        case  4:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod2);
          if (value) { values[4] = value; kw_args--; }
        }
        case  5:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod3);
          if (value) { values[5] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ULTOSC") < 0)) __PYX_ERR(0, 7837, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  6: values[5] = PyTuple_GET_ITEM(__pyx_args, 5);
        case  5: values[4] = PyTuple_GET_ITEM(__pyx_args, 4);
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_timeperiod1 = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_timeperiod1 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7837, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod1 = ((int)-2147483648);
    }
    if (values[4]) {
      __pyx_v_timeperiod2 = __Pyx_PyInt_As_int(values[4]); if (unlikely((__pyx_v_timeperiod2 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7837, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod2 = ((int)-2147483648);
    }
    if (values[5]) {
      __pyx_v_timeperiod3 = __Pyx_PyInt_As_int(values[5]); if (unlikely((__pyx_v_timeperiod3 == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7837, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod3 = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("ULTOSC", 0, 3, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7837, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.ULTOSC", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 7837, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 7837, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 7837, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_306ULTOSC(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_timeperiod1, __pyx_v_timeperiod2, __pyx_v_timeperiod3);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_306ULTOSC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod1, int __pyx_v_timeperiod2, int __pyx_v_timeperiod3) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("ULTOSC", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":7862
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7863
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1021, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7863, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7863, __pyx_L1_error)

    /* "talib/stream.pyx":7862
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7864
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7865
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1022, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7865, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7865, __pyx_L1_error)

    /* "talib/stream.pyx":7864
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7866
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7867
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7867, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7867, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7866
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":7868
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":7869
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7870
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1023, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7870, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7870, __pyx_L1_error)

    /* "talib/stream.pyx":7869
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7871
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7872
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1024, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7872, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7872, __pyx_L1_error)

    /* "talib/stream.pyx":7871
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7873
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7874
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7874, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7874, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7873
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":7875
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":7876
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7877
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1025, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7877, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7877, __pyx_L1_error)

    /* "talib/stream.pyx":7876
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7878
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7879
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1026, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7879, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7879, __pyx_L1_error)

    /* "talib/stream.pyx":7878
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7880
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7881
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7881, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7881, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7880
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":7882
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":7883
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":7884
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7885
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1027, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7885, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7885, __pyx_L1_error)

    /* "talib/stream.pyx":7884
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":7886
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7887
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ULTOSC( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1028, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7887, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7887, __pyx_L1_error)

    /* "talib/stream.pyx":7886
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":7888
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_ULTOSC( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ULTOSC", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7889
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_ULTOSC( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_ULTOSC", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_ULTOSC((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_timeperiod1, __pyx_v_timeperiod2, __pyx_v_timeperiod3, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7890
 *     outreal = NaN
 *     retCode = lib.TA_ULTOSC( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ULTOSC", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_ULTOSC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7890, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7891
 *     retCode = lib.TA_ULTOSC( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_ULTOSC", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7837
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ULTOSC( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod1=-2**31 , int timeperiod2=-2**31 , int timeperiod3=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ULTOSC(high, low, close[, timeperiod1=?, timeperiod2=?, timeperiod3=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.ULTOSC", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7895
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def VAR( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ VAR(real[, timeperiod=?, nbdev=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_309VAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_308VAR[] = " VAR(real[, timeperiod=?, nbdev=?])\n\n    Variance (Statistic Functions)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 5\n        nbdev: 1\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_309VAR = {"VAR", (PyCFunction)__pyx_pw_5talib_6stream_309VAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_308VAR};
static PyObject *__pyx_pw_5talib_6stream_309VAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  double __pyx_v_nbdev;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("VAR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,&__pyx_n_s_nbdev,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
        case  2:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_nbdev);
          if (value) { values[2] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "VAR") < 0)) __PYX_ERR(0, 7895, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7895, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
    if (values[2]) {
      __pyx_v_nbdev = __pyx_PyFloat_AsDouble(values[2]); if (unlikely((__pyx_v_nbdev == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7895, __pyx_L3_error)
    } else {
      __pyx_v_nbdev = ((double)-4e37);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("VAR", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7895, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.VAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 7895, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_308VAR(__pyx_self, __pyx_v_real, __pyx_v_timeperiod, __pyx_v_nbdev);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_308VAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("VAR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":7917
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7918
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1029, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7918, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7918, __pyx_L1_error)

    /* "talib/stream.pyx":7917
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7919
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7920
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1030, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7920, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7920, __pyx_L1_error)

    /* "talib/stream.pyx":7919
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7921
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7922
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7922, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7922, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7921
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":7923
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":7924
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_VAR( length - 1 , length - 1 , real_data , timeperiod , nbdev , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":7925
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_VAR( length - 1 , length - 1 , real_data , timeperiod , nbdev , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_VAR", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7926
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_VAR( length - 1 , length - 1 , real_data , timeperiod , nbdev , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_VAR", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_VAR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, __pyx_v_nbdev, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7927
 *     outreal = NaN
 *     retCode = lib.TA_VAR( length - 1 , length - 1 , real_data , timeperiod , nbdev , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_VAR", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_VAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7928
 *     retCode = lib.TA_VAR( length - 1 , length - 1 , real_data , timeperiod , nbdev , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_VAR", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7928, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7895
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def VAR( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ VAR(real[, timeperiod=?, nbdev=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.VAR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7932
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WCLPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ WCLPRICE(high, low, close)
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_311WCLPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_310WCLPRICE[] = " WCLPRICE(high, low, close)\n\n    Weighted Close Price (Price Transform)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_311WCLPRICE = {"WCLPRICE", (PyCFunction)__pyx_pw_5talib_6stream_311WCLPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_310WCLPRICE};
static PyObject *__pyx_pw_5talib_6stream_311WCLPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WCLPRICE (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,0};
    PyObject* values[3] = {0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("WCLPRICE", 1, 3, 3, 1); __PYX_ERR(0, 7932, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("WCLPRICE", 1, 3, 3, 2); __PYX_ERR(0, 7932, __pyx_L3_error)
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "WCLPRICE") < 0)) __PYX_ERR(0, 7932, __pyx_L3_error)
      }
    } else if (PyTuple_GET_SIZE(__pyx_args) != 3) {
      goto __pyx_L5_argtuple_error;
    } else {
      values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
      values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
      values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("WCLPRICE", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7932, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.WCLPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 7932, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 7932, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 7932, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_310WCLPRICE(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_310WCLPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("WCLPRICE", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":7953
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7954
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1031, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7954, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7954, __pyx_L1_error)

    /* "talib/stream.pyx":7953
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7955
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7956
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1032, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7956, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7956, __pyx_L1_error)

    /* "talib/stream.pyx":7955
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7957
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7958
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7958, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7958, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7957
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":7959
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":7960
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7961
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1033, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7961, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7961, __pyx_L1_error)

    /* "talib/stream.pyx":7960
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7962
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7963
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1034, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7963, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7963, __pyx_L1_error)

    /* "talib/stream.pyx":7962
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7964
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7965
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7965, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7965, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7964
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":7966
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":7967
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7968
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1035, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7968, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7968, __pyx_L1_error)

    /* "talib/stream.pyx":7967
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":7969
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7970
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1036, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7970, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7970, __pyx_L1_error)

    /* "talib/stream.pyx":7969
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":7971
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7972
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7972, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7972, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":7971
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":7973
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":7974
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":7975
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7976
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1037, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7976, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7976, __pyx_L1_error)

    /* "talib/stream.pyx":7975
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":7977
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":7978
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_WCLPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1038, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7978, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 7978, __pyx_L1_error)

    /* "talib/stream.pyx":7977
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":7979
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_WCLPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_WCLPRICE", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":7980
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_WCLPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_WCLPRICE", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_WCLPRICE((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":7981
 *     outreal = NaN
 *     retCode = lib.TA_WCLPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_WCLPRICE", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_WCLPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7981, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":7982
 *     retCode = lib.TA_WCLPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_WCLPRICE", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7932
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WCLPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ WCLPRICE(high, low, close)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.WCLPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":7986
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WILLR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ WILLR(high, low, close[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_313WILLR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_312WILLR[] = " WILLR(high, low, close[, timeperiod=?])\n\n    Williams' %R (Momentum Indicators)\n\n    Inputs:\n        prices: ['high', 'low', 'close']\n    Parameters:\n        timeperiod: 14\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_313WILLR = {"WILLR", (PyCFunction)__pyx_pw_5talib_6stream_313WILLR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_312WILLR};
static PyObject *__pyx_pw_5talib_6stream_313WILLR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_high = 0;
  PyArrayObject *__pyx_v_low = 0;
  PyArrayObject *__pyx_v_close = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WILLR (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_high,&__pyx_n_s_low,&__pyx_n_s_close,&__pyx_n_s_timeperiod,0};
    PyObject* values[4] = {0,0,0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_high)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("WILLR", 0, 3, 4, 1); __PYX_ERR(0, 7986, __pyx_L3_error)
        }
        case  2:
        if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--;
        else {
          __Pyx_RaiseArgtupleInvalid("WILLR", 0, 3, 4, 2); __PYX_ERR(0, 7986, __pyx_L3_error)
        }
        case  3:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[3] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "WILLR") < 0)) __PYX_ERR(0, 7986, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  4: values[3] = PyTuple_GET_ITEM(__pyx_args, 3);
        case  3: values[2] = PyTuple_GET_ITEM(__pyx_args, 2);
        values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_high = ((PyArrayObject *)values[0]);
    __pyx_v_low = ((PyArrayObject *)values[1]);
    __pyx_v_close = ((PyArrayObject *)values[2]);
    if (values[3]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[3]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 7986, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("WILLR", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 7986, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.WILLR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 7986, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 7986, __pyx_L1_error)
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 7986, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_312WILLR(__pyx_self, __pyx_v_high, __pyx_v_low, __pyx_v_close, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_312WILLR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_high_data;
  double *__pyx_v_low_data;
  double *__pyx_v_close_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("WILLR", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_high);
  __Pyx_INCREF((PyObject *)__pyx_v_low);
  __Pyx_INCREF((PyObject *)__pyx_v_close);

  /* "talib/stream.pyx":8009
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_high) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8010
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1039, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8010, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 8010, __pyx_L1_error)

    /* "talib/stream.pyx":8009
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 */
  }

  /* "talib/stream.pyx":8011
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_high->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8012
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1040, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8012, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 8012, __pyx_L1_error)

    /* "talib/stream.pyx":8011
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")
 *     if high.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":8013
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8014
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)             # <<<<<<<<<<<<<<
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8014, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8014, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":8013
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 */
  }

  /* "talib/stream.pyx":8015
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 */
  __pyx_v_high_data = ((double *)__pyx_v_high->data);

  /* "talib/stream.pyx":8016
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_low) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8017
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1041, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8017, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 8017, __pyx_L1_error)

    /* "talib/stream.pyx":8016
 *         high = PyArray_GETCONTIGUOUS(high)
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 */
  }

  /* "talib/stream.pyx":8018
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_low->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8019
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1042, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8019, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 8019, __pyx_L1_error)

    /* "talib/stream.pyx":8018
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")
 *     if low.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":8020
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8021
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)             # <<<<<<<<<<<<<<
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8021, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8021, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":8020
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 */
  }

  /* "talib/stream.pyx":8022
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data             # <<<<<<<<<<<<<<
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 */
  __pyx_v_low_data = ((double *)__pyx_v_low->data);

  /* "talib/stream.pyx":8023
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_close) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8024
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1043, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8024, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 8024, __pyx_L1_error)

    /* "talib/stream.pyx":8023
 *         low = PyArray_GETCONTIGUOUS(low)
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 */
  }

  /* "talib/stream.pyx":8025
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_close->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8026
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1044, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8026, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 8026, __pyx_L1_error)

    /* "talib/stream.pyx":8025
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")
 *     if close.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":8027
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8028
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)             # <<<<<<<<<<<<<<
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8028, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8028, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":8027
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 */
  }

  /* "talib/stream.pyx":8029
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data             # <<<<<<<<<<<<<<
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 */
  __pyx_v_close_data = ((double *)__pyx_v_close->data);

  /* "talib/stream.pyx":8030
 *         close = PyArray_GETCONTIGUOUS(close)
 *     close_data = <double*>close.data
 *     length = high.shape[0]             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_v_length = (__pyx_v_high->dimensions[0]);

  /* "talib/stream.pyx":8031
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8032
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1045, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8032, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 8032, __pyx_L1_error)

    /* "talib/stream.pyx":8031
 *     close_data = <double*>close.data
 *     length = high.shape[0]
 *     if length != low.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 */
  }

  /* "talib/stream.pyx":8033
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8034
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_WILLR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1046, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8034, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 8034, __pyx_L1_error)

    /* "talib/stream.pyx":8033
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:             # <<<<<<<<<<<<<<
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 */
  }

  /* "talib/stream.pyx":8035
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_WILLR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_WILLR", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":8036
 *         raise Exception("input lengths are different")
 *     outreal = NaN
 *     retCode = lib.TA_WILLR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_WILLR", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_WILLR((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_high_data, __pyx_v_low_data, __pyx_v_close_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":8037
 *     outreal = NaN
 *     retCode = lib.TA_WILLR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_WILLR", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_WILLR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":8038
 *     retCode = lib.TA_WILLR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_WILLR", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8038, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":7986
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WILLR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ WILLR(high, low, close[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.WILLR", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_high);
  __Pyx_XDECREF((PyObject *)__pyx_v_low);
  __Pyx_XDECREF((PyObject *)__pyx_v_close);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "talib/stream.pyx":8042
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ WMA(real[, timeperiod=?])
 * 
 */

/* Python wrapper */
static PyObject *__pyx_pw_5talib_6stream_315WMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/
static char __pyx_doc_5talib_6stream_314WMA[] = " WMA(real[, timeperiod=?])\n\n    Weighted Moving Average (Overlap Studies)\n\n    Inputs:\n        real: (any ndarray)\n    Parameters:\n        timeperiod: 30\n    Outputs:\n        real\n    ";
static PyMethodDef __pyx_mdef_5talib_6stream_315WMA = {"WMA", (PyCFunction)__pyx_pw_5talib_6stream_315WMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_6stream_314WMA};
static PyObject *__pyx_pw_5talib_6stream_315WMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) {
  PyArrayObject *__pyx_v_real = 0;
  int __pyx_v_timeperiod;
  PyObject *__pyx_r = 0;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("WMA (wrapper)", 0);
  {
    static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_real,&__pyx_n_s_timeperiod,0};
    PyObject* values[2] = {0,0};
    if (unlikely(__pyx_kwds)) {
      Py_ssize_t kw_args;
      const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args);
      switch (pos_args) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        case  0: break;
        default: goto __pyx_L5_argtuple_error;
      }
      kw_args = PyDict_Size(__pyx_kwds);
      switch (pos_args) {
        case  0:
        if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_real)) != 0)) kw_args--;
        else goto __pyx_L5_argtuple_error;
        case  1:
        if (kw_args > 0) {
          PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_timeperiod);
          if (value) { values[1] = value; kw_args--; }
        }
      }
      if (unlikely(kw_args > 0)) {
        if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "WMA") < 0)) __PYX_ERR(0, 8042, __pyx_L3_error)
      }
    } else {
      switch (PyTuple_GET_SIZE(__pyx_args)) {
        case  2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1);
        case  1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0);
        break;
        default: goto __pyx_L5_argtuple_error;
      }
    }
    __pyx_v_real = ((PyArrayObject *)values[0]);
    if (values[1]) {
      __pyx_v_timeperiod = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_timeperiod == (int)-1) && PyErr_Occurred())) __PYX_ERR(0, 8042, __pyx_L3_error)
    } else {
      __pyx_v_timeperiod = ((int)-2147483648);
    }
  }
  goto __pyx_L4_argument_unpacking_done;
  __pyx_L5_argtuple_error:;
  __Pyx_RaiseArgtupleInvalid("WMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 8042, __pyx_L3_error)
  __pyx_L3_error:;
  __Pyx_AddTraceback("talib.stream.WMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __Pyx_RefNannyFinishContext();
  return NULL;
  __pyx_L4_argument_unpacking_done:;
  if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(0, 8042, __pyx_L1_error)
  __pyx_r = __pyx_pf_5talib_6stream_314WMA(__pyx_self, __pyx_v_real, __pyx_v_timeperiod);

  /* function exit code */
  goto __pyx_L0;
  __pyx_L1_error:;
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyObject *__pyx_pf_5talib_6stream_314WMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) {
  npy_intp __pyx_v_length;
  TA_RetCode __pyx_v_retCode;
  double *__pyx_v_real_data;
  int __pyx_v_outbegidx;
  int __pyx_v_outnbelement;
  double __pyx_v_outreal;
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  PyObject *__pyx_t_2 = NULL;
  __Pyx_RefNannySetupContext("WMA", 0);
  __Pyx_INCREF((PyObject *)__pyx_v_real);

  /* "talib/stream.pyx":8063
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  __pyx_t_1 = ((PyArray_TYPE(__pyx_v_real) != NPY_DOUBLE) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8064
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1047, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8064, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 8064, __pyx_L1_error)

    /* "talib/stream.pyx":8063
 *         int outnbelement
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:             # <<<<<<<<<<<<<<
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 */
  }

  /* "talib/stream.pyx":8065
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  __pyx_t_1 = ((__pyx_v_real->nd != 1) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8066
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
    __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1048, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8066, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    __Pyx_Raise(__pyx_t_2, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
    __PYX_ERR(0, 8066, __pyx_L1_error)

    /* "talib/stream.pyx":8065
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")
 *     if real.ndim != 1:             # <<<<<<<<<<<<<<
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 */
  }

  /* "talib/stream.pyx":8067
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0);
  if (__pyx_t_1) {

    /* "talib/stream.pyx":8068
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)             # <<<<<<<<<<<<<<
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 */
    __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8068, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_2);
    if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8068, __pyx_L1_error)
    __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2));
    __pyx_t_2 = 0;

    /* "talib/stream.pyx":8067
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):             # <<<<<<<<<<<<<<
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 */
  }

  /* "talib/stream.pyx":8069
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data             # <<<<<<<<<<<<<<
 *     length = real.shape[0]
 *     outreal = NaN
 */
  __pyx_v_real_data = ((double *)__pyx_v_real->data);

  /* "talib/stream.pyx":8070
 *         real = PyArray_GETCONTIGUOUS(real)
 *     real_data = <double*>real.data
 *     length = real.shape[0]             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_WMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_v_length = (__pyx_v_real->dimensions[0]);

  /* "talib/stream.pyx":8071
 *     real_data = <double*>real.data
 *     length = real.shape[0]
 *     outreal = NaN             # <<<<<<<<<<<<<<
 *     retCode = lib.TA_WMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_WMA", retCode)
 */
  __pyx_v_outreal = __pyx_v_5talib_6stream_NaN;

  /* "talib/stream.pyx":8072
 *     length = real.shape[0]
 *     outreal = NaN
 *     retCode = lib.TA_WMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )             # <<<<<<<<<<<<<<
 *     _ta_check_success("TA_WMA", retCode)
 *     return outreal
 */
  __pyx_v_retCode = TA_WMA((__pyx_v_length - 1), (__pyx_v_length - 1), __pyx_v_real_data, __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), (&__pyx_v_outreal));

  /* "talib/stream.pyx":8073
 *     outreal = NaN
 *     retCode = lib.TA_WMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_WMA", retCode)             # <<<<<<<<<<<<<<
 *     return outreal
 * 
 */
  __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_WMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;

  /* "talib/stream.pyx":8074
 *     retCode = lib.TA_WMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 *     _ta_check_success("TA_WMA", retCode)
 *     return outreal             # <<<<<<<<<<<<<<
 * 
 * __all__ = ["ACOS","AD","ADD","ADOSC","ADX","ADXR","APO","AROON","AROONOSC","ASIN","ATAN","ATR","AVGPRICE","BBANDS","BETA","BOP","CCI","CDL2CROWS","CDL3BLACKCROWS","CDL3INSIDE","CDL3LINESTRIKE","CDL3OUTSIDE","CDL3STARSINSOUTH","CDL3WHITESOLDIERS","CDLABANDONEDBABY","CDLADVANCEBLOCK","CDLBELTHOLD","CDLBREAKAWAY","CDLCLOSINGMARUBOZU","CDLCONCEALBABYSWALL","CDLCOUNTERATTACK","CDLDARKCLOUDCOVER","CDLDOJI","CDLDOJISTAR","CDLDRAGONFLYDOJI","CDLENGULFING","CDLEVENINGDOJISTAR","CDLEVENINGSTAR","CDLGAPSIDESIDEWHITE","CDLGRAVESTONEDOJI","CDLHAMMER","CDLHANGINGMAN","CDLHARAMI","CDLHARAMICROSS","CDLHIGHWAVE","CDLHIKKAKE","CDLHIKKAKEMOD","CDLHOMINGPIGEON","CDLIDENTICAL3CROWS","CDLINNECK","CDLINVERTEDHAMMER","CDLKICKING","CDLKICKINGBYLENGTH","CDLLADDERBOTTOM","CDLLONGLEGGEDDOJI","CDLLONGLINE","CDLMARUBOZU","CDLMATCHINGLOW","CDLMATHOLD","CDLMORNINGDOJISTAR","CDLMORNINGSTAR","CDLONNECK","CDLPIERCING","CDLRICKSHAWMAN","CDLRISEFALL3METHODS","CDLSEPARATINGLINES","CDLSHOOTINGSTAR","CDLSHORTLINE","CDLSPINNINGTOP","CDLSTALLEDPATTERN","CDLSTICKSANDWICH","CDLTAKURI","CDLTASUKIGAP","CDLTHRUSTING","CDLTRISTAR","CDLUNIQUE3RIVER","CDLUPSIDEGAP2CROWS","CDLXSIDEGAP3METHODS","CEIL","CMO","CORREL","COS","COSH","DEMA","DIV","DX","EMA","EXP","FLOOR","HT_DCPERIOD","HT_DCPHASE","HT_PHASOR","HT_SINE","HT_TRENDLINE","HT_TRENDMODE","KAMA","LINEARREG","LINEARREG_ANGLE","LINEARREG_INTERCEPT","LINEARREG_SLOPE","LN","LOG10","MA","MACD","MACDEXT","MACDFIX","MAMA","MAVP","MAX","MAXINDEX","MEDPRICE","MFI","MIDPOINT","MIDPRICE","MIN","MININDEX","MINMAX","MINMAXINDEX","MINUS_DI","MINUS_DM","MOM","MULT","NATR","OBV","PLUS_DI","PLUS_DM","PPO","ROC","ROCP","ROCR","ROCR100","RSI","SAR","SAREXT","SIN","SINH","SMA","SQRT","STDDEV","STOCH","STOCHF","STOCHRSI","SUB","SUM","T3","TAN","TANH","TEMA","TRANGE","TRIMA","TRIX","TSF","TYPPRICE","ULTOSC","VAR","WCLPRICE","WILLR","WMA"]
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8074, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __pyx_r = __pyx_t_2;
  __pyx_t_2 = 0;
  goto __pyx_L0;

  /* "talib/stream.pyx":8042
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ WMA(real[, timeperiod=?])
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_AddTraceback("talib.stream.WMA", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_real);
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":197
 *         # experimental exception made for __getbuffer__ and __releasebuffer__
 *         # -- the details of this may change.
 *         def __getbuffer__(ndarray self, Py_buffer* info, int flags):             # <<<<<<<<<<<<<<
 *             # This implementation of getbuffer is geared towards Cython
 *             # requirements, and does not yet fullfill the PEP.
 */

/* Python wrapper */
static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags); /*proto*/
static CYTHON_UNUSED int __pyx_pw_5numpy_7ndarray_1__getbuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__getbuffer__ (wrapper)", 0);
  __pyx_r = __pyx_pf_5numpy_7ndarray___getbuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info), ((int)__pyx_v_flags));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static int __pyx_pf_5numpy_7ndarray___getbuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info, int __pyx_v_flags) {
  int __pyx_v_copy_shape;
  int __pyx_v_i;
  int __pyx_v_ndim;
  int __pyx_v_endian_detector;
  int __pyx_v_little_endian;
  int __pyx_v_t;
  char *__pyx_v_f;
  PyArray_Descr *__pyx_v_descr = 0;
  int __pyx_v_offset;
  int __pyx_v_hasfields;
  int __pyx_r;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  int __pyx_t_4;
  int __pyx_t_5;
  PyObject *__pyx_t_6 = NULL;
  char *__pyx_t_7;
  __Pyx_RefNannySetupContext("__getbuffer__", 0);
  if (__pyx_v_info != NULL) {
    __pyx_v_info->obj = Py_None; __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(__pyx_v_info->obj);
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":203
 *             # of flags
 * 
 *             if info == NULL: return             # <<<<<<<<<<<<<<
 * 
 *             cdef int copy_shape, i, ndim
 */
  __pyx_t_1 = ((__pyx_v_info == NULL) != 0);
  if (__pyx_t_1) {
    __pyx_r = 0;
    goto __pyx_L0;
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":206
 * 
 *             cdef int copy_shape, i, ndim
 *             cdef int endian_detector = 1             # <<<<<<<<<<<<<<
 *             cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
 * 
 */
  __pyx_v_endian_detector = 1;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":207
 *             cdef int copy_shape, i, ndim
 *             cdef int endian_detector = 1
 *             cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)             # <<<<<<<<<<<<<<
 * 
 *             ndim = PyArray_NDIM(self)
 */
  __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":209
 *             cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
 * 
 *             ndim = PyArray_NDIM(self)             # <<<<<<<<<<<<<<
 * 
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 */
  __pyx_v_ndim = PyArray_NDIM(__pyx_v_self);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":211
 *             ndim = PyArray_NDIM(self)
 * 
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):             # <<<<<<<<<<<<<<
 *                 copy_shape = 1
 *             else:
 */
  __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
  if (__pyx_t_1) {

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":212
 * 
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 *                 copy_shape = 1             # <<<<<<<<<<<<<<
 *             else:
 *                 copy_shape = 0
 */
    __pyx_v_copy_shape = 1;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":211
 *             ndim = PyArray_NDIM(self)
 * 
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):             # <<<<<<<<<<<<<<
 *                 copy_shape = 1
 *             else:
 */
    goto __pyx_L4;
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":214
 *                 copy_shape = 1
 *             else:
 *                 copy_shape = 0             # <<<<<<<<<<<<<<
 * 
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
 */
  /*else*/ {
    __pyx_v_copy_shape = 0;
  }
  __pyx_L4:;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216
 *                 copy_shape = 0
 * 
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not C contiguous")
 */
  __pyx_t_2 = (((__pyx_v_flags & PyBUF_C_CONTIGUOUS) == PyBUF_C_CONTIGUOUS) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L6_bool_binop_done;
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":217
 * 
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):             # <<<<<<<<<<<<<<
 *                 raise ValueError(u"ndarray is not C contiguous")
 * 
 */
  __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_C_CONTIGUOUS) != 0)) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L6_bool_binop_done:;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216
 *                 copy_shape = 0
 * 
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not C contiguous")
 */
  if (__pyx_t_1) {

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":218
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not C contiguous")             # <<<<<<<<<<<<<<
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__1049, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 218, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 218, __pyx_L1_error)

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":216
 *                 copy_shape = 0
 * 
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not C contiguous")
 */
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220
 *                 raise ValueError(u"ndarray is not C contiguous")
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not Fortran contiguous")
 */
  __pyx_t_2 = (((__pyx_v_flags & PyBUF_F_CONTIGUOUS) == PyBUF_F_CONTIGUOUS) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L9_bool_binop_done;
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":221
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):             # <<<<<<<<<<<<<<
 *                 raise ValueError(u"ndarray is not Fortran contiguous")
 * 
 */
  __pyx_t_2 = ((!(PyArray_CHKFLAGS(__pyx_v_self, NPY_F_CONTIGUOUS) != 0)) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L9_bool_binop_done:;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220
 *                 raise ValueError(u"ndarray is not C contiguous")
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not Fortran contiguous")
 */
  if (__pyx_t_1) {

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":222
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not Fortran contiguous")             # <<<<<<<<<<<<<<
 * 
 *             info.buf = PyArray_DATA(self)
 */
    __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__1050, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 222, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_Raise(__pyx_t_3, 0, 0, 0);
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __PYX_ERR(1, 222, __pyx_L1_error)

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":220
 *                 raise ValueError(u"ndarray is not C contiguous")
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)             # <<<<<<<<<<<<<<
 *                 and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not Fortran contiguous")
 */
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":224
 *                 raise ValueError(u"ndarray is not Fortran contiguous")
 * 
 *             info.buf = PyArray_DATA(self)             # <<<<<<<<<<<<<<
 *             info.ndim = ndim
 *             if copy_shape:
 */
  __pyx_v_info->buf = PyArray_DATA(__pyx_v_self);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":225
 * 
 *             info.buf = PyArray_DATA(self)
 *             info.ndim = ndim             # <<<<<<<<<<<<<<
 *             if copy_shape:
 *                 # Allocate new buffer for strides and shape info.
 */
  __pyx_v_info->ndim = __pyx_v_ndim;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":226
 *             info.buf = PyArray_DATA(self)
 *             info.ndim = ndim
 *             if copy_shape:             # <<<<<<<<<<<<<<
 *                 # Allocate new buffer for strides and shape info.
 *                 # This is allocated as one block, strides first.
 */
  __pyx_t_1 = (__pyx_v_copy_shape != 0);
  if (__pyx_t_1) {

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":229
 *                 # Allocate new buffer for strides and shape info.
 *                 # This is allocated as one block, strides first.
 *                 info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2)             # <<<<<<<<<<<<<<
 *                 info.shape = info.strides + ndim
 *                 for i in range(ndim):
 */
    __pyx_v_info->strides = ((Py_ssize_t *)malloc((((sizeof(Py_ssize_t)) * ((size_t)__pyx_v_ndim)) * 2)));

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":230
 *                 # This is allocated as one block, strides first.
 *                 info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2)
 *                 info.shape = info.strides + ndim             # <<<<<<<<<<<<<<
 *                 for i in range(ndim):
 *                     info.strides[i] = PyArray_STRIDES(self)[i]
 */
    __pyx_v_info->shape = (__pyx_v_info->strides + __pyx_v_ndim);

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":231
 *                 info.strides = <Py_ssize_t*>stdlib.malloc(sizeof(Py_ssize_t) * <size_t>ndim * 2)
 *                 info.shape = info.strides + ndim
 *                 for i in range(ndim):             # <<<<<<<<<<<<<<
 *                     info.strides[i] = PyArray_STRIDES(self)[i]
 *                     info.shape[i] = PyArray_DIMS(self)[i]
 */
    __pyx_t_4 = __pyx_v_ndim;
    for (__pyx_t_5 = 0; __pyx_t_5 < __pyx_t_4; __pyx_t_5+=1) {
      __pyx_v_i = __pyx_t_5;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":232
 *                 info.shape = info.strides + ndim
 *                 for i in range(ndim):
 *                     info.strides[i] = PyArray_STRIDES(self)[i]             # <<<<<<<<<<<<<<
 *                     info.shape[i] = PyArray_DIMS(self)[i]
 *             else:
 */
      (__pyx_v_info->strides[__pyx_v_i]) = (PyArray_STRIDES(__pyx_v_self)[__pyx_v_i]);

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":233
 *                 for i in range(ndim):
 *                     info.strides[i] = PyArray_STRIDES(self)[i]
 *                     info.shape[i] = PyArray_DIMS(self)[i]             # <<<<<<<<<<<<<<
 *             else:
 *                 info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
 */
      (__pyx_v_info->shape[__pyx_v_i]) = (PyArray_DIMS(__pyx_v_self)[__pyx_v_i]);
    }

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":226
 *             info.buf = PyArray_DATA(self)
 *             info.ndim = ndim
 *             if copy_shape:             # <<<<<<<<<<<<<<
 *                 # Allocate new buffer for strides and shape info.
 *                 # This is allocated as one block, strides first.
 */
    goto __pyx_L11;
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":235
 *                     info.shape[i] = PyArray_DIMS(self)[i]
 *             else:
 *                 info.strides = <Py_ssize_t*>PyArray_STRIDES(self)             # <<<<<<<<<<<<<<
 *                 info.shape = <Py_ssize_t*>PyArray_DIMS(self)
 *             info.suboffsets = NULL
 */
  /*else*/ {
    __pyx_v_info->strides = ((Py_ssize_t *)PyArray_STRIDES(__pyx_v_self));

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":236
 *             else:
 *                 info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
 *                 info.shape = <Py_ssize_t*>PyArray_DIMS(self)             # <<<<<<<<<<<<<<
 *             info.suboffsets = NULL
 *             info.itemsize = PyArray_ITEMSIZE(self)
 */
    __pyx_v_info->shape = ((Py_ssize_t *)PyArray_DIMS(__pyx_v_self));
  }
  __pyx_L11:;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":237
 *                 info.strides = <Py_ssize_t*>PyArray_STRIDES(self)
 *                 info.shape = <Py_ssize_t*>PyArray_DIMS(self)
 *             info.suboffsets = NULL             # <<<<<<<<<<<<<<
 *             info.itemsize = PyArray_ITEMSIZE(self)
 *             info.readonly = not PyArray_ISWRITEABLE(self)
 */
  __pyx_v_info->suboffsets = NULL;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":238
 *                 info.shape = <Py_ssize_t*>PyArray_DIMS(self)
 *             info.suboffsets = NULL
 *             info.itemsize = PyArray_ITEMSIZE(self)             # <<<<<<<<<<<<<<
 *             info.readonly = not PyArray_ISWRITEABLE(self)
 * 
 */
  __pyx_v_info->itemsize = PyArray_ITEMSIZE(__pyx_v_self);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":239
 *             info.suboffsets = NULL
 *             info.itemsize = PyArray_ITEMSIZE(self)
 *             info.readonly = not PyArray_ISWRITEABLE(self)             # <<<<<<<<<<<<<<
 * 
 *             cdef int t
 */
  __pyx_v_info->readonly = (!(PyArray_ISWRITEABLE(__pyx_v_self) != 0));

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":242
 * 
 *             cdef int t
 *             cdef char* f = NULL             # <<<<<<<<<<<<<<
 *             cdef dtype descr = self.descr
 *             cdef int offset
 */
  __pyx_v_f = NULL;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":243
 *             cdef int t
 *             cdef char* f = NULL
 *             cdef dtype descr = self.descr             # <<<<<<<<<<<<<<
 *             cdef int offset
 * 
 */
  __pyx_t_3 = ((PyObject *)__pyx_v_self->descr);
  __Pyx_INCREF(__pyx_t_3);
  __pyx_v_descr = ((PyArray_Descr *)__pyx_t_3);
  __pyx_t_3 = 0;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":246
 *             cdef int offset
 * 
 *             cdef bint hasfields = PyDataType_HASFIELDS(descr)             # <<<<<<<<<<<<<<
 * 
 *             if not hasfields and not copy_shape:
 */
  __pyx_v_hasfields = PyDataType_HASFIELDS(__pyx_v_descr);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":248
 *             cdef bint hasfields = PyDataType_HASFIELDS(descr)
 * 
 *             if not hasfields and not copy_shape:             # <<<<<<<<<<<<<<
 *                 # do not call releasebuffer
 *                 info.obj = None
 */
  __pyx_t_2 = ((!(__pyx_v_hasfields != 0)) != 0);
  if (__pyx_t_2) {
  } else {
    __pyx_t_1 = __pyx_t_2;
    goto __pyx_L15_bool_binop_done;
  }
  __pyx_t_2 = ((!(__pyx_v_copy_shape != 0)) != 0);
  __pyx_t_1 = __pyx_t_2;
  __pyx_L15_bool_binop_done:;
  if (__pyx_t_1) {

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":250
 *             if not hasfields and not copy_shape:
 *                 # do not call releasebuffer
 *                 info.obj = None             # <<<<<<<<<<<<<<
 *             else:
 *                 # need to call releasebuffer
 */
    __Pyx_INCREF(Py_None);
    __Pyx_GIVEREF(Py_None);
    __Pyx_GOTREF(__pyx_v_info->obj);
    __Pyx_DECREF(__pyx_v_info->obj);
    __pyx_v_info->obj = Py_None;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":248
 *             cdef bint hasfields = PyDataType_HASFIELDS(descr)
 * 
 *             if not hasfields and not copy_shape:             # <<<<<<<<<<<<<<
 *                 # do not call releasebuffer
 *                 info.obj = None
 */
    goto __pyx_L14;
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":253
 *             else:
 *                 # need to call releasebuffer
 *                 info.obj = self             # <<<<<<<<<<<<<<
 * 
 *             if not hasfields:
 */
  /*else*/ {
    __Pyx_INCREF(((PyObject *)__pyx_v_self));
    __Pyx_GIVEREF(((PyObject *)__pyx_v_self));
    __Pyx_GOTREF(__pyx_v_info->obj);
    __Pyx_DECREF(__pyx_v_info->obj);
    __pyx_v_info->obj = ((PyObject *)__pyx_v_self);
  }
  __pyx_L14:;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":255
 *                 info.obj = self
 * 
 *             if not hasfields:             # <<<<<<<<<<<<<<
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or
 */
  __pyx_t_1 = ((!(__pyx_v_hasfields != 0)) != 0);
  if (__pyx_t_1) {

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":256
 * 
 *             if not hasfields:
 *                 t = descr.type_num             # <<<<<<<<<<<<<<
 *                 if ((descr.byteorder == c'>' and little_endian) or
 *                     (descr.byteorder == c'<' and not little_endian)):
 */
    __pyx_t_4 = __pyx_v_descr->type_num;
    __pyx_v_t = __pyx_t_4;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":257
 *             if not hasfields:
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")
 */
    __pyx_t_2 = ((__pyx_v_descr->byteorder == '>') != 0);
    if (!__pyx_t_2) {
      goto __pyx_L20_next_or;
    } else {
    }
    __pyx_t_2 = (__pyx_v_little_endian != 0);
    if (!__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L19_bool_binop_done;
    }
    __pyx_L20_next_or:;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":258
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or
 *                     (descr.byteorder == c'<' and not little_endian)):             # <<<<<<<<<<<<<<
 *                     raise ValueError(u"Non-native byte order not supported")
 *                 if   t == NPY_BYTE:        f = "b"
 */
    __pyx_t_2 = ((__pyx_v_descr->byteorder == '<') != 0);
    if (__pyx_t_2) {
    } else {
      __pyx_t_1 = __pyx_t_2;
      goto __pyx_L19_bool_binop_done;
    }
    __pyx_t_2 = ((!(__pyx_v_little_endian != 0)) != 0);
    __pyx_t_1 = __pyx_t_2;
    __pyx_L19_bool_binop_done:;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":257
 *             if not hasfields:
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")
 */
    if (__pyx_t_1) {

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":259
 *                 if ((descr.byteorder == c'>' and little_endian) or
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")             # <<<<<<<<<<<<<<
 *                 if   t == NPY_BYTE:        f = "b"
 *                 elif t == NPY_UBYTE:       f = "B"
 */
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__1051, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 259, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(1, 259, __pyx_L1_error)

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":257
 *             if not hasfields:
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")
 */
    }

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":260
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")
 *                 if   t == NPY_BYTE:        f = "b"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_UBYTE:       f = "B"
 *                 elif t == NPY_SHORT:       f = "h"
 */
    switch (__pyx_v_t) {
      case NPY_BYTE:
      __pyx_v_f = ((char *)"b");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":261
 *                     raise ValueError(u"Non-native byte order not supported")
 *                 if   t == NPY_BYTE:        f = "b"
 *                 elif t == NPY_UBYTE:       f = "B"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_SHORT:       f = "h"
 *                 elif t == NPY_USHORT:      f = "H"
 */
      case NPY_UBYTE:
      __pyx_v_f = ((char *)"B");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":262
 *                 if   t == NPY_BYTE:        f = "b"
 *                 elif t == NPY_UBYTE:       f = "B"
 *                 elif t == NPY_SHORT:       f = "h"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_USHORT:      f = "H"
 *                 elif t == NPY_INT:         f = "i"
 */
      case NPY_SHORT:
      __pyx_v_f = ((char *)"h");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":263
 *                 elif t == NPY_UBYTE:       f = "B"
 *                 elif t == NPY_SHORT:       f = "h"
 *                 elif t == NPY_USHORT:      f = "H"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_INT:         f = "i"
 *                 elif t == NPY_UINT:        f = "I"
 */
      case NPY_USHORT:
      __pyx_v_f = ((char *)"H");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":264
 *                 elif t == NPY_SHORT:       f = "h"
 *                 elif t == NPY_USHORT:      f = "H"
 *                 elif t == NPY_INT:         f = "i"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_UINT:        f = "I"
 *                 elif t == NPY_LONG:        f = "l"
 */
      case NPY_INT:
      __pyx_v_f = ((char *)"i");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":265
 *                 elif t == NPY_USHORT:      f = "H"
 *                 elif t == NPY_INT:         f = "i"
 *                 elif t == NPY_UINT:        f = "I"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_LONG:        f = "l"
 *                 elif t == NPY_ULONG:       f = "L"
 */
      case NPY_UINT:
      __pyx_v_f = ((char *)"I");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":266
 *                 elif t == NPY_INT:         f = "i"
 *                 elif t == NPY_UINT:        f = "I"
 *                 elif t == NPY_LONG:        f = "l"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_ULONG:       f = "L"
 *                 elif t == NPY_LONGLONG:    f = "q"
 */
      case NPY_LONG:
      __pyx_v_f = ((char *)"l");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":267
 *                 elif t == NPY_UINT:        f = "I"
 *                 elif t == NPY_LONG:        f = "l"
 *                 elif t == NPY_ULONG:       f = "L"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_LONGLONG:    f = "q"
 *                 elif t == NPY_ULONGLONG:   f = "Q"
 */
      case NPY_ULONG:
      __pyx_v_f = ((char *)"L");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":268
 *                 elif t == NPY_LONG:        f = "l"
 *                 elif t == NPY_ULONG:       f = "L"
 *                 elif t == NPY_LONGLONG:    f = "q"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_ULONGLONG:   f = "Q"
 *                 elif t == NPY_FLOAT:       f = "f"
 */
      case NPY_LONGLONG:
      __pyx_v_f = ((char *)"q");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":269
 *                 elif t == NPY_ULONG:       f = "L"
 *                 elif t == NPY_LONGLONG:    f = "q"
 *                 elif t == NPY_ULONGLONG:   f = "Q"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_FLOAT:       f = "f"
 *                 elif t == NPY_DOUBLE:      f = "d"
 */
      case NPY_ULONGLONG:
      __pyx_v_f = ((char *)"Q");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":270
 *                 elif t == NPY_LONGLONG:    f = "q"
 *                 elif t == NPY_ULONGLONG:   f = "Q"
 *                 elif t == NPY_FLOAT:       f = "f"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_DOUBLE:      f = "d"
 *                 elif t == NPY_LONGDOUBLE:  f = "g"
 */
      case NPY_FLOAT:
      __pyx_v_f = ((char *)"f");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":271
 *                 elif t == NPY_ULONGLONG:   f = "Q"
 *                 elif t == NPY_FLOAT:       f = "f"
 *                 elif t == NPY_DOUBLE:      f = "d"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_LONGDOUBLE:  f = "g"
 *                 elif t == NPY_CFLOAT:      f = "Zf"
 */
      case NPY_DOUBLE:
      __pyx_v_f = ((char *)"d");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":272
 *                 elif t == NPY_FLOAT:       f = "f"
 *                 elif t == NPY_DOUBLE:      f = "d"
 *                 elif t == NPY_LONGDOUBLE:  f = "g"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_CFLOAT:      f = "Zf"
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
 */
      case NPY_LONGDOUBLE:
      __pyx_v_f = ((char *)"g");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":273
 *                 elif t == NPY_DOUBLE:      f = "d"
 *                 elif t == NPY_LONGDOUBLE:  f = "g"
 *                 elif t == NPY_CFLOAT:      f = "Zf"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"
 */
      case NPY_CFLOAT:
      __pyx_v_f = ((char *)"Zf");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":274
 *                 elif t == NPY_LONGDOUBLE:  f = "g"
 *                 elif t == NPY_CFLOAT:      f = "Zf"
 *                 elif t == NPY_CDOUBLE:     f = "Zd"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"
 *                 elif t == NPY_OBJECT:      f = "O"
 */
      case NPY_CDOUBLE:
      __pyx_v_f = ((char *)"Zd");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":275
 *                 elif t == NPY_CFLOAT:      f = "Zf"
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"             # <<<<<<<<<<<<<<
 *                 elif t == NPY_OBJECT:      f = "O"
 *                 else:
 */
      case NPY_CLONGDOUBLE:
      __pyx_v_f = ((char *)"Zg");
      break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":276
 *                 elif t == NPY_CDOUBLE:     f = "Zd"
 *                 elif t == NPY_CLONGDOUBLE: f = "Zg"
 *                 elif t == NPY_OBJECT:      f = "O"             # <<<<<<<<<<<<<<
 *                 else:
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
 */
      case NPY_OBJECT:
      __pyx_v_f = ((char *)"O");
      break;
      default:

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":278
 *                 elif t == NPY_OBJECT:      f = "O"
 *                 else:
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)             # <<<<<<<<<<<<<<
 *                 info.format = f
 *                 return
 */
      __pyx_t_3 = __Pyx_PyInt_From_int(__pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 278, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_6 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_t_3); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 278, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 278, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_GIVEREF(__pyx_t_6);
      PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_6);
      __pyx_t_6 = 0;
      __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_3, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 278, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_6);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __Pyx_Raise(__pyx_t_6, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0;
      __PYX_ERR(1, 278, __pyx_L1_error)
      break;
    }

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":279
 *                 else:
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
 *                 info.format = f             # <<<<<<<<<<<<<<
 *                 return
 *             else:
 */
    __pyx_v_info->format = __pyx_v_f;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":280
 *                     raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
 *                 info.format = f
 *                 return             # <<<<<<<<<<<<<<
 *             else:
 *                 info.format = <char*>stdlib.malloc(_buffer_format_string_len)
 */
    __pyx_r = 0;
    goto __pyx_L0;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":255
 *                 info.obj = self
 * 
 *             if not hasfields:             # <<<<<<<<<<<<<<
 *                 t = descr.type_num
 *                 if ((descr.byteorder == c'>' and little_endian) or
 */
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":282
 *                 return
 *             else:
 *                 info.format = <char*>stdlib.malloc(_buffer_format_string_len)             # <<<<<<<<<<<<<<
 *                 info.format[0] = c'^' # Native data types, manual alignment
 *                 offset = 0
 */
  /*else*/ {
    __pyx_v_info->format = ((char *)malloc(0xFF));

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":283
 *             else:
 *                 info.format = <char*>stdlib.malloc(_buffer_format_string_len)
 *                 info.format[0] = c'^' # Native data types, manual alignment             # <<<<<<<<<<<<<<
 *                 offset = 0
 *                 f = _util_dtypestring(descr, info.format + 1,
 */
    (__pyx_v_info->format[0]) = '^';

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":284
 *                 info.format = <char*>stdlib.malloc(_buffer_format_string_len)
 *                 info.format[0] = c'^' # Native data types, manual alignment
 *                 offset = 0             # <<<<<<<<<<<<<<
 *                 f = _util_dtypestring(descr, info.format + 1,
 *                                       info.format + _buffer_format_string_len,
 */
    __pyx_v_offset = 0;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":285
 *                 info.format[0] = c'^' # Native data types, manual alignment
 *                 offset = 0
 *                 f = _util_dtypestring(descr, info.format + 1,             # <<<<<<<<<<<<<<
 *                                       info.format + _buffer_format_string_len,
 *                                       &offset)
 */
    __pyx_t_7 = __pyx_f_5numpy__util_dtypestring(__pyx_v_descr, (__pyx_v_info->format + 1), (__pyx_v_info->format + 0xFF), (&__pyx_v_offset)); if (unlikely(__pyx_t_7 == NULL)) __PYX_ERR(1, 285, __pyx_L1_error)
    __pyx_v_f = __pyx_t_7;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":288
 *                                       info.format + _buffer_format_string_len,
 *                                       &offset)
 *                 f[0] = c'\0' # Terminate format string             # <<<<<<<<<<<<<<
 * 
 *         def __releasebuffer__(ndarray self, Py_buffer* info):
 */
    (__pyx_v_f[0]) = '\x00';
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":197
 *         # experimental exception made for __getbuffer__ and __releasebuffer__
 *         # -- the details of this may change.
 *         def __getbuffer__(ndarray self, Py_buffer* info, int flags):             # <<<<<<<<<<<<<<
 *             # This implementation of getbuffer is geared towards Cython
 *             # requirements, and does not yet fullfill the PEP.
 */

  /* function exit code */
  __pyx_r = 0;
  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_6);
  __Pyx_AddTraceback("numpy.ndarray.__getbuffer__", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = -1;
  if (__pyx_v_info != NULL && __pyx_v_info->obj != NULL) {
    __Pyx_GOTREF(__pyx_v_info->obj);
    __Pyx_DECREF(__pyx_v_info->obj); __pyx_v_info->obj = NULL;
  }
  goto __pyx_L2;
  __pyx_L0:;
  if (__pyx_v_info != NULL && __pyx_v_info->obj == Py_None) {
    __Pyx_GOTREF(Py_None);
    __Pyx_DECREF(Py_None); __pyx_v_info->obj = NULL;
  }
  __pyx_L2:;
  __Pyx_XDECREF((PyObject *)__pyx_v_descr);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":290
 *                 f[0] = c'\0' # Terminate format string
 * 
 *         def __releasebuffer__(ndarray self, Py_buffer* info):             # <<<<<<<<<<<<<<
 *             if PyArray_HASFIELDS(self):
 *                 stdlib.free(info.format)
 */

/* Python wrapper */
static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info); /*proto*/
static CYTHON_UNUSED void __pyx_pw_5numpy_7ndarray_3__releasebuffer__(PyObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__releasebuffer__ (wrapper)", 0);
  __pyx_pf_5numpy_7ndarray_2__releasebuffer__(((PyArrayObject *)__pyx_v_self), ((Py_buffer *)__pyx_v_info));

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

static void __pyx_pf_5numpy_7ndarray_2__releasebuffer__(PyArrayObject *__pyx_v_self, Py_buffer *__pyx_v_info) {
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("__releasebuffer__", 0);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":291
 * 
 *         def __releasebuffer__(ndarray self, Py_buffer* info):
 *             if PyArray_HASFIELDS(self):             # <<<<<<<<<<<<<<
 *                 stdlib.free(info.format)
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 */
  __pyx_t_1 = (PyArray_HASFIELDS(__pyx_v_self) != 0);
  if (__pyx_t_1) {

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":292
 *         def __releasebuffer__(ndarray self, Py_buffer* info):
 *             if PyArray_HASFIELDS(self):
 *                 stdlib.free(info.format)             # <<<<<<<<<<<<<<
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 *                 stdlib.free(info.strides)
 */
    free(__pyx_v_info->format);

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":291
 * 
 *         def __releasebuffer__(ndarray self, Py_buffer* info):
 *             if PyArray_HASFIELDS(self):             # <<<<<<<<<<<<<<
 *                 stdlib.free(info.format)
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 */
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":293
 *             if PyArray_HASFIELDS(self):
 *                 stdlib.free(info.format)
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):             # <<<<<<<<<<<<<<
 *                 stdlib.free(info.strides)
 *                 # info.shape was stored after info.strides in the same block
 */
  __pyx_t_1 = (((sizeof(npy_intp)) != (sizeof(Py_ssize_t))) != 0);
  if (__pyx_t_1) {

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":294
 *                 stdlib.free(info.format)
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):
 *                 stdlib.free(info.strides)             # <<<<<<<<<<<<<<
 *                 # info.shape was stored after info.strides in the same block
 * 
 */
    free(__pyx_v_info->strides);

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":293
 *             if PyArray_HASFIELDS(self):
 *                 stdlib.free(info.format)
 *             if sizeof(npy_intp) != sizeof(Py_ssize_t):             # <<<<<<<<<<<<<<
 *                 stdlib.free(info.strides)
 *                 # info.shape was stored after info.strides in the same block
 */
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":290
 *                 f[0] = c'\0' # Terminate format string
 * 
 *         def __releasebuffer__(ndarray self, Py_buffer* info):             # <<<<<<<<<<<<<<
 *             if PyArray_HASFIELDS(self):
 *                 stdlib.free(info.format)
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":770
 * ctypedef npy_cdouble     complex_t
 * 
 * cdef inline object PyArray_MultiIterNew1(a):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew1(PyObject *__pyx_v_a) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew1", 0);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":771
 * 
 * cdef inline object PyArray_MultiIterNew1(a):
 *     return PyArray_MultiIterNew(1, <void*>a)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(1, ((void *)__pyx_v_a)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":770
 * ctypedef npy_cdouble     complex_t
 * 
 * cdef inline object PyArray_MultiIterNew1(a):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew1", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":773
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew2(PyObject *__pyx_v_a, PyObject *__pyx_v_b) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew2", 0);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":774
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(2, ((void *)__pyx_v_a), ((void *)__pyx_v_b)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 774, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":773
 *     return PyArray_MultiIterNew(1, <void*>a)
 * 
 * cdef inline object PyArray_MultiIterNew2(a, b):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew2", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":776
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew3(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew3", 0);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":777
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(3, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":776
 *     return PyArray_MultiIterNew(2, <void*>a, <void*>b)
 * 
 * cdef inline object PyArray_MultiIterNew3(a, b, c):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew3", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":779
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew4(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew4", 0);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":780
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)             # <<<<<<<<<<<<<<
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(4, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":779
 *     return PyArray_MultiIterNew(3, <void*>a, <void*>b, <void*> c)
 * 
 * cdef inline object PyArray_MultiIterNew4(a, b, c, d):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew4", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":782
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_PyArray_MultiIterNew5(PyObject *__pyx_v_a, PyObject *__pyx_v_b, PyObject *__pyx_v_c, PyObject *__pyx_v_d, PyObject *__pyx_v_e) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  __Pyx_RefNannySetupContext("PyArray_MultiIterNew5", 0);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":783
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)             # <<<<<<<<<<<<<<
 * 
 * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:
 */
  __Pyx_XDECREF(__pyx_r);
  __pyx_t_1 = PyArray_MultiIterNew(5, ((void *)__pyx_v_a), ((void *)__pyx_v_b), ((void *)__pyx_v_c), ((void *)__pyx_v_d), ((void *)__pyx_v_e)); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_1);
  __pyx_r = __pyx_t_1;
  __pyx_t_1 = 0;
  goto __pyx_L0;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":782
 *     return PyArray_MultiIterNew(4, <void*>a, <void*>b, <void*>c, <void*> d)
 * 
 * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e):             # <<<<<<<<<<<<<<
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_AddTraceback("numpy.PyArray_MultiIterNew5", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = 0;
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":785
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:             # <<<<<<<<<<<<<<
 *     # Recursive utility function used in __getbuffer__ to get format
 *     # string. The new location in the format string is returned.
 */

static CYTHON_INLINE char *__pyx_f_5numpy__util_dtypestring(PyArray_Descr *__pyx_v_descr, char *__pyx_v_f, char *__pyx_v_end, int *__pyx_v_offset) {
  PyArray_Descr *__pyx_v_child = 0;
  int __pyx_v_endian_detector;
  int __pyx_v_little_endian;
  PyObject *__pyx_v_fields = 0;
  PyObject *__pyx_v_childname = NULL;
  PyObject *__pyx_v_new_offset = NULL;
  PyObject *__pyx_v_t = NULL;
  char *__pyx_r;
  __Pyx_RefNannyDeclarations
  PyObject *__pyx_t_1 = NULL;
  Py_ssize_t __pyx_t_2;
  PyObject *__pyx_t_3 = NULL;
  PyObject *__pyx_t_4 = NULL;
  int __pyx_t_5;
  int __pyx_t_6;
  int __pyx_t_7;
  long __pyx_t_8;
  char *__pyx_t_9;
  __Pyx_RefNannySetupContext("_util_dtypestring", 0);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":790
 * 
 *     cdef dtype child
 *     cdef int endian_detector = 1             # <<<<<<<<<<<<<<
 *     cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)
 *     cdef tuple fields
 */
  __pyx_v_endian_detector = 1;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":791
 *     cdef dtype child
 *     cdef int endian_detector = 1
 *     cdef bint little_endian = ((<char*>&endian_detector)[0] != 0)             # <<<<<<<<<<<<<<
 *     cdef tuple fields
 * 
 */
  __pyx_v_little_endian = ((((char *)(&__pyx_v_endian_detector))[0]) != 0);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":794
 *     cdef tuple fields
 * 
 *     for childname in descr.names:             # <<<<<<<<<<<<<<
 *         fields = descr.fields[childname]
 *         child, new_offset = fields
 */
  if (unlikely(__pyx_v_descr->names == Py_None)) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
    __PYX_ERR(1, 794, __pyx_L1_error)
  }
  __pyx_t_1 = __pyx_v_descr->names; __Pyx_INCREF(__pyx_t_1); __pyx_t_2 = 0;
  for (;;) {
    if (__pyx_t_2 >= PyTuple_GET_SIZE(__pyx_t_1)) break;
    #if CYTHON_COMPILING_IN_CPYTHON
    __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_2); __Pyx_INCREF(__pyx_t_3); __pyx_t_2++; if (unlikely(0 < 0)) __PYX_ERR(1, 794, __pyx_L1_error)
    #else
    __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 794, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    #endif
    __Pyx_XDECREF_SET(__pyx_v_childname, __pyx_t_3);
    __pyx_t_3 = 0;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":795
 * 
 *     for childname in descr.names:
 *         fields = descr.fields[childname]             # <<<<<<<<<<<<<<
 *         child, new_offset = fields
 * 
 */
    if (unlikely(__pyx_v_descr->fields == Py_None)) {
      PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable");
      __PYX_ERR(1, 795, __pyx_L1_error)
    }
    __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 795, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    if (!(likely(PyTuple_CheckExact(__pyx_t_3))||((__pyx_t_3) == Py_None)||(PyErr_Format(PyExc_TypeError, "Expected %.16s, got %.200s", "tuple", Py_TYPE(__pyx_t_3)->tp_name), 0))) __PYX_ERR(1, 795, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_fields, ((PyObject*)__pyx_t_3));
    __pyx_t_3 = 0;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":796
 *     for childname in descr.names:
 *         fields = descr.fields[childname]
 *         child, new_offset = fields             # <<<<<<<<<<<<<<
 * 
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:
 */
    if (likely(__pyx_v_fields != Py_None)) {
      PyObject* sequence = __pyx_v_fields;
      #if CYTHON_COMPILING_IN_CPYTHON
      Py_ssize_t size = Py_SIZE(sequence);
      #else
      Py_ssize_t size = PySequence_Size(sequence);
      #endif
      if (unlikely(size != 2)) {
        if (size > 2) __Pyx_RaiseTooManyValuesError(2);
        else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size);
        __PYX_ERR(1, 796, __pyx_L1_error)
      }
      #if CYTHON_COMPILING_IN_CPYTHON
      __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); 
      __pyx_t_4 = PyTuple_GET_ITEM(sequence, 1); 
      __Pyx_INCREF(__pyx_t_3);
      __Pyx_INCREF(__pyx_t_4);
      #else
      __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 796, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 796, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      #endif
    } else {
      __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(1, 796, __pyx_L1_error)
    }
    if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(1, 796, __pyx_L1_error)
    __Pyx_XDECREF_SET(__pyx_v_child, ((PyArray_Descr *)__pyx_t_3));
    __pyx_t_3 = 0;
    __Pyx_XDECREF_SET(__pyx_v_new_offset, __pyx_t_4);
    __pyx_t_4 = 0;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798
 *         child, new_offset = fields
 * 
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:             # <<<<<<<<<<<<<<
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
 * 
 */
    __pyx_t_4 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_4);
    __pyx_t_3 = PyNumber_Subtract(__pyx_v_new_offset, __pyx_t_4); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 798, __pyx_L1_error)
    __Pyx_GOTREF(__pyx_t_3);
    __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
    __pyx_t_5 = __Pyx_PyInt_As_int(__pyx_t_3); if (unlikely((__pyx_t_5 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 798, __pyx_L1_error)
    __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
    __pyx_t_6 = ((((__pyx_v_end - __pyx_v_f) - ((int)__pyx_t_5)) < 15) != 0);
    if (__pyx_t_6) {

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799
 * 
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")             # <<<<<<<<<<<<<<
 * 
 *         if ((child.byteorder == c'>' and little_endian) or
 */
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__1052, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 799, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(1, 799, __pyx_L1_error)

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798
 *         child, new_offset = fields
 * 
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:             # <<<<<<<<<<<<<<
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
 * 
 */
    }

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
 * 
 *         if ((child.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *             (child.byteorder == c'<' and not little_endian)):
 *             raise ValueError(u"Non-native byte order not supported")
 */
    __pyx_t_7 = ((__pyx_v_child->byteorder == '>') != 0);
    if (!__pyx_t_7) {
      goto __pyx_L8_next_or;
    } else {
    }
    __pyx_t_7 = (__pyx_v_little_endian != 0);
    if (!__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_L8_next_or:;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":802
 * 
 *         if ((child.byteorder == c'>' and little_endian) or
 *             (child.byteorder == c'<' and not little_endian)):             # <<<<<<<<<<<<<<
 *             raise ValueError(u"Non-native byte order not supported")
 *             # One could encode it in the format string and have Cython
 */
    __pyx_t_7 = ((__pyx_v_child->byteorder == '<') != 0);
    if (__pyx_t_7) {
    } else {
      __pyx_t_6 = __pyx_t_7;
      goto __pyx_L7_bool_binop_done;
    }
    __pyx_t_7 = ((!(__pyx_v_little_endian != 0)) != 0);
    __pyx_t_6 = __pyx_t_7;
    __pyx_L7_bool_binop_done:;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
 * 
 *         if ((child.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *             (child.byteorder == c'<' and not little_endian)):
 *             raise ValueError(u"Non-native byte order not supported")
 */
    if (__pyx_t_6) {

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":803
 *         if ((child.byteorder == c'>' and little_endian) or
 *             (child.byteorder == c'<' and not little_endian)):
 *             raise ValueError(u"Non-native byte order not supported")             # <<<<<<<<<<<<<<
 *             # One could encode it in the format string and have Cython
 *             # complain instead, BUT: < and > in format strings also imply
 */
      __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_tuple__1053, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 803, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __Pyx_Raise(__pyx_t_3, 0, 0, 0);
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __PYX_ERR(1, 803, __pyx_L1_error)

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":801
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")
 * 
 *         if ((child.byteorder == c'>' and little_endian) or             # <<<<<<<<<<<<<<
 *             (child.byteorder == c'<' and not little_endian)):
 *             raise ValueError(u"Non-native byte order not supported")
 */
    }

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":813
 * 
 *         # Output padding bytes
 *         while offset[0] < new_offset:             # <<<<<<<<<<<<<<
 *             f[0] = 120 # "x"; pad byte
 *             f += 1
 */
    while (1) {
      __pyx_t_3 = __Pyx_PyInt_From_int((__pyx_v_offset[0])); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 813, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_t_3, __pyx_v_new_offset, Py_LT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 813, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 813, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (!__pyx_t_6) break;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":814
 *         # Output padding bytes
 *         while offset[0] < new_offset:
 *             f[0] = 120 # "x"; pad byte             # <<<<<<<<<<<<<<
 *             f += 1
 *             offset[0] += 1
 */
      (__pyx_v_f[0]) = 0x78;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":815
 *         while offset[0] < new_offset:
 *             f[0] = 120 # "x"; pad byte
 *             f += 1             # <<<<<<<<<<<<<<
 *             offset[0] += 1
 * 
 */
      __pyx_v_f = (__pyx_v_f + 1);

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":816
 *             f[0] = 120 # "x"; pad byte
 *             f += 1
 *             offset[0] += 1             # <<<<<<<<<<<<<<
 * 
 *         offset[0] += child.itemsize
 */
      __pyx_t_8 = 0;
      (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + 1);
    }

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":818
 *             offset[0] += 1
 * 
 *         offset[0] += child.itemsize             # <<<<<<<<<<<<<<
 * 
 *         if not PyDataType_HASFIELDS(child):
 */
    __pyx_t_8 = 0;
    (__pyx_v_offset[__pyx_t_8]) = ((__pyx_v_offset[__pyx_t_8]) + __pyx_v_child->elsize);

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":820
 *         offset[0] += child.itemsize
 * 
 *         if not PyDataType_HASFIELDS(child):             # <<<<<<<<<<<<<<
 *             t = child.type_num
 *             if end - f < 5:
 */
    __pyx_t_6 = ((!(PyDataType_HASFIELDS(__pyx_v_child) != 0)) != 0);
    if (__pyx_t_6) {

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":821
 * 
 *         if not PyDataType_HASFIELDS(child):
 *             t = child.type_num             # <<<<<<<<<<<<<<
 *             if end - f < 5:
 *                 raise RuntimeError(u"Format string allocated too short.")
 */
      __pyx_t_4 = __Pyx_PyInt_From_int(__pyx_v_child->type_num); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 821, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __Pyx_XDECREF_SET(__pyx_v_t, __pyx_t_4);
      __pyx_t_4 = 0;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":822
 *         if not PyDataType_HASFIELDS(child):
 *             t = child.type_num
 *             if end - f < 5:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError(u"Format string allocated too short.")
 * 
 */
      __pyx_t_6 = (((__pyx_v_end - __pyx_v_f) < 5) != 0);
      if (__pyx_t_6) {

        /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":823
 *             t = child.type_num
 *             if end - f < 5:
 *                 raise RuntimeError(u"Format string allocated too short.")             # <<<<<<<<<<<<<<
 * 
 *             # Until ticket #99 is fixed, use integers to avoid warnings
 */
        __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_RuntimeError, __pyx_tuple__1054, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 823, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_Raise(__pyx_t_4, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __PYX_ERR(1, 823, __pyx_L1_error)

        /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":822
 *         if not PyDataType_HASFIELDS(child):
 *             t = child.type_num
 *             if end - f < 5:             # <<<<<<<<<<<<<<
 *                 raise RuntimeError(u"Format string allocated too short.")
 * 
 */
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":826
 * 
 *             # Until ticket #99 is fixed, use integers to avoid warnings
 *             if   t == NPY_BYTE:        f[0] =  98 #"b"             # <<<<<<<<<<<<<<
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_BYTE); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 826, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 826, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 826, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 98;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":827
 *             # Until ticket #99 is fixed, use integers to avoid warnings
 *             if   t == NPY_BYTE:        f[0] =  98 #"b"
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"             # <<<<<<<<<<<<<<
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UBYTE); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 827, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 827, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 827, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 66;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":828
 *             if   t == NPY_BYTE:        f[0] =  98 #"b"
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"             # <<<<<<<<<<<<<<
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
 *             elif t == NPY_INT:         f[0] = 105 #"i"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_SHORT); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 828, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 828, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 828, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x68;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":829
 *             elif t == NPY_UBYTE:       f[0] =  66 #"B"
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"             # <<<<<<<<<<<<<<
 *             elif t == NPY_INT:         f[0] = 105 #"i"
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_USHORT); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 829, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 829, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 829, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 72;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":830
 *             elif t == NPY_SHORT:       f[0] = 104 #"h"
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
 *             elif t == NPY_INT:         f[0] = 105 #"i"             # <<<<<<<<<<<<<<
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_INT); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 830, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 830, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 830, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x69;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":831
 *             elif t == NPY_USHORT:      f[0] =  72 #"H"
 *             elif t == NPY_INT:         f[0] = 105 #"i"
 *             elif t == NPY_UINT:        f[0] =  73 #"I"             # <<<<<<<<<<<<<<
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_UINT); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 831, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 831, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 831, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 73;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":832
 *             elif t == NPY_INT:         f[0] = 105 #"i"
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
 *             elif t == NPY_LONG:        f[0] = 108 #"l"             # <<<<<<<<<<<<<<
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 832, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 832, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 832, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x6C;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":833
 *             elif t == NPY_UINT:        f[0] =  73 #"I"
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"             # <<<<<<<<<<<<<<
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 833, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 833, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 833, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 76;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":834
 *             elif t == NPY_LONG:        f[0] = 108 #"l"
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"             # <<<<<<<<<<<<<<
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGLONG); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 834, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 834, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 834, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x71;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":835
 *             elif t == NPY_ULONG:       f[0] = 76  #"L"
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"             # <<<<<<<<<<<<<<
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_ULONGLONG); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 835, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 835, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 835, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 81;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":836
 *             elif t == NPY_LONGLONG:    f[0] = 113 #"q"
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"             # <<<<<<<<<<<<<<
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_FLOAT); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 836, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 836, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 836, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x66;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":837
 *             elif t == NPY_ULONGLONG:   f[0] = 81  #"Q"
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"             # <<<<<<<<<<<<<<
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_DOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 837, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 837, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 837, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x64;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":838
 *             elif t == NPY_FLOAT:       f[0] = 102 #"f"
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"             # <<<<<<<<<<<<<<
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_LONGDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 838, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 838, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 838, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 0x67;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":839
 *             elif t == NPY_DOUBLE:      f[0] = 100 #"d"
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf             # <<<<<<<<<<<<<<
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CFLOAT); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 839, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 839, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 839, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 90;
        (__pyx_v_f[1]) = 0x66;
        __pyx_v_f = (__pyx_v_f + 1);
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":840
 *             elif t == NPY_LONGDOUBLE:  f[0] = 103 #"g"
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd             # <<<<<<<<<<<<<<
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CDOUBLE); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 840, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 840, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 840, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 90;
        (__pyx_v_f[1]) = 0x64;
        __pyx_v_f = (__pyx_v_f + 1);
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":841
 *             elif t == NPY_CFLOAT:      f[0] = 90; f[1] = 102; f += 1 # Zf
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg             # <<<<<<<<<<<<<<
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"
 *             else:
 */
      __pyx_t_3 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_CLONGDOUBLE); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 841, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_3);
      __pyx_t_4 = PyObject_RichCompare(__pyx_v_t, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 841, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 841, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 90;
        (__pyx_v_f[1]) = 0x67;
        __pyx_v_f = (__pyx_v_f + 1);
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":842
 *             elif t == NPY_CDOUBLE:     f[0] = 90; f[1] = 100; f += 1 # Zd
 *             elif t == NPY_CLONGDOUBLE: f[0] = 90; f[1] = 103; f += 1 # Zg
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"             # <<<<<<<<<<<<<<
 *             else:
 *                 raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
 */
      __pyx_t_4 = __Pyx_PyInt_From_enum__NPY_TYPES(NPY_OBJECT); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 842, __pyx_L1_error)
      __Pyx_GOTREF(__pyx_t_4);
      __pyx_t_3 = PyObject_RichCompare(__pyx_v_t, __pyx_t_4, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 842, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
      __pyx_t_6 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_6 < 0)) __PYX_ERR(1, 842, __pyx_L1_error)
      __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
      if (__pyx_t_6) {
        (__pyx_v_f[0]) = 79;
        goto __pyx_L15;
      }

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":844
 *             elif t == NPY_OBJECT:      f[0] = 79 #"O"
 *             else:
 *                 raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)             # <<<<<<<<<<<<<<
 *             f += 1
 *         else:
 */
      /*else*/ {
        __pyx_t_3 = PyUnicode_Format(__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_v_t); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 844, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 844, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_4);
        __Pyx_GIVEREF(__pyx_t_3);
        PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3);
        __pyx_t_3 = 0;
        __pyx_t_3 = __Pyx_PyObject_Call(__pyx_builtin_ValueError, __pyx_t_4, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 844, __pyx_L1_error)
        __Pyx_GOTREF(__pyx_t_3);
        __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0;
        __Pyx_Raise(__pyx_t_3, 0, 0, 0);
        __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
        __PYX_ERR(1, 844, __pyx_L1_error)
      }
      __pyx_L15:;

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":845
 *             else:
 *                 raise ValueError(u"unknown dtype code in numpy.pxd (%d)" % t)
 *             f += 1             # <<<<<<<<<<<<<<
 *         else:
 *             # Cython ignores struct boundary information ("T{...}"),
 */
      __pyx_v_f = (__pyx_v_f + 1);

      /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":820
 *         offset[0] += child.itemsize
 * 
 *         if not PyDataType_HASFIELDS(child):             # <<<<<<<<<<<<<<
 *             t = child.type_num
 *             if end - f < 5:
 */
      goto __pyx_L13;
    }

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":849
 *             # Cython ignores struct boundary information ("T{...}"),
 *             # so don't output it
 *             f = _util_dtypestring(child, f, end, offset)             # <<<<<<<<<<<<<<
 *     return f
 * 
 */
    /*else*/ {
      __pyx_t_9 = __pyx_f_5numpy__util_dtypestring(__pyx_v_child, __pyx_v_f, __pyx_v_end, __pyx_v_offset); if (unlikely(__pyx_t_9 == NULL)) __PYX_ERR(1, 849, __pyx_L1_error)
      __pyx_v_f = __pyx_t_9;
    }
    __pyx_L13:;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":794
 *     cdef tuple fields
 * 
 *     for childname in descr.names:             # <<<<<<<<<<<<<<
 *         fields = descr.fields[childname]
 *         child, new_offset = fields
 */
  }
  __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":850
 *             # so don't output it
 *             f = _util_dtypestring(child, f, end, offset)
 *     return f             # <<<<<<<<<<<<<<
 * 
 * 
 */
  __pyx_r = __pyx_v_f;
  goto __pyx_L0;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":785
 *     return PyArray_MultiIterNew(5, <void*>a, <void*>b, <void*>c, <void*> d, <void*> e)
 * 
 * cdef inline char* _util_dtypestring(dtype descr, char* f, char* end, int* offset) except NULL:             # <<<<<<<<<<<<<<
 *     # Recursive utility function used in __getbuffer__ to get format
 *     # string. The new location in the format string is returned.
 */

  /* function exit code */
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_3);
  __Pyx_XDECREF(__pyx_t_4);
  __Pyx_AddTraceback("numpy._util_dtypestring", __pyx_clineno, __pyx_lineno, __pyx_filename);
  __pyx_r = NULL;
  __pyx_L0:;
  __Pyx_XDECREF((PyObject *)__pyx_v_child);
  __Pyx_XDECREF(__pyx_v_fields);
  __Pyx_XDECREF(__pyx_v_childname);
  __Pyx_XDECREF(__pyx_v_new_offset);
  __Pyx_XDECREF(__pyx_v_t);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966
 * 
 * 
 * cdef inline void set_array_base(ndarray arr, object base):             # <<<<<<<<<<<<<<
 *      cdef PyObject* baseptr
 *      if base is None:
 */

static CYTHON_INLINE void __pyx_f_5numpy_set_array_base(PyArrayObject *__pyx_v_arr, PyObject *__pyx_v_base) {
  PyObject *__pyx_v_baseptr;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  int __pyx_t_2;
  __Pyx_RefNannySetupContext("set_array_base", 0);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":968
 * cdef inline void set_array_base(ndarray arr, object base):
 *      cdef PyObject* baseptr
 *      if base is None:             # <<<<<<<<<<<<<<
 *          baseptr = NULL
 *      else:
 */
  __pyx_t_1 = (__pyx_v_base == Py_None);
  __pyx_t_2 = (__pyx_t_1 != 0);
  if (__pyx_t_2) {

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":969
 *      cdef PyObject* baseptr
 *      if base is None:
 *          baseptr = NULL             # <<<<<<<<<<<<<<
 *      else:
 *          Py_INCREF(base) # important to do this before decref below!
 */
    __pyx_v_baseptr = NULL;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":968
 * cdef inline void set_array_base(ndarray arr, object base):
 *      cdef PyObject* baseptr
 *      if base is None:             # <<<<<<<<<<<<<<
 *          baseptr = NULL
 *      else:
 */
    goto __pyx_L3;
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":971
 *          baseptr = NULL
 *      else:
 *          Py_INCREF(base) # important to do this before decref below!             # <<<<<<<<<<<<<<
 *          baseptr = <PyObject*>base
 *      Py_XDECREF(arr.base)
 */
  /*else*/ {
    Py_INCREF(__pyx_v_base);

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":972
 *      else:
 *          Py_INCREF(base) # important to do this before decref below!
 *          baseptr = <PyObject*>base             # <<<<<<<<<<<<<<
 *      Py_XDECREF(arr.base)
 *      arr.base = baseptr
 */
    __pyx_v_baseptr = ((PyObject *)__pyx_v_base);
  }
  __pyx_L3:;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":973
 *          Py_INCREF(base) # important to do this before decref below!
 *          baseptr = <PyObject*>base
 *      Py_XDECREF(arr.base)             # <<<<<<<<<<<<<<
 *      arr.base = baseptr
 * 
 */
  Py_XDECREF(__pyx_v_arr->base);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":974
 *          baseptr = <PyObject*>base
 *      Py_XDECREF(arr.base)
 *      arr.base = baseptr             # <<<<<<<<<<<<<<
 * 
 * cdef inline object get_array_base(ndarray arr):
 */
  __pyx_v_arr->base = __pyx_v_baseptr;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":966
 * 
 * 
 * cdef inline void set_array_base(ndarray arr, object base):             # <<<<<<<<<<<<<<
 *      cdef PyObject* baseptr
 *      if base is None:
 */

  /* function exit code */
  __Pyx_RefNannyFinishContext();
}

/* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976
 *      arr.base = baseptr
 * 
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
 *     if arr.base is NULL:
 *         return None
 */

static CYTHON_INLINE PyObject *__pyx_f_5numpy_get_array_base(PyArrayObject *__pyx_v_arr) {
  PyObject *__pyx_r = NULL;
  __Pyx_RefNannyDeclarations
  int __pyx_t_1;
  __Pyx_RefNannySetupContext("get_array_base", 0);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":977
 * 
 * cdef inline object get_array_base(ndarray arr):
 *     if arr.base is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     else:
 */
  __pyx_t_1 = ((__pyx_v_arr->base == NULL) != 0);
  if (__pyx_t_1) {

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":978
 * cdef inline object get_array_base(ndarray arr):
 *     if arr.base is NULL:
 *         return None             # <<<<<<<<<<<<<<
 *     else:
 *         return <object>arr.base
 */
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(Py_None);
    __pyx_r = Py_None;
    goto __pyx_L0;

    /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":977
 * 
 * cdef inline object get_array_base(ndarray arr):
 *     if arr.base is NULL:             # <<<<<<<<<<<<<<
 *         return None
 *     else:
 */
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":980
 *         return None
 *     else:
 *         return <object>arr.base             # <<<<<<<<<<<<<<
 */
  /*else*/ {
    __Pyx_XDECREF(__pyx_r);
    __Pyx_INCREF(((PyObject *)__pyx_v_arr->base));
    __pyx_r = ((PyObject *)__pyx_v_arr->base);
    goto __pyx_L0;
  }

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976
 *      arr.base = baseptr
 * 
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
 *     if arr.base is NULL:
 *         return None
 */

  /* function exit code */
  __pyx_L0:;
  __Pyx_XGIVEREF(__pyx_r);
  __Pyx_RefNannyFinishContext();
  return __pyx_r;
}

static PyMethodDef __pyx_methods[] = {
  {0, 0, 0, 0}
};

#if PY_MAJOR_VERSION >= 3
static struct PyModuleDef __pyx_moduledef = {
  #if PY_VERSION_HEX < 0x03020000
    { PyObject_HEAD_INIT(NULL) NULL, 0, NULL },
  #else
    PyModuleDef_HEAD_INIT,
  #endif
    "stream",
    0, /* m_doc */
    -1, /* m_size */
    __pyx_methods /* m_methods */,
    NULL, /* m_reload */
    NULL, /* m_traverse */
    NULL, /* m_clear */
    NULL /* m_free */
};
#endif

static __Pyx_StringTabEntry __pyx_string_tab[] = {
  {&__pyx_n_s_ACOS, __pyx_k_ACOS, sizeof(__pyx_k_ACOS), 0, 0, 1, 1},
  {&__pyx_n_s_AD, __pyx_k_AD, sizeof(__pyx_k_AD), 0, 0, 1, 1},
  {&__pyx_n_s_ADD, __pyx_k_ADD, sizeof(__pyx_k_ADD), 0, 0, 1, 1},
  {&__pyx_n_s_ADOSC, __pyx_k_ADOSC, sizeof(__pyx_k_ADOSC), 0, 0, 1, 1},
  {&__pyx_n_s_ADX, __pyx_k_ADX, sizeof(__pyx_k_ADX), 0, 0, 1, 1},
  {&__pyx_n_s_ADXR, __pyx_k_ADXR, sizeof(__pyx_k_ADXR), 0, 0, 1, 1},
  {&__pyx_n_s_APO, __pyx_k_APO, sizeof(__pyx_k_APO), 0, 0, 1, 1},
  {&__pyx_n_s_AROON, __pyx_k_AROON, sizeof(__pyx_k_AROON), 0, 0, 1, 1},
  {&__pyx_n_s_AROONOSC, __pyx_k_AROONOSC, sizeof(__pyx_k_AROONOSC), 0, 0, 1, 1},
  {&__pyx_n_s_ASIN, __pyx_k_ASIN, sizeof(__pyx_k_ASIN), 0, 0, 1, 1},
  {&__pyx_n_s_ATAN, __pyx_k_ATAN, sizeof(__pyx_k_ATAN), 0, 0, 1, 1},
  {&__pyx_n_s_ATR, __pyx_k_ATR, sizeof(__pyx_k_ATR), 0, 0, 1, 1},
  {&__pyx_n_s_AVGPRICE, __pyx_k_AVGPRICE, sizeof(__pyx_k_AVGPRICE), 0, 0, 1, 1},
  {&__pyx_n_s_BBANDS, __pyx_k_BBANDS, sizeof(__pyx_k_BBANDS), 0, 0, 1, 1},
  {&__pyx_n_s_BETA, __pyx_k_BETA, sizeof(__pyx_k_BETA), 0, 0, 1, 1},
  {&__pyx_n_s_BOP, __pyx_k_BOP, sizeof(__pyx_k_BOP), 0, 0, 1, 1},
  {&__pyx_n_s_CCI, __pyx_k_CCI, sizeof(__pyx_k_CCI), 0, 0, 1, 1},
  {&__pyx_n_s_CDL2CROWS, __pyx_k_CDL2CROWS, sizeof(__pyx_k_CDL2CROWS), 0, 0, 1, 1},
  {&__pyx_n_s_CDL3BLACKCROWS, __pyx_k_CDL3BLACKCROWS, sizeof(__pyx_k_CDL3BLACKCROWS), 0, 0, 1, 1},
  {&__pyx_n_s_CDL3INSIDE, __pyx_k_CDL3INSIDE, sizeof(__pyx_k_CDL3INSIDE), 0, 0, 1, 1},
  {&__pyx_n_s_CDL3LINESTRIKE, __pyx_k_CDL3LINESTRIKE, sizeof(__pyx_k_CDL3LINESTRIKE), 0, 0, 1, 1},
  {&__pyx_n_s_CDL3OUTSIDE, __pyx_k_CDL3OUTSIDE, sizeof(__pyx_k_CDL3OUTSIDE), 0, 0, 1, 1},
  {&__pyx_n_s_CDL3STARSINSOUTH, __pyx_k_CDL3STARSINSOUTH, sizeof(__pyx_k_CDL3STARSINSOUTH), 0, 0, 1, 1},
  {&__pyx_n_s_CDL3WHITESOLDIERS, __pyx_k_CDL3WHITESOLDIERS, sizeof(__pyx_k_CDL3WHITESOLDIERS), 0, 0, 1, 1},
  {&__pyx_n_s_CDLABANDONEDBABY, __pyx_k_CDLABANDONEDBABY, sizeof(__pyx_k_CDLABANDONEDBABY), 0, 0, 1, 1},
  {&__pyx_n_s_CDLADVANCEBLOCK, __pyx_k_CDLADVANCEBLOCK, sizeof(__pyx_k_CDLADVANCEBLOCK), 0, 0, 1, 1},
  {&__pyx_n_s_CDLBELTHOLD, __pyx_k_CDLBELTHOLD, sizeof(__pyx_k_CDLBELTHOLD), 0, 0, 1, 1},
  {&__pyx_n_s_CDLBREAKAWAY, __pyx_k_CDLBREAKAWAY, sizeof(__pyx_k_CDLBREAKAWAY), 0, 0, 1, 1},
  {&__pyx_n_s_CDLCLOSINGMARUBOZU, __pyx_k_CDLCLOSINGMARUBOZU, sizeof(__pyx_k_CDLCLOSINGMARUBOZU), 0, 0, 1, 1},
  {&__pyx_n_s_CDLCONCEALBABYSWALL, __pyx_k_CDLCONCEALBABYSWALL, sizeof(__pyx_k_CDLCONCEALBABYSWALL), 0, 0, 1, 1},
  {&__pyx_n_s_CDLCOUNTERATTACK, __pyx_k_CDLCOUNTERATTACK, sizeof(__pyx_k_CDLCOUNTERATTACK), 0, 0, 1, 1},
  {&__pyx_n_s_CDLDARKCLOUDCOVER, __pyx_k_CDLDARKCLOUDCOVER, sizeof(__pyx_k_CDLDARKCLOUDCOVER), 0, 0, 1, 1},
  {&__pyx_n_s_CDLDOJI, __pyx_k_CDLDOJI, sizeof(__pyx_k_CDLDOJI), 0, 0, 1, 1},
  {&__pyx_n_s_CDLDOJISTAR, __pyx_k_CDLDOJISTAR, sizeof(__pyx_k_CDLDOJISTAR), 0, 0, 1, 1},
  {&__pyx_n_s_CDLDRAGONFLYDOJI, __pyx_k_CDLDRAGONFLYDOJI, sizeof(__pyx_k_CDLDRAGONFLYDOJI), 0, 0, 1, 1},
  {&__pyx_n_s_CDLENGULFING, __pyx_k_CDLENGULFING, sizeof(__pyx_k_CDLENGULFING), 0, 0, 1, 1},
  {&__pyx_n_s_CDLEVENINGDOJISTAR, __pyx_k_CDLEVENINGDOJISTAR, sizeof(__pyx_k_CDLEVENINGDOJISTAR), 0, 0, 1, 1},
  {&__pyx_n_s_CDLEVENINGSTAR, __pyx_k_CDLEVENINGSTAR, sizeof(__pyx_k_CDLEVENINGSTAR), 0, 0, 1, 1},
  {&__pyx_n_s_CDLGAPSIDESIDEWHITE, __pyx_k_CDLGAPSIDESIDEWHITE, sizeof(__pyx_k_CDLGAPSIDESIDEWHITE), 0, 0, 1, 1},
  {&__pyx_n_s_CDLGRAVESTONEDOJI, __pyx_k_CDLGRAVESTONEDOJI, sizeof(__pyx_k_CDLGRAVESTONEDOJI), 0, 0, 1, 1},
  {&__pyx_n_s_CDLHAMMER, __pyx_k_CDLHAMMER, sizeof(__pyx_k_CDLHAMMER), 0, 0, 1, 1},
  {&__pyx_n_s_CDLHANGINGMAN, __pyx_k_CDLHANGINGMAN, sizeof(__pyx_k_CDLHANGINGMAN), 0, 0, 1, 1},
  {&__pyx_n_s_CDLHARAMI, __pyx_k_CDLHARAMI, sizeof(__pyx_k_CDLHARAMI), 0, 0, 1, 1},
  {&__pyx_n_s_CDLHARAMICROSS, __pyx_k_CDLHARAMICROSS, sizeof(__pyx_k_CDLHARAMICROSS), 0, 0, 1, 1},
  {&__pyx_n_s_CDLHIGHWAVE, __pyx_k_CDLHIGHWAVE, sizeof(__pyx_k_CDLHIGHWAVE), 0, 0, 1, 1},
  {&__pyx_n_s_CDLHIKKAKE, __pyx_k_CDLHIKKAKE, sizeof(__pyx_k_CDLHIKKAKE), 0, 0, 1, 1},
  {&__pyx_n_s_CDLHIKKAKEMOD, __pyx_k_CDLHIKKAKEMOD, sizeof(__pyx_k_CDLHIKKAKEMOD), 0, 0, 1, 1},
  {&__pyx_n_s_CDLHOMINGPIGEON, __pyx_k_CDLHOMINGPIGEON, sizeof(__pyx_k_CDLHOMINGPIGEON), 0, 0, 1, 1},
  {&__pyx_n_s_CDLIDENTICAL3CROWS, __pyx_k_CDLIDENTICAL3CROWS, sizeof(__pyx_k_CDLIDENTICAL3CROWS), 0, 0, 1, 1},
  {&__pyx_n_s_CDLINNECK, __pyx_k_CDLINNECK, sizeof(__pyx_k_CDLINNECK), 0, 0, 1, 1},
  {&__pyx_n_s_CDLINVERTEDHAMMER, __pyx_k_CDLINVERTEDHAMMER, sizeof(__pyx_k_CDLINVERTEDHAMMER), 0, 0, 1, 1},
  {&__pyx_n_s_CDLKICKING, __pyx_k_CDLKICKING, sizeof(__pyx_k_CDLKICKING), 0, 0, 1, 1},
  {&__pyx_n_s_CDLKICKINGBYLENGTH, __pyx_k_CDLKICKINGBYLENGTH, sizeof(__pyx_k_CDLKICKINGBYLENGTH), 0, 0, 1, 1},
  {&__pyx_n_s_CDLLADDERBOTTOM, __pyx_k_CDLLADDERBOTTOM, sizeof(__pyx_k_CDLLADDERBOTTOM), 0, 0, 1, 1},
  {&__pyx_n_s_CDLLONGLEGGEDDOJI, __pyx_k_CDLLONGLEGGEDDOJI, sizeof(__pyx_k_CDLLONGLEGGEDDOJI), 0, 0, 1, 1},
  {&__pyx_n_s_CDLLONGLINE, __pyx_k_CDLLONGLINE, sizeof(__pyx_k_CDLLONGLINE), 0, 0, 1, 1},
  {&__pyx_n_s_CDLMARUBOZU, __pyx_k_CDLMARUBOZU, sizeof(__pyx_k_CDLMARUBOZU), 0, 0, 1, 1},
  {&__pyx_n_s_CDLMATCHINGLOW, __pyx_k_CDLMATCHINGLOW, sizeof(__pyx_k_CDLMATCHINGLOW), 0, 0, 1, 1},
  {&__pyx_n_s_CDLMATHOLD, __pyx_k_CDLMATHOLD, sizeof(__pyx_k_CDLMATHOLD), 0, 0, 1, 1},
  {&__pyx_n_s_CDLMORNINGDOJISTAR, __pyx_k_CDLMORNINGDOJISTAR, sizeof(__pyx_k_CDLMORNINGDOJISTAR), 0, 0, 1, 1},
  {&__pyx_n_s_CDLMORNINGSTAR, __pyx_k_CDLMORNINGSTAR, sizeof(__pyx_k_CDLMORNINGSTAR), 0, 0, 1, 1},
  {&__pyx_n_s_CDLONNECK, __pyx_k_CDLONNECK, sizeof(__pyx_k_CDLONNECK), 0, 0, 1, 1},
  {&__pyx_n_s_CDLPIERCING, __pyx_k_CDLPIERCING, sizeof(__pyx_k_CDLPIERCING), 0, 0, 1, 1},
  {&__pyx_n_s_CDLRICKSHAWMAN, __pyx_k_CDLRICKSHAWMAN, sizeof(__pyx_k_CDLRICKSHAWMAN), 0, 0, 1, 1},
  {&__pyx_n_s_CDLRISEFALL3METHODS, __pyx_k_CDLRISEFALL3METHODS, sizeof(__pyx_k_CDLRISEFALL3METHODS), 0, 0, 1, 1},
  {&__pyx_n_s_CDLSEPARATINGLINES, __pyx_k_CDLSEPARATINGLINES, sizeof(__pyx_k_CDLSEPARATINGLINES), 0, 0, 1, 1},
  {&__pyx_n_s_CDLSHOOTINGSTAR, __pyx_k_CDLSHOOTINGSTAR, sizeof(__pyx_k_CDLSHOOTINGSTAR), 0, 0, 1, 1},
  {&__pyx_n_s_CDLSHORTLINE, __pyx_k_CDLSHORTLINE, sizeof(__pyx_k_CDLSHORTLINE), 0, 0, 1, 1},
  {&__pyx_n_s_CDLSPINNINGTOP, __pyx_k_CDLSPINNINGTOP, sizeof(__pyx_k_CDLSPINNINGTOP), 0, 0, 1, 1},
  {&__pyx_n_s_CDLSTALLEDPATTERN, __pyx_k_CDLSTALLEDPATTERN, sizeof(__pyx_k_CDLSTALLEDPATTERN), 0, 0, 1, 1},
  {&__pyx_n_s_CDLSTICKSANDWICH, __pyx_k_CDLSTICKSANDWICH, sizeof(__pyx_k_CDLSTICKSANDWICH), 0, 0, 1, 1},
  {&__pyx_n_s_CDLTAKURI, __pyx_k_CDLTAKURI, sizeof(__pyx_k_CDLTAKURI), 0, 0, 1, 1},
  {&__pyx_n_s_CDLTASUKIGAP, __pyx_k_CDLTASUKIGAP, sizeof(__pyx_k_CDLTASUKIGAP), 0, 0, 1, 1},
  {&__pyx_n_s_CDLTHRUSTING, __pyx_k_CDLTHRUSTING, sizeof(__pyx_k_CDLTHRUSTING), 0, 0, 1, 1},
  {&__pyx_n_s_CDLTRISTAR, __pyx_k_CDLTRISTAR, sizeof(__pyx_k_CDLTRISTAR), 0, 0, 1, 1},
  {&__pyx_n_s_CDLUNIQUE3RIVER, __pyx_k_CDLUNIQUE3RIVER, sizeof(__pyx_k_CDLUNIQUE3RIVER), 0, 0, 1, 1},
  {&__pyx_n_s_CDLUPSIDEGAP2CROWS, __pyx_k_CDLUPSIDEGAP2CROWS, sizeof(__pyx_k_CDLUPSIDEGAP2CROWS), 0, 0, 1, 1},
  {&__pyx_n_s_CDLXSIDEGAP3METHODS, __pyx_k_CDLXSIDEGAP3METHODS, sizeof(__pyx_k_CDLXSIDEGAP3METHODS), 0, 0, 1, 1},
  {&__pyx_n_s_CEIL, __pyx_k_CEIL, sizeof(__pyx_k_CEIL), 0, 0, 1, 1},
  {&__pyx_n_s_CMO, __pyx_k_CMO, sizeof(__pyx_k_CMO), 0, 0, 1, 1},
  {&__pyx_n_s_CORREL, __pyx_k_CORREL, sizeof(__pyx_k_CORREL), 0, 0, 1, 1},
  {&__pyx_n_s_COS, __pyx_k_COS, sizeof(__pyx_k_COS), 0, 0, 1, 1},
  {&__pyx_n_s_COSH, __pyx_k_COSH, sizeof(__pyx_k_COSH), 0, 0, 1, 1},
  {&__pyx_n_s_DEMA, __pyx_k_DEMA, sizeof(__pyx_k_DEMA), 0, 0, 1, 1},
  {&__pyx_n_s_DIV, __pyx_k_DIV, sizeof(__pyx_k_DIV), 0, 0, 1, 1},
  {&__pyx_n_s_DX, __pyx_k_DX, sizeof(__pyx_k_DX), 0, 0, 1, 1},
  {&__pyx_n_s_EMA, __pyx_k_EMA, sizeof(__pyx_k_EMA), 0, 0, 1, 1},
  {&__pyx_n_s_EXP, __pyx_k_EXP, sizeof(__pyx_k_EXP), 0, 0, 1, 1},
  {&__pyx_n_s_Exception, __pyx_k_Exception, sizeof(__pyx_k_Exception), 0, 0, 1, 1},
  {&__pyx_n_s_FLOOR, __pyx_k_FLOOR, sizeof(__pyx_k_FLOOR), 0, 0, 1, 1},
  {&__pyx_kp_u_Format_string_allocated_too_shor, __pyx_k_Format_string_allocated_too_shor, sizeof(__pyx_k_Format_string_allocated_too_shor), 0, 1, 0, 0},
  {&__pyx_kp_u_Format_string_allocated_too_shor_2, __pyx_k_Format_string_allocated_too_shor_2, sizeof(__pyx_k_Format_string_allocated_too_shor_2), 0, 1, 0, 0},
  {&__pyx_n_s_HT_DCPERIOD, __pyx_k_HT_DCPERIOD, sizeof(__pyx_k_HT_DCPERIOD), 0, 0, 1, 1},
  {&__pyx_n_s_HT_DCPHASE, __pyx_k_HT_DCPHASE, sizeof(__pyx_k_HT_DCPHASE), 0, 0, 1, 1},
  {&__pyx_n_s_HT_PHASOR, __pyx_k_HT_PHASOR, sizeof(__pyx_k_HT_PHASOR), 0, 0, 1, 1},
  {&__pyx_n_s_HT_SINE, __pyx_k_HT_SINE, sizeof(__pyx_k_HT_SINE), 0, 0, 1, 1},
  {&__pyx_n_s_HT_TRENDLINE, __pyx_k_HT_TRENDLINE, sizeof(__pyx_k_HT_TRENDLINE), 0, 0, 1, 1},
  {&__pyx_n_s_HT_TRENDMODE, __pyx_k_HT_TRENDMODE, sizeof(__pyx_k_HT_TRENDMODE), 0, 0, 1, 1},
  {&__pyx_n_s_KAMA, __pyx_k_KAMA, sizeof(__pyx_k_KAMA), 0, 0, 1, 1},
  {&__pyx_n_s_LINEARREG, __pyx_k_LINEARREG, sizeof(__pyx_k_LINEARREG), 0, 0, 1, 1},
  {&__pyx_n_s_LINEARREG_ANGLE, __pyx_k_LINEARREG_ANGLE, sizeof(__pyx_k_LINEARREG_ANGLE), 0, 0, 1, 1},
  {&__pyx_n_s_LINEARREG_INTERCEPT, __pyx_k_LINEARREG_INTERCEPT, sizeof(__pyx_k_LINEARREG_INTERCEPT), 0, 0, 1, 1},
  {&__pyx_n_s_LINEARREG_SLOPE, __pyx_k_LINEARREG_SLOPE, sizeof(__pyx_k_LINEARREG_SLOPE), 0, 0, 1, 1},
  {&__pyx_n_s_LN, __pyx_k_LN, sizeof(__pyx_k_LN), 0, 0, 1, 1},
  {&__pyx_n_s_LOG10, __pyx_k_LOG10, sizeof(__pyx_k_LOG10), 0, 0, 1, 1},
  {&__pyx_n_s_MA, __pyx_k_MA, sizeof(__pyx_k_MA), 0, 0, 1, 1},
  {&__pyx_n_s_MACD, __pyx_k_MACD, sizeof(__pyx_k_MACD), 0, 0, 1, 1},
  {&__pyx_n_s_MACDEXT, __pyx_k_MACDEXT, sizeof(__pyx_k_MACDEXT), 0, 0, 1, 1},
  {&__pyx_n_s_MACDFIX, __pyx_k_MACDFIX, sizeof(__pyx_k_MACDFIX), 0, 0, 1, 1},
  {&__pyx_n_s_MAMA, __pyx_k_MAMA, sizeof(__pyx_k_MAMA), 0, 0, 1, 1},
  {&__pyx_n_s_MAVP, __pyx_k_MAVP, sizeof(__pyx_k_MAVP), 0, 0, 1, 1},
  {&__pyx_n_s_MAX, __pyx_k_MAX, sizeof(__pyx_k_MAX), 0, 0, 1, 1},
  {&__pyx_n_s_MAXINDEX, __pyx_k_MAXINDEX, sizeof(__pyx_k_MAXINDEX), 0, 0, 1, 1},
  {&__pyx_n_s_MEDPRICE, __pyx_k_MEDPRICE, sizeof(__pyx_k_MEDPRICE), 0, 0, 1, 1},
  {&__pyx_n_s_MFI, __pyx_k_MFI, sizeof(__pyx_k_MFI), 0, 0, 1, 1},
  {&__pyx_n_s_MIDPOINT, __pyx_k_MIDPOINT, sizeof(__pyx_k_MIDPOINT), 0, 0, 1, 1},
  {&__pyx_n_s_MIDPRICE, __pyx_k_MIDPRICE, sizeof(__pyx_k_MIDPRICE), 0, 0, 1, 1},
  {&__pyx_n_s_MIN, __pyx_k_MIN, sizeof(__pyx_k_MIN), 0, 0, 1, 1},
  {&__pyx_n_s_MININDEX, __pyx_k_MININDEX, sizeof(__pyx_k_MININDEX), 0, 0, 1, 1},
  {&__pyx_n_s_MINMAX, __pyx_k_MINMAX, sizeof(__pyx_k_MINMAX), 0, 0, 1, 1},
  {&__pyx_n_s_MINMAXINDEX, __pyx_k_MINMAXINDEX, sizeof(__pyx_k_MINMAXINDEX), 0, 0, 1, 1},
  {&__pyx_n_s_MINUS_DI, __pyx_k_MINUS_DI, sizeof(__pyx_k_MINUS_DI), 0, 0, 1, 1},
  {&__pyx_n_s_MINUS_DM, __pyx_k_MINUS_DM, sizeof(__pyx_k_MINUS_DM), 0, 0, 1, 1},
  {&__pyx_n_s_MOM, __pyx_k_MOM, sizeof(__pyx_k_MOM), 0, 0, 1, 1},
  {&__pyx_n_s_MULT, __pyx_k_MULT, sizeof(__pyx_k_MULT), 0, 0, 1, 1},
  {&__pyx_n_s_NATR, __pyx_k_NATR, sizeof(__pyx_k_NATR), 0, 0, 1, 1},
  {&__pyx_kp_u_Non_native_byte_order_not_suppor, __pyx_k_Non_native_byte_order_not_suppor, sizeof(__pyx_k_Non_native_byte_order_not_suppor), 0, 1, 0, 0},
  {&__pyx_n_s_OBV, __pyx_k_OBV, sizeof(__pyx_k_OBV), 0, 0, 1, 1},
  {&__pyx_n_s_PLUS_DI, __pyx_k_PLUS_DI, sizeof(__pyx_k_PLUS_DI), 0, 0, 1, 1},
  {&__pyx_n_s_PLUS_DM, __pyx_k_PLUS_DM, sizeof(__pyx_k_PLUS_DM), 0, 0, 1, 1},
  {&__pyx_n_s_PPO, __pyx_k_PPO, sizeof(__pyx_k_PPO), 0, 0, 1, 1},
  {&__pyx_n_s_ROC, __pyx_k_ROC, sizeof(__pyx_k_ROC), 0, 0, 1, 1},
  {&__pyx_n_s_ROCP, __pyx_k_ROCP, sizeof(__pyx_k_ROCP), 0, 0, 1, 1},
  {&__pyx_n_s_ROCR, __pyx_k_ROCR, sizeof(__pyx_k_ROCR), 0, 0, 1, 1},
  {&__pyx_n_s_ROCR100, __pyx_k_ROCR100, sizeof(__pyx_k_ROCR100), 0, 0, 1, 1},
  {&__pyx_n_s_RSI, __pyx_k_RSI, sizeof(__pyx_k_RSI), 0, 0, 1, 1},
  {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1},
  {&__pyx_n_s_SAR, __pyx_k_SAR, sizeof(__pyx_k_SAR), 0, 0, 1, 1},
  {&__pyx_n_s_SAREXT, __pyx_k_SAREXT, sizeof(__pyx_k_SAREXT), 0, 0, 1, 1},
  {&__pyx_n_s_SIN, __pyx_k_SIN, sizeof(__pyx_k_SIN), 0, 0, 1, 1},
  {&__pyx_n_s_SINH, __pyx_k_SINH, sizeof(__pyx_k_SINH), 0, 0, 1, 1},
  {&__pyx_n_s_SMA, __pyx_k_SMA, sizeof(__pyx_k_SMA), 0, 0, 1, 1},
  {&__pyx_n_s_SQRT, __pyx_k_SQRT, sizeof(__pyx_k_SQRT), 0, 0, 1, 1},
  {&__pyx_n_s_STDDEV, __pyx_k_STDDEV, sizeof(__pyx_k_STDDEV), 0, 0, 1, 1},
  {&__pyx_n_s_STOCH, __pyx_k_STOCH, sizeof(__pyx_k_STOCH), 0, 0, 1, 1},
  {&__pyx_n_s_STOCHF, __pyx_k_STOCHF, sizeof(__pyx_k_STOCHF), 0, 0, 1, 1},
  {&__pyx_n_s_STOCHRSI, __pyx_k_STOCHRSI, sizeof(__pyx_k_STOCHRSI), 0, 0, 1, 1},
  {&__pyx_n_s_SUB, __pyx_k_SUB, sizeof(__pyx_k_SUB), 0, 0, 1, 1},
  {&__pyx_n_s_SUM, __pyx_k_SUM, sizeof(__pyx_k_SUM), 0, 0, 1, 1},
  {&__pyx_n_s_T3, __pyx_k_T3, sizeof(__pyx_k_T3), 0, 0, 1, 1},
  {&__pyx_n_s_TAN, __pyx_k_TAN, sizeof(__pyx_k_TAN), 0, 0, 1, 1},
  {&__pyx_n_s_TANH, __pyx_k_TANH, sizeof(__pyx_k_TANH), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ACOS, __pyx_k_TA_ACOS, sizeof(__pyx_k_TA_ACOS), 0, 0, 1, 1},
  {&__pyx_n_s_TA_AD, __pyx_k_TA_AD, sizeof(__pyx_k_TA_AD), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ADD, __pyx_k_TA_ADD, sizeof(__pyx_k_TA_ADD), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ADOSC, __pyx_k_TA_ADOSC, sizeof(__pyx_k_TA_ADOSC), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ADX, __pyx_k_TA_ADX, sizeof(__pyx_k_TA_ADX), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ADXR, __pyx_k_TA_ADXR, sizeof(__pyx_k_TA_ADXR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_APO, __pyx_k_TA_APO, sizeof(__pyx_k_TA_APO), 0, 0, 1, 1},
  {&__pyx_n_s_TA_AROON, __pyx_k_TA_AROON, sizeof(__pyx_k_TA_AROON), 0, 0, 1, 1},
  {&__pyx_n_s_TA_AROONOSC, __pyx_k_TA_AROONOSC, sizeof(__pyx_k_TA_AROONOSC), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ASIN, __pyx_k_TA_ASIN, sizeof(__pyx_k_TA_ASIN), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ATAN, __pyx_k_TA_ATAN, sizeof(__pyx_k_TA_ATAN), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ATR, __pyx_k_TA_ATR, sizeof(__pyx_k_TA_ATR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_AVGPRICE, __pyx_k_TA_AVGPRICE, sizeof(__pyx_k_TA_AVGPRICE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_BBANDS, __pyx_k_TA_BBANDS, sizeof(__pyx_k_TA_BBANDS), 0, 0, 1, 1},
  {&__pyx_n_s_TA_BETA, __pyx_k_TA_BETA, sizeof(__pyx_k_TA_BETA), 0, 0, 1, 1},
  {&__pyx_n_s_TA_BOP, __pyx_k_TA_BOP, sizeof(__pyx_k_TA_BOP), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CCI, __pyx_k_TA_CCI, sizeof(__pyx_k_TA_CCI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDL2CROWS, __pyx_k_TA_CDL2CROWS, sizeof(__pyx_k_TA_CDL2CROWS), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDL3BLACKCROWS, __pyx_k_TA_CDL3BLACKCROWS, sizeof(__pyx_k_TA_CDL3BLACKCROWS), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDL3INSIDE, __pyx_k_TA_CDL3INSIDE, sizeof(__pyx_k_TA_CDL3INSIDE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDL3LINESTRIKE, __pyx_k_TA_CDL3LINESTRIKE, sizeof(__pyx_k_TA_CDL3LINESTRIKE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDL3OUTSIDE, __pyx_k_TA_CDL3OUTSIDE, sizeof(__pyx_k_TA_CDL3OUTSIDE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDL3STARSINSOUTH, __pyx_k_TA_CDL3STARSINSOUTH, sizeof(__pyx_k_TA_CDL3STARSINSOUTH), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDL3WHITESOLDIERS, __pyx_k_TA_CDL3WHITESOLDIERS, sizeof(__pyx_k_TA_CDL3WHITESOLDIERS), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLABANDONEDBABY, __pyx_k_TA_CDLABANDONEDBABY, sizeof(__pyx_k_TA_CDLABANDONEDBABY), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLADVANCEBLOCK, __pyx_k_TA_CDLADVANCEBLOCK, sizeof(__pyx_k_TA_CDLADVANCEBLOCK), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLBELTHOLD, __pyx_k_TA_CDLBELTHOLD, sizeof(__pyx_k_TA_CDLBELTHOLD), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLBREAKAWAY, __pyx_k_TA_CDLBREAKAWAY, sizeof(__pyx_k_TA_CDLBREAKAWAY), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLCLOSINGMARUBOZU, __pyx_k_TA_CDLCLOSINGMARUBOZU, sizeof(__pyx_k_TA_CDLCLOSINGMARUBOZU), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLCONCEALBABYSWALL, __pyx_k_TA_CDLCONCEALBABYSWALL, sizeof(__pyx_k_TA_CDLCONCEALBABYSWALL), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLCOUNTERATTACK, __pyx_k_TA_CDLCOUNTERATTACK, sizeof(__pyx_k_TA_CDLCOUNTERATTACK), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLDARKCLOUDCOVER, __pyx_k_TA_CDLDARKCLOUDCOVER, sizeof(__pyx_k_TA_CDLDARKCLOUDCOVER), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLDOJI, __pyx_k_TA_CDLDOJI, sizeof(__pyx_k_TA_CDLDOJI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLDOJISTAR, __pyx_k_TA_CDLDOJISTAR, sizeof(__pyx_k_TA_CDLDOJISTAR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLDRAGONFLYDOJI, __pyx_k_TA_CDLDRAGONFLYDOJI, sizeof(__pyx_k_TA_CDLDRAGONFLYDOJI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLENGULFING, __pyx_k_TA_CDLENGULFING, sizeof(__pyx_k_TA_CDLENGULFING), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLEVENINGDOJISTAR, __pyx_k_TA_CDLEVENINGDOJISTAR, sizeof(__pyx_k_TA_CDLEVENINGDOJISTAR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLEVENINGSTAR, __pyx_k_TA_CDLEVENINGSTAR, sizeof(__pyx_k_TA_CDLEVENINGSTAR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLGAPSIDESIDEWHITE, __pyx_k_TA_CDLGAPSIDESIDEWHITE, sizeof(__pyx_k_TA_CDLGAPSIDESIDEWHITE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLGRAVESTONEDOJI, __pyx_k_TA_CDLGRAVESTONEDOJI, sizeof(__pyx_k_TA_CDLGRAVESTONEDOJI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLHAMMER, __pyx_k_TA_CDLHAMMER, sizeof(__pyx_k_TA_CDLHAMMER), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLHANGINGMAN, __pyx_k_TA_CDLHANGINGMAN, sizeof(__pyx_k_TA_CDLHANGINGMAN), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLHARAMI, __pyx_k_TA_CDLHARAMI, sizeof(__pyx_k_TA_CDLHARAMI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLHARAMICROSS, __pyx_k_TA_CDLHARAMICROSS, sizeof(__pyx_k_TA_CDLHARAMICROSS), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLHIGHWAVE, __pyx_k_TA_CDLHIGHWAVE, sizeof(__pyx_k_TA_CDLHIGHWAVE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLHIKKAKE, __pyx_k_TA_CDLHIKKAKE, sizeof(__pyx_k_TA_CDLHIKKAKE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLHIKKAKEMOD, __pyx_k_TA_CDLHIKKAKEMOD, sizeof(__pyx_k_TA_CDLHIKKAKEMOD), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLHOMINGPIGEON, __pyx_k_TA_CDLHOMINGPIGEON, sizeof(__pyx_k_TA_CDLHOMINGPIGEON), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLIDENTICAL3CROWS, __pyx_k_TA_CDLIDENTICAL3CROWS, sizeof(__pyx_k_TA_CDLIDENTICAL3CROWS), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLINNECK, __pyx_k_TA_CDLINNECK, sizeof(__pyx_k_TA_CDLINNECK), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLINVERTEDHAMMER, __pyx_k_TA_CDLINVERTEDHAMMER, sizeof(__pyx_k_TA_CDLINVERTEDHAMMER), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLKICKING, __pyx_k_TA_CDLKICKING, sizeof(__pyx_k_TA_CDLKICKING), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLKICKINGBYLENGTH, __pyx_k_TA_CDLKICKINGBYLENGTH, sizeof(__pyx_k_TA_CDLKICKINGBYLENGTH), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLLADDERBOTTOM, __pyx_k_TA_CDLLADDERBOTTOM, sizeof(__pyx_k_TA_CDLLADDERBOTTOM), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLLONGLEGGEDDOJI, __pyx_k_TA_CDLLONGLEGGEDDOJI, sizeof(__pyx_k_TA_CDLLONGLEGGEDDOJI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLLONGLINE, __pyx_k_TA_CDLLONGLINE, sizeof(__pyx_k_TA_CDLLONGLINE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLMARUBOZU, __pyx_k_TA_CDLMARUBOZU, sizeof(__pyx_k_TA_CDLMARUBOZU), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLMATCHINGLOW, __pyx_k_TA_CDLMATCHINGLOW, sizeof(__pyx_k_TA_CDLMATCHINGLOW), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLMATHOLD, __pyx_k_TA_CDLMATHOLD, sizeof(__pyx_k_TA_CDLMATHOLD), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLMORNINGDOJISTAR, __pyx_k_TA_CDLMORNINGDOJISTAR, sizeof(__pyx_k_TA_CDLMORNINGDOJISTAR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLMORNINGSTAR, __pyx_k_TA_CDLMORNINGSTAR, sizeof(__pyx_k_TA_CDLMORNINGSTAR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLONNECK, __pyx_k_TA_CDLONNECK, sizeof(__pyx_k_TA_CDLONNECK), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLPIERCING, __pyx_k_TA_CDLPIERCING, sizeof(__pyx_k_TA_CDLPIERCING), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLRICKSHAWMAN, __pyx_k_TA_CDLRICKSHAWMAN, sizeof(__pyx_k_TA_CDLRICKSHAWMAN), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLRISEFALL3METHODS, __pyx_k_TA_CDLRISEFALL3METHODS, sizeof(__pyx_k_TA_CDLRISEFALL3METHODS), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLSEPARATINGLINES, __pyx_k_TA_CDLSEPARATINGLINES, sizeof(__pyx_k_TA_CDLSEPARATINGLINES), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLSHOOTINGSTAR, __pyx_k_TA_CDLSHOOTINGSTAR, sizeof(__pyx_k_TA_CDLSHOOTINGSTAR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLSHORTLINE, __pyx_k_TA_CDLSHORTLINE, sizeof(__pyx_k_TA_CDLSHORTLINE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLSPINNINGTOP, __pyx_k_TA_CDLSPINNINGTOP, sizeof(__pyx_k_TA_CDLSPINNINGTOP), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLSTALLEDPATTERN, __pyx_k_TA_CDLSTALLEDPATTERN, sizeof(__pyx_k_TA_CDLSTALLEDPATTERN), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLSTICKSANDWICH, __pyx_k_TA_CDLSTICKSANDWICH, sizeof(__pyx_k_TA_CDLSTICKSANDWICH), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLTAKURI, __pyx_k_TA_CDLTAKURI, sizeof(__pyx_k_TA_CDLTAKURI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLTASUKIGAP, __pyx_k_TA_CDLTASUKIGAP, sizeof(__pyx_k_TA_CDLTASUKIGAP), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLTHRUSTING, __pyx_k_TA_CDLTHRUSTING, sizeof(__pyx_k_TA_CDLTHRUSTING), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLTRISTAR, __pyx_k_TA_CDLTRISTAR, sizeof(__pyx_k_TA_CDLTRISTAR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLUNIQUE3RIVER, __pyx_k_TA_CDLUNIQUE3RIVER, sizeof(__pyx_k_TA_CDLUNIQUE3RIVER), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLUPSIDEGAP2CROWS, __pyx_k_TA_CDLUPSIDEGAP2CROWS, sizeof(__pyx_k_TA_CDLUPSIDEGAP2CROWS), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CDLXSIDEGAP3METHODS, __pyx_k_TA_CDLXSIDEGAP3METHODS, sizeof(__pyx_k_TA_CDLXSIDEGAP3METHODS), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CEIL, __pyx_k_TA_CEIL, sizeof(__pyx_k_TA_CEIL), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CMO, __pyx_k_TA_CMO, sizeof(__pyx_k_TA_CMO), 0, 0, 1, 1},
  {&__pyx_n_s_TA_CORREL, __pyx_k_TA_CORREL, sizeof(__pyx_k_TA_CORREL), 0, 0, 1, 1},
  {&__pyx_n_s_TA_COS, __pyx_k_TA_COS, sizeof(__pyx_k_TA_COS), 0, 0, 1, 1},
  {&__pyx_n_s_TA_COSH, __pyx_k_TA_COSH, sizeof(__pyx_k_TA_COSH), 0, 0, 1, 1},
  {&__pyx_n_s_TA_DEMA, __pyx_k_TA_DEMA, sizeof(__pyx_k_TA_DEMA), 0, 0, 1, 1},
  {&__pyx_n_s_TA_DIV, __pyx_k_TA_DIV, sizeof(__pyx_k_TA_DIV), 0, 0, 1, 1},
  {&__pyx_n_s_TA_DX, __pyx_k_TA_DX, sizeof(__pyx_k_TA_DX), 0, 0, 1, 1},
  {&__pyx_n_s_TA_EMA, __pyx_k_TA_EMA, sizeof(__pyx_k_TA_EMA), 0, 0, 1, 1},
  {&__pyx_n_s_TA_EXP, __pyx_k_TA_EXP, sizeof(__pyx_k_TA_EXP), 0, 0, 1, 1},
  {&__pyx_n_s_TA_FLOOR, __pyx_k_TA_FLOOR, sizeof(__pyx_k_TA_FLOOR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_HT_DCPERIOD, __pyx_k_TA_HT_DCPERIOD, sizeof(__pyx_k_TA_HT_DCPERIOD), 0, 0, 1, 1},
  {&__pyx_n_s_TA_HT_DCPHASE, __pyx_k_TA_HT_DCPHASE, sizeof(__pyx_k_TA_HT_DCPHASE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_HT_PHASOR, __pyx_k_TA_HT_PHASOR, sizeof(__pyx_k_TA_HT_PHASOR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_HT_SINE, __pyx_k_TA_HT_SINE, sizeof(__pyx_k_TA_HT_SINE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_HT_TRENDLINE, __pyx_k_TA_HT_TRENDLINE, sizeof(__pyx_k_TA_HT_TRENDLINE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_HT_TRENDMODE, __pyx_k_TA_HT_TRENDMODE, sizeof(__pyx_k_TA_HT_TRENDMODE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_KAMA, __pyx_k_TA_KAMA, sizeof(__pyx_k_TA_KAMA), 0, 0, 1, 1},
  {&__pyx_n_s_TA_LINEARREG, __pyx_k_TA_LINEARREG, sizeof(__pyx_k_TA_LINEARREG), 0, 0, 1, 1},
  {&__pyx_n_s_TA_LINEARREG_ANGLE, __pyx_k_TA_LINEARREG_ANGLE, sizeof(__pyx_k_TA_LINEARREG_ANGLE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_LINEARREG_INTERCEPT, __pyx_k_TA_LINEARREG_INTERCEPT, sizeof(__pyx_k_TA_LINEARREG_INTERCEPT), 0, 0, 1, 1},
  {&__pyx_n_s_TA_LINEARREG_SLOPE, __pyx_k_TA_LINEARREG_SLOPE, sizeof(__pyx_k_TA_LINEARREG_SLOPE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_LN, __pyx_k_TA_LN, sizeof(__pyx_k_TA_LN), 0, 0, 1, 1},
  {&__pyx_n_s_TA_LOG10, __pyx_k_TA_LOG10, sizeof(__pyx_k_TA_LOG10), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MA, __pyx_k_TA_MA, sizeof(__pyx_k_TA_MA), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MACD, __pyx_k_TA_MACD, sizeof(__pyx_k_TA_MACD), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MACDEXT, __pyx_k_TA_MACDEXT, sizeof(__pyx_k_TA_MACDEXT), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MACDFIX, __pyx_k_TA_MACDFIX, sizeof(__pyx_k_TA_MACDFIX), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MAMA, __pyx_k_TA_MAMA, sizeof(__pyx_k_TA_MAMA), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MAVP, __pyx_k_TA_MAVP, sizeof(__pyx_k_TA_MAVP), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MAX, __pyx_k_TA_MAX, sizeof(__pyx_k_TA_MAX), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MAXINDEX, __pyx_k_TA_MAXINDEX, sizeof(__pyx_k_TA_MAXINDEX), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MEDPRICE, __pyx_k_TA_MEDPRICE, sizeof(__pyx_k_TA_MEDPRICE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MFI, __pyx_k_TA_MFI, sizeof(__pyx_k_TA_MFI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MIDPOINT, __pyx_k_TA_MIDPOINT, sizeof(__pyx_k_TA_MIDPOINT), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MIDPRICE, __pyx_k_TA_MIDPRICE, sizeof(__pyx_k_TA_MIDPRICE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MIN, __pyx_k_TA_MIN, sizeof(__pyx_k_TA_MIN), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MININDEX, __pyx_k_TA_MININDEX, sizeof(__pyx_k_TA_MININDEX), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MINMAX, __pyx_k_TA_MINMAX, sizeof(__pyx_k_TA_MINMAX), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MINMAXINDEX, __pyx_k_TA_MINMAXINDEX, sizeof(__pyx_k_TA_MINMAXINDEX), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MINUS_DI, __pyx_k_TA_MINUS_DI, sizeof(__pyx_k_TA_MINUS_DI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MINUS_DM, __pyx_k_TA_MINUS_DM, sizeof(__pyx_k_TA_MINUS_DM), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MOM, __pyx_k_TA_MOM, sizeof(__pyx_k_TA_MOM), 0, 0, 1, 1},
  {&__pyx_n_s_TA_MULT, __pyx_k_TA_MULT, sizeof(__pyx_k_TA_MULT), 0, 0, 1, 1},
  {&__pyx_n_s_TA_NATR, __pyx_k_TA_NATR, sizeof(__pyx_k_TA_NATR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_OBV, __pyx_k_TA_OBV, sizeof(__pyx_k_TA_OBV), 0, 0, 1, 1},
  {&__pyx_n_s_TA_PLUS_DI, __pyx_k_TA_PLUS_DI, sizeof(__pyx_k_TA_PLUS_DI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_PLUS_DM, __pyx_k_TA_PLUS_DM, sizeof(__pyx_k_TA_PLUS_DM), 0, 0, 1, 1},
  {&__pyx_n_s_TA_PPO, __pyx_k_TA_PPO, sizeof(__pyx_k_TA_PPO), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ROC, __pyx_k_TA_ROC, sizeof(__pyx_k_TA_ROC), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ROCP, __pyx_k_TA_ROCP, sizeof(__pyx_k_TA_ROCP), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ROCR, __pyx_k_TA_ROCR, sizeof(__pyx_k_TA_ROCR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ROCR100, __pyx_k_TA_ROCR100, sizeof(__pyx_k_TA_ROCR100), 0, 0, 1, 1},
  {&__pyx_n_s_TA_RSI, __pyx_k_TA_RSI, sizeof(__pyx_k_TA_RSI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_SAR, __pyx_k_TA_SAR, sizeof(__pyx_k_TA_SAR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_SAREXT, __pyx_k_TA_SAREXT, sizeof(__pyx_k_TA_SAREXT), 0, 0, 1, 1},
  {&__pyx_n_s_TA_SIN, __pyx_k_TA_SIN, sizeof(__pyx_k_TA_SIN), 0, 0, 1, 1},
  {&__pyx_n_s_TA_SINH, __pyx_k_TA_SINH, sizeof(__pyx_k_TA_SINH), 0, 0, 1, 1},
  {&__pyx_n_s_TA_SMA, __pyx_k_TA_SMA, sizeof(__pyx_k_TA_SMA), 0, 0, 1, 1},
  {&__pyx_n_s_TA_SQRT, __pyx_k_TA_SQRT, sizeof(__pyx_k_TA_SQRT), 0, 0, 1, 1},
  {&__pyx_n_s_TA_STDDEV, __pyx_k_TA_STDDEV, sizeof(__pyx_k_TA_STDDEV), 0, 0, 1, 1},
  {&__pyx_n_s_TA_STOCH, __pyx_k_TA_STOCH, sizeof(__pyx_k_TA_STOCH), 0, 0, 1, 1},
  {&__pyx_n_s_TA_STOCHF, __pyx_k_TA_STOCHF, sizeof(__pyx_k_TA_STOCHF), 0, 0, 1, 1},
  {&__pyx_n_s_TA_STOCHRSI, __pyx_k_TA_STOCHRSI, sizeof(__pyx_k_TA_STOCHRSI), 0, 0, 1, 1},
  {&__pyx_n_s_TA_SUB, __pyx_k_TA_SUB, sizeof(__pyx_k_TA_SUB), 0, 0, 1, 1},
  {&__pyx_n_s_TA_SUM, __pyx_k_TA_SUM, sizeof(__pyx_k_TA_SUM), 0, 0, 1, 1},
  {&__pyx_n_s_TA_T3, __pyx_k_TA_T3, sizeof(__pyx_k_TA_T3), 0, 0, 1, 1},
  {&__pyx_n_s_TA_TAN, __pyx_k_TA_TAN, sizeof(__pyx_k_TA_TAN), 0, 0, 1, 1},
  {&__pyx_n_s_TA_TANH, __pyx_k_TA_TANH, sizeof(__pyx_k_TA_TANH), 0, 0, 1, 1},
  {&__pyx_n_s_TA_TEMA, __pyx_k_TA_TEMA, sizeof(__pyx_k_TA_TEMA), 0, 0, 1, 1},
  {&__pyx_n_s_TA_TRANGE, __pyx_k_TA_TRANGE, sizeof(__pyx_k_TA_TRANGE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_TRIMA, __pyx_k_TA_TRIMA, sizeof(__pyx_k_TA_TRIMA), 0, 0, 1, 1},
  {&__pyx_n_s_TA_TRIX, __pyx_k_TA_TRIX, sizeof(__pyx_k_TA_TRIX), 0, 0, 1, 1},
  {&__pyx_n_s_TA_TSF, __pyx_k_TA_TSF, sizeof(__pyx_k_TA_TSF), 0, 0, 1, 1},
  {&__pyx_n_s_TA_TYPPRICE, __pyx_k_TA_TYPPRICE, sizeof(__pyx_k_TA_TYPPRICE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_ULTOSC, __pyx_k_TA_ULTOSC, sizeof(__pyx_k_TA_ULTOSC), 0, 0, 1, 1},
  {&__pyx_n_s_TA_VAR, __pyx_k_TA_VAR, sizeof(__pyx_k_TA_VAR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_WCLPRICE, __pyx_k_TA_WCLPRICE, sizeof(__pyx_k_TA_WCLPRICE), 0, 0, 1, 1},
  {&__pyx_n_s_TA_WILLR, __pyx_k_TA_WILLR, sizeof(__pyx_k_TA_WILLR), 0, 0, 1, 1},
  {&__pyx_n_s_TA_WMA, __pyx_k_TA_WMA, sizeof(__pyx_k_TA_WMA), 0, 0, 1, 1},
  {&__pyx_n_s_TEMA, __pyx_k_TEMA, sizeof(__pyx_k_TEMA), 0, 0, 1, 1},
  {&__pyx_n_s_TRANGE, __pyx_k_TRANGE, sizeof(__pyx_k_TRANGE), 0, 0, 1, 1},
  {&__pyx_n_s_TRIMA, __pyx_k_TRIMA, sizeof(__pyx_k_TRIMA), 0, 0, 1, 1},
  {&__pyx_n_s_TRIX, __pyx_k_TRIX, sizeof(__pyx_k_TRIX), 0, 0, 1, 1},
  {&__pyx_n_s_TSF, __pyx_k_TSF, sizeof(__pyx_k_TSF), 0, 0, 1, 1},
  {&__pyx_n_s_TYPPRICE, __pyx_k_TYPPRICE, sizeof(__pyx_k_TYPPRICE), 0, 0, 1, 1},
  {&__pyx_n_s_ULTOSC, __pyx_k_ULTOSC, sizeof(__pyx_k_ULTOSC), 0, 0, 1, 1},
  {&__pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_k_Users_jbenedik_Dev_ta_lib_talib, sizeof(__pyx_k_Users_jbenedik_Dev_ta_lib_talib), 0, 0, 1, 0},
  {&__pyx_n_s_VAR, __pyx_k_VAR, sizeof(__pyx_k_VAR), 0, 0, 1, 1},
  {&__pyx_n_s_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1},
  {&__pyx_n_s_WCLPRICE, __pyx_k_WCLPRICE, sizeof(__pyx_k_WCLPRICE), 0, 0, 1, 1},
  {&__pyx_n_s_WILLR, __pyx_k_WILLR, sizeof(__pyx_k_WILLR), 0, 0, 1, 1},
  {&__pyx_n_s_WMA, __pyx_k_WMA, sizeof(__pyx_k_WMA), 0, 0, 1, 1},
  {&__pyx_n_s_acceleration, __pyx_k_acceleration, sizeof(__pyx_k_acceleration), 0, 0, 1, 1},
  {&__pyx_n_s_accelerationinitlong, __pyx_k_accelerationinitlong, sizeof(__pyx_k_accelerationinitlong), 0, 0, 1, 1},
  {&__pyx_n_s_accelerationinitshort, __pyx_k_accelerationinitshort, sizeof(__pyx_k_accelerationinitshort), 0, 0, 1, 1},
  {&__pyx_n_s_accelerationlong, __pyx_k_accelerationlong, sizeof(__pyx_k_accelerationlong), 0, 0, 1, 1},
  {&__pyx_n_s_accelerationmaxlong, __pyx_k_accelerationmaxlong, sizeof(__pyx_k_accelerationmaxlong), 0, 0, 1, 1},
  {&__pyx_n_s_accelerationmaxshort, __pyx_k_accelerationmaxshort, sizeof(__pyx_k_accelerationmaxshort), 0, 0, 1, 1},
  {&__pyx_n_s_accelerationshort, __pyx_k_accelerationshort, sizeof(__pyx_k_accelerationshort), 0, 0, 1, 1},
  {&__pyx_n_s_all, __pyx_k_all, sizeof(__pyx_k_all), 0, 0, 1, 1},
  {&__pyx_n_s_begidx, __pyx_k_begidx, sizeof(__pyx_k_begidx), 0, 0, 1, 1},
  {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1},
  {&__pyx_n_s_close_data, __pyx_k_close_data, sizeof(__pyx_k_close_data), 0, 0, 1, 1},
  {&__pyx_kp_s_close_has_wrong_dimensions, __pyx_k_close_has_wrong_dimensions, sizeof(__pyx_k_close_has_wrong_dimensions), 0, 0, 1, 0},
  {&__pyx_kp_s_close_is_not_double, __pyx_k_close_is_not_double, sizeof(__pyx_k_close_is_not_double), 0, 0, 1, 0},
  {&__pyx_n_s_endidx, __pyx_k_endidx, sizeof(__pyx_k_endidx), 0, 0, 1, 1},
  {&__pyx_n_s_fastd_matype, __pyx_k_fastd_matype, sizeof(__pyx_k_fastd_matype), 0, 0, 1, 1},
  {&__pyx_n_s_fastd_period, __pyx_k_fastd_period, sizeof(__pyx_k_fastd_period), 0, 0, 1, 1},
  {&__pyx_n_s_fastk_period, __pyx_k_fastk_period, sizeof(__pyx_k_fastk_period), 0, 0, 1, 1},
  {&__pyx_n_s_fastlimit, __pyx_k_fastlimit, sizeof(__pyx_k_fastlimit), 0, 0, 1, 1},
  {&__pyx_n_s_fastmatype, __pyx_k_fastmatype, sizeof(__pyx_k_fastmatype), 0, 0, 1, 1},
  {&__pyx_n_s_fastperiod, __pyx_k_fastperiod, sizeof(__pyx_k_fastperiod), 0, 0, 1, 1},
  {&__pyx_n_s_high, __pyx_k_high, sizeof(__pyx_k_high), 0, 0, 1, 1},
  {&__pyx_n_s_high_data, __pyx_k_high_data, sizeof(__pyx_k_high_data), 0, 0, 1, 1},
  {&__pyx_kp_s_high_has_wrong_dimensions, __pyx_k_high_has_wrong_dimensions, sizeof(__pyx_k_high_has_wrong_dimensions), 0, 0, 1, 0},
  {&__pyx_kp_s_high_is_not_double, __pyx_k_high_is_not_double, sizeof(__pyx_k_high_is_not_double), 0, 0, 1, 0},
  {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1},
  {&__pyx_kp_s_input_lengths_are_different, __pyx_k_input_lengths_are_different, sizeof(__pyx_k_input_lengths_are_different), 0, 0, 1, 0},
  {&__pyx_n_s_length, __pyx_k_length, sizeof(__pyx_k_length), 0, 0, 1, 1},
  {&__pyx_n_s_lookback, __pyx_k_lookback, sizeof(__pyx_k_lookback), 0, 0, 1, 1},
  {&__pyx_n_s_low, __pyx_k_low, sizeof(__pyx_k_low), 0, 0, 1, 1},
  {&__pyx_n_s_low_data, __pyx_k_low_data, sizeof(__pyx_k_low_data), 0, 0, 1, 1},
  {&__pyx_kp_s_low_has_wrong_dimensions, __pyx_k_low_has_wrong_dimensions, sizeof(__pyx_k_low_has_wrong_dimensions), 0, 0, 1, 0},
  {&__pyx_kp_s_low_is_not_double, __pyx_k_low_is_not_double, sizeof(__pyx_k_low_is_not_double), 0, 0, 1, 0},
  {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1},
  {&__pyx_n_s_matype, __pyx_k_matype, sizeof(__pyx_k_matype), 0, 0, 1, 1},
  {&__pyx_n_s_maximum, __pyx_k_maximum, sizeof(__pyx_k_maximum), 0, 0, 1, 1},
  {&__pyx_n_s_maxperiod, __pyx_k_maxperiod, sizeof(__pyx_k_maxperiod), 0, 0, 1, 1},
  {&__pyx_n_s_minperiod, __pyx_k_minperiod, sizeof(__pyx_k_minperiod), 0, 0, 1, 1},
  {&__pyx_n_s_nan, __pyx_k_nan, sizeof(__pyx_k_nan), 0, 0, 1, 1},
  {&__pyx_n_s_nbdev, __pyx_k_nbdev, sizeof(__pyx_k_nbdev), 0, 0, 1, 1},
  {&__pyx_n_s_nbdevdn, __pyx_k_nbdevdn, sizeof(__pyx_k_nbdevdn), 0, 0, 1, 1},
  {&__pyx_n_s_nbdevup, __pyx_k_nbdevup, sizeof(__pyx_k_nbdevup), 0, 0, 1, 1},
  {&__pyx_kp_u_ndarray_is_not_C_contiguous, __pyx_k_ndarray_is_not_C_contiguous, sizeof(__pyx_k_ndarray_is_not_C_contiguous), 0, 1, 0, 0},
  {&__pyx_kp_u_ndarray_is_not_Fortran_contiguou, __pyx_k_ndarray_is_not_Fortran_contiguou, sizeof(__pyx_k_ndarray_is_not_Fortran_contiguou), 0, 1, 0, 0},
  {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1},
  {&__pyx_n_s_offsetonreverse, __pyx_k_offsetonreverse, sizeof(__pyx_k_offsetonreverse), 0, 0, 1, 1},
  {&__pyx_n_s_open, __pyx_k_open, sizeof(__pyx_k_open), 0, 0, 1, 1},
  {&__pyx_n_s_open_data, __pyx_k_open_data, sizeof(__pyx_k_open_data), 0, 0, 1, 1},
  {&__pyx_kp_s_open_has_wrong_dimensions, __pyx_k_open_has_wrong_dimensions, sizeof(__pyx_k_open_has_wrong_dimensions), 0, 0, 1, 0},
  {&__pyx_kp_s_open_is_not_double, __pyx_k_open_is_not_double, sizeof(__pyx_k_open_is_not_double), 0, 0, 1, 0},
  {&__pyx_n_s_outaroondown, __pyx_k_outaroondown, sizeof(__pyx_k_outaroondown), 0, 0, 1, 1},
  {&__pyx_n_s_outaroonup, __pyx_k_outaroonup, sizeof(__pyx_k_outaroonup), 0, 0, 1, 1},
  {&__pyx_n_s_outbegidx, __pyx_k_outbegidx, sizeof(__pyx_k_outbegidx), 0, 0, 1, 1},
  {&__pyx_n_s_outfama, __pyx_k_outfama, sizeof(__pyx_k_outfama), 0, 0, 1, 1},
  {&__pyx_n_s_outfastd, __pyx_k_outfastd, sizeof(__pyx_k_outfastd), 0, 0, 1, 1},
  {&__pyx_n_s_outfastk, __pyx_k_outfastk, sizeof(__pyx_k_outfastk), 0, 0, 1, 1},
  {&__pyx_n_s_outinphase, __pyx_k_outinphase, sizeof(__pyx_k_outinphase), 0, 0, 1, 1},
  {&__pyx_n_s_outinteger, __pyx_k_outinteger, sizeof(__pyx_k_outinteger), 0, 0, 1, 1},
  {&__pyx_n_s_outleadsine, __pyx_k_outleadsine, sizeof(__pyx_k_outleadsine), 0, 0, 1, 1},
  {&__pyx_n_s_outmacd, __pyx_k_outmacd, sizeof(__pyx_k_outmacd), 0, 0, 1, 1},
  {&__pyx_n_s_outmacdhist, __pyx_k_outmacdhist, sizeof(__pyx_k_outmacdhist), 0, 0, 1, 1},
  {&__pyx_n_s_outmacdsignal, __pyx_k_outmacdsignal, sizeof(__pyx_k_outmacdsignal), 0, 0, 1, 1},
  {&__pyx_n_s_outmama, __pyx_k_outmama, sizeof(__pyx_k_outmama), 0, 0, 1, 1},
  {&__pyx_n_s_outmax, __pyx_k_outmax, sizeof(__pyx_k_outmax), 0, 0, 1, 1},
  {&__pyx_n_s_outmaxidx, __pyx_k_outmaxidx, sizeof(__pyx_k_outmaxidx), 0, 0, 1, 1},
  {&__pyx_n_s_outmin, __pyx_k_outmin, sizeof(__pyx_k_outmin), 0, 0, 1, 1},
  {&__pyx_n_s_outminidx, __pyx_k_outminidx, sizeof(__pyx_k_outminidx), 0, 0, 1, 1},
  {&__pyx_n_s_outnbelement, __pyx_k_outnbelement, sizeof(__pyx_k_outnbelement), 0, 0, 1, 1},
  {&__pyx_n_s_outquadrature, __pyx_k_outquadrature, sizeof(__pyx_k_outquadrature), 0, 0, 1, 1},
  {&__pyx_n_s_outreal, __pyx_k_outreal, sizeof(__pyx_k_outreal), 0, 0, 1, 1},
  {&__pyx_n_s_outreallowerband, __pyx_k_outreallowerband, sizeof(__pyx_k_outreallowerband), 0, 0, 1, 1},
  {&__pyx_n_s_outrealmiddleband, __pyx_k_outrealmiddleband, sizeof(__pyx_k_outrealmiddleband), 0, 0, 1, 1},
  {&__pyx_n_s_outrealupperband, __pyx_k_outrealupperband, sizeof(__pyx_k_outrealupperband), 0, 0, 1, 1},
  {&__pyx_n_s_outsine, __pyx_k_outsine, sizeof(__pyx_k_outsine), 0, 0, 1, 1},
  {&__pyx_n_s_outslowd, __pyx_k_outslowd, sizeof(__pyx_k_outslowd), 0, 0, 1, 1},
  {&__pyx_n_s_outslowk, __pyx_k_outslowk, sizeof(__pyx_k_outslowk), 0, 0, 1, 1},
  {&__pyx_n_s_penetration, __pyx_k_penetration, sizeof(__pyx_k_penetration), 0, 0, 1, 1},
  {&__pyx_n_s_periods, __pyx_k_periods, sizeof(__pyx_k_periods), 0, 0, 1, 1},
  {&__pyx_n_s_periods_data, __pyx_k_periods_data, sizeof(__pyx_k_periods_data), 0, 0, 1, 1},
  {&__pyx_kp_s_periods_has_wrong_dimensions, __pyx_k_periods_has_wrong_dimensions, sizeof(__pyx_k_periods_has_wrong_dimensions), 0, 0, 1, 0},
  {&__pyx_kp_s_periods_is_not_double, __pyx_k_periods_is_not_double, sizeof(__pyx_k_periods_is_not_double), 0, 0, 1, 0},
  {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1},
  {&__pyx_n_s_real, __pyx_k_real, sizeof(__pyx_k_real), 0, 0, 1, 1},
  {&__pyx_n_s_real0, __pyx_k_real0, sizeof(__pyx_k_real0), 0, 0, 1, 1},
  {&__pyx_n_s_real0_data, __pyx_k_real0_data, sizeof(__pyx_k_real0_data), 0, 0, 1, 1},
  {&__pyx_kp_s_real0_has_wrong_dimensions, __pyx_k_real0_has_wrong_dimensions, sizeof(__pyx_k_real0_has_wrong_dimensions), 0, 0, 1, 0},
  {&__pyx_kp_s_real0_is_not_double, __pyx_k_real0_is_not_double, sizeof(__pyx_k_real0_is_not_double), 0, 0, 1, 0},
  {&__pyx_n_s_real1, __pyx_k_real1, sizeof(__pyx_k_real1), 0, 0, 1, 1},
  {&__pyx_n_s_real1_data, __pyx_k_real1_data, sizeof(__pyx_k_real1_data), 0, 0, 1, 1},
  {&__pyx_kp_s_real1_has_wrong_dimensions, __pyx_k_real1_has_wrong_dimensions, sizeof(__pyx_k_real1_has_wrong_dimensions), 0, 0, 1, 0},
  {&__pyx_kp_s_real1_is_not_double, __pyx_k_real1_is_not_double, sizeof(__pyx_k_real1_is_not_double), 0, 0, 1, 0},
  {&__pyx_n_s_real_data, __pyx_k_real_data, sizeof(__pyx_k_real_data), 0, 0, 1, 1},
  {&__pyx_kp_s_real_has_wrong_dimensions, __pyx_k_real_has_wrong_dimensions, sizeof(__pyx_k_real_has_wrong_dimensions), 0, 0, 1, 0},
  {&__pyx_kp_s_real_is_not_double, __pyx_k_real_is_not_double, sizeof(__pyx_k_real_is_not_double), 0, 0, 1, 0},
  {&__pyx_n_s_retCode, __pyx_k_retCode, sizeof(__pyx_k_retCode), 0, 0, 1, 1},
  {&__pyx_n_s_signalmatype, __pyx_k_signalmatype, sizeof(__pyx_k_signalmatype), 0, 0, 1, 1},
  {&__pyx_n_s_signalperiod, __pyx_k_signalperiod, sizeof(__pyx_k_signalperiod), 0, 0, 1, 1},
  {&__pyx_n_s_slowd_matype, __pyx_k_slowd_matype, sizeof(__pyx_k_slowd_matype), 0, 0, 1, 1},
  {&__pyx_n_s_slowd_period, __pyx_k_slowd_period, sizeof(__pyx_k_slowd_period), 0, 0, 1, 1},
  {&__pyx_n_s_slowk_matype, __pyx_k_slowk_matype, sizeof(__pyx_k_slowk_matype), 0, 0, 1, 1},
  {&__pyx_n_s_slowk_period, __pyx_k_slowk_period, sizeof(__pyx_k_slowk_period), 0, 0, 1, 1},
  {&__pyx_n_s_slowlimit, __pyx_k_slowlimit, sizeof(__pyx_k_slowlimit), 0, 0, 1, 1},
  {&__pyx_n_s_slowmatype, __pyx_k_slowmatype, sizeof(__pyx_k_slowmatype), 0, 0, 1, 1},
  {&__pyx_n_s_slowperiod, __pyx_k_slowperiod, sizeof(__pyx_k_slowperiod), 0, 0, 1, 1},
  {&__pyx_n_s_startvalue, __pyx_k_startvalue, sizeof(__pyx_k_startvalue), 0, 0, 1, 1},
  {&__pyx_n_s_talib_stream, __pyx_k_talib_stream, sizeof(__pyx_k_talib_stream), 0, 0, 1, 1},
  {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1},
  {&__pyx_n_s_timeperiod, __pyx_k_timeperiod, sizeof(__pyx_k_timeperiod), 0, 0, 1, 1},
  {&__pyx_n_s_timeperiod1, __pyx_k_timeperiod1, sizeof(__pyx_k_timeperiod1), 0, 0, 1, 1},
  {&__pyx_n_s_timeperiod2, __pyx_k_timeperiod2, sizeof(__pyx_k_timeperiod2), 0, 0, 1, 1},
  {&__pyx_n_s_timeperiod3, __pyx_k_timeperiod3, sizeof(__pyx_k_timeperiod3), 0, 0, 1, 1},
  {&__pyx_kp_u_unknown_dtype_code_in_numpy_pxd, __pyx_k_unknown_dtype_code_in_numpy_pxd, sizeof(__pyx_k_unknown_dtype_code_in_numpy_pxd), 0, 1, 0, 0},
  {&__pyx_n_s_val, __pyx_k_val, sizeof(__pyx_k_val), 0, 0, 1, 1},
  {&__pyx_n_s_vfactor, __pyx_k_vfactor, sizeof(__pyx_k_vfactor), 0, 0, 1, 1},
  {&__pyx_n_s_volume, __pyx_k_volume, sizeof(__pyx_k_volume), 0, 0, 1, 1},
  {&__pyx_n_s_volume_data, __pyx_k_volume_data, sizeof(__pyx_k_volume_data), 0, 0, 1, 1},
  {&__pyx_kp_s_volume_has_wrong_dimensions, __pyx_k_volume_has_wrong_dimensions, sizeof(__pyx_k_volume_has_wrong_dimensions), 0, 0, 1, 0},
  {&__pyx_kp_s_volume_is_not_double, __pyx_k_volume_is_not_double, sizeof(__pyx_k_volume_is_not_double), 0, 0, 1, 0},
  {0, 0, 0, 0, 0, 0, 0}
};
static int __Pyx_InitCachedBuiltins(void) {
  __pyx_builtin_Exception = __Pyx_GetBuiltinName(__pyx_n_s_Exception); if (!__pyx_builtin_Exception) __PYX_ERR(0, 44, __pyx_L1_error)
  __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(1, 218, __pyx_L1_error)
  __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(1, 231, __pyx_L1_error)
  __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(1, 799, __pyx_L1_error)
  return 0;
  __pyx_L1_error:;
  return -1;
}

static int __Pyx_InitCachedConstants(void) {
  __Pyx_RefNannyDeclarations
  __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0);

  /* "talib/stream.pyx":44
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple_ = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple_)) __PYX_ERR(0, 44, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple_);
  __Pyx_GIVEREF(__pyx_tuple_);

  /* "talib/stream.pyx":46
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__2 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2)) __PYX_ERR(0, 46, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__2);
  __Pyx_GIVEREF(__pyx_tuple__2);

  /* "talib/stream.pyx":81
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 81, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__3);
  __Pyx_GIVEREF(__pyx_tuple__3);

  /* "talib/stream.pyx":83
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__4 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 83, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__4);
  __Pyx_GIVEREF(__pyx_tuple__4);

  /* "talib/stream.pyx":88
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__5 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 88, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__5);
  __Pyx_GIVEREF(__pyx_tuple__5);

  /* "talib/stream.pyx":90
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__6 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 90, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__6);
  __Pyx_GIVEREF(__pyx_tuple__6);

  /* "talib/stream.pyx":95
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__7 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 95, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__7);
  __Pyx_GIVEREF(__pyx_tuple__7);

  /* "talib/stream.pyx":97
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__8 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(0, 97, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__8);
  __Pyx_GIVEREF(__pyx_tuple__8);

  /* "talib/stream.pyx":102
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")             # <<<<<<<<<<<<<<
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 */
  __pyx_tuple__9 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__9);
  __Pyx_GIVEREF(__pyx_tuple__9);

  /* "talib/stream.pyx":104
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 */
  __pyx_tuple__10 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(0, 104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__10);
  __Pyx_GIVEREF(__pyx_tuple__10);

  /* "talib/stream.pyx":110
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__11 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__11);
  __Pyx_GIVEREF(__pyx_tuple__11);

  /* "talib/stream.pyx":112
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__12 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__12);
  __Pyx_GIVEREF(__pyx_tuple__12);

  /* "talib/stream.pyx":114
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_AD( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__13 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__13);
  __Pyx_GIVEREF(__pyx_tuple__13);

  /* "talib/stream.pyx":144
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
  __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__14);
  __Pyx_GIVEREF(__pyx_tuple__14);

  /* "talib/stream.pyx":146
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
  __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__15);
  __Pyx_GIVEREF(__pyx_tuple__15);

  /* "talib/stream.pyx":151
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
  __pyx_tuple__16 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 151, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__16);
  __Pyx_GIVEREF(__pyx_tuple__16);

  /* "talib/stream.pyx":153
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
  __pyx_tuple__17 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__17);
  __Pyx_GIVEREF(__pyx_tuple__17);

  /* "talib/stream.pyx":159
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ADD( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__18 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__18);
  __Pyx_GIVEREF(__pyx_tuple__18);

  /* "talib/stream.pyx":193
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__19 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 193, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__19);
  __Pyx_GIVEREF(__pyx_tuple__19);

  /* "talib/stream.pyx":195
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 195, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__20);
  __Pyx_GIVEREF(__pyx_tuple__20);

  /* "talib/stream.pyx":200
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 200, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__21);
  __Pyx_GIVEREF(__pyx_tuple__21);

  /* "talib/stream.pyx":202
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__22 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 202, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__22);
  __Pyx_GIVEREF(__pyx_tuple__22);

  /* "talib/stream.pyx":207
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__23 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 207, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__23);
  __Pyx_GIVEREF(__pyx_tuple__23);

  /* "talib/stream.pyx":209
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__24 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__24);
  __Pyx_GIVEREF(__pyx_tuple__24);

  /* "talib/stream.pyx":214
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")             # <<<<<<<<<<<<<<
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 */
  __pyx_tuple__25 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__25);
  __Pyx_GIVEREF(__pyx_tuple__25);

  /* "talib/stream.pyx":216
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 */
  __pyx_tuple__26 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__26);
  __Pyx_GIVEREF(__pyx_tuple__26);

  /* "talib/stream.pyx":222
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__27 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__27);
  __Pyx_GIVEREF(__pyx_tuple__27);

  /* "talib/stream.pyx":224
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__28 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__28);
  __Pyx_GIVEREF(__pyx_tuple__28);

  /* "talib/stream.pyx":226
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ADOSC( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , fastperiod , slowperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__29 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__29);
  __Pyx_GIVEREF(__pyx_tuple__29);

  /* "talib/stream.pyx":258
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__30 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__30);
  __Pyx_GIVEREF(__pyx_tuple__30);

  /* "talib/stream.pyx":260
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__31 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__31);
  __Pyx_GIVEREF(__pyx_tuple__31);

  /* "talib/stream.pyx":265
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(0, 265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__32);
  __Pyx_GIVEREF(__pyx_tuple__32);

  /* "talib/stream.pyx":267
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__33 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__33);
  __Pyx_GIVEREF(__pyx_tuple__33);

  /* "talib/stream.pyx":272
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__34 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(0, 272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__34);
  __Pyx_GIVEREF(__pyx_tuple__34);

  /* "talib/stream.pyx":274
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__35 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 274, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__35);
  __Pyx_GIVEREF(__pyx_tuple__35);

  /* "talib/stream.pyx":280
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__36 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 280, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__36);
  __Pyx_GIVEREF(__pyx_tuple__36);

  /* "talib/stream.pyx":282
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ADX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__37 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 282, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__37);
  __Pyx_GIVEREF(__pyx_tuple__37);

  /* "talib/stream.pyx":314
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__38 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 314, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__38);
  __Pyx_GIVEREF(__pyx_tuple__38);

  /* "talib/stream.pyx":316
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__39 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 316, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__39);
  __Pyx_GIVEREF(__pyx_tuple__39);

  /* "talib/stream.pyx":321
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__40 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(0, 321, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__40);
  __Pyx_GIVEREF(__pyx_tuple__40);

  /* "talib/stream.pyx":323
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__41 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 323, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__41);
  __Pyx_GIVEREF(__pyx_tuple__41);

  /* "talib/stream.pyx":328
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__42 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(0, 328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__42);
  __Pyx_GIVEREF(__pyx_tuple__42);

  /* "talib/stream.pyx":330
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__43 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 330, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__43);
  __Pyx_GIVEREF(__pyx_tuple__43);

  /* "talib/stream.pyx":336
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__44 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(0, 336, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__44);
  __Pyx_GIVEREF(__pyx_tuple__44);

  /* "talib/stream.pyx":338
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ADXR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__45 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 338, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__45);
  __Pyx_GIVEREF(__pyx_tuple__45);

  /* "talib/stream.pyx":370
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__46 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(0, 370, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__46);
  __Pyx_GIVEREF(__pyx_tuple__46);

  /* "talib/stream.pyx":372
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__47 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__47);
  __Pyx_GIVEREF(__pyx_tuple__47);

  /* "talib/stream.pyx":409
 *         double outaroonup
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__48 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(0, 409, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__48);
  __Pyx_GIVEREF(__pyx_tuple__48);

  /* "talib/stream.pyx":411
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__49 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__49);
  __Pyx_GIVEREF(__pyx_tuple__49);

  /* "talib/stream.pyx":416
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__50);
  __Pyx_GIVEREF(__pyx_tuple__50);

  /* "talib/stream.pyx":418
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__51);
  __Pyx_GIVEREF(__pyx_tuple__51);

  /* "talib/stream.pyx":424
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outaroondown = NaN
 *     outaroonup = NaN
 */
  __pyx_tuple__52 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 424, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__52);
  __Pyx_GIVEREF(__pyx_tuple__52);

  /* "talib/stream.pyx":456
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__53 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(0, 456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__53);
  __Pyx_GIVEREF(__pyx_tuple__53);

  /* "talib/stream.pyx":458
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__54 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 458, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__54);
  __Pyx_GIVEREF(__pyx_tuple__54);

  /* "talib/stream.pyx":463
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__55 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(0, 463, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__55);
  __Pyx_GIVEREF(__pyx_tuple__55);

  /* "talib/stream.pyx":465
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__56 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(0, 465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__56);
  __Pyx_GIVEREF(__pyx_tuple__56);

  /* "talib/stream.pyx":471
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_AROONOSC( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__57 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 471, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__57);
  __Pyx_GIVEREF(__pyx_tuple__57);

  /* "talib/stream.pyx":499
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__58 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 499, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__58);
  __Pyx_GIVEREF(__pyx_tuple__58);

  /* "talib/stream.pyx":501
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__59 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__59)) __PYX_ERR(0, 501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__59);
  __Pyx_GIVEREF(__pyx_tuple__59);

  /* "talib/stream.pyx":533
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__60 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__60);
  __Pyx_GIVEREF(__pyx_tuple__60);

  /* "talib/stream.pyx":535
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__61 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__61)) __PYX_ERR(0, 535, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__61);
  __Pyx_GIVEREF(__pyx_tuple__61);

  /* "talib/stream.pyx":571
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__62 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__62);
  __Pyx_GIVEREF(__pyx_tuple__62);

  /* "talib/stream.pyx":573
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__63 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__63);
  __Pyx_GIVEREF(__pyx_tuple__63);

  /* "talib/stream.pyx":578
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__64 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__64);
  __Pyx_GIVEREF(__pyx_tuple__64);

  /* "talib/stream.pyx":580
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__65 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__65);
  __Pyx_GIVEREF(__pyx_tuple__65);

  /* "talib/stream.pyx":585
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__66 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(0, 585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__66);
  __Pyx_GIVEREF(__pyx_tuple__66);

  /* "talib/stream.pyx":587
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__67 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 587, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__67);
  __Pyx_GIVEREF(__pyx_tuple__67);

  /* "talib/stream.pyx":593
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__68 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(0, 593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__68);
  __Pyx_GIVEREF(__pyx_tuple__68);

  /* "talib/stream.pyx":595
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__69 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__69);
  __Pyx_GIVEREF(__pyx_tuple__69);

  /* "talib/stream.pyx":626
 *         double outreal
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__70 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(0, 626, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__70);
  __Pyx_GIVEREF(__pyx_tuple__70);

  /* "talib/stream.pyx":628
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__71 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__71);
  __Pyx_GIVEREF(__pyx_tuple__71);

  /* "talib/stream.pyx":633
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__72 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(0, 633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__72);
  __Pyx_GIVEREF(__pyx_tuple__72);

  /* "talib/stream.pyx":635
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__73 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__73);
  __Pyx_GIVEREF(__pyx_tuple__73);

  /* "talib/stream.pyx":640
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__74 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(0, 640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__74);
  __Pyx_GIVEREF(__pyx_tuple__74);

  /* "talib/stream.pyx":642
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__75 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__75);
  __Pyx_GIVEREF(__pyx_tuple__75);

  /* "talib/stream.pyx":647
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__76 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(0, 647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__76);
  __Pyx_GIVEREF(__pyx_tuple__76);

  /* "talib/stream.pyx":649
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__77 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__77);
  __Pyx_GIVEREF(__pyx_tuple__77);

  /* "talib/stream.pyx":655
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__78 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(0, 655, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__78);
  __Pyx_GIVEREF(__pyx_tuple__78);

  /* "talib/stream.pyx":657
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__79 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__79);
  __Pyx_GIVEREF(__pyx_tuple__79);

  /* "talib/stream.pyx":659
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_AVGPRICE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__80 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(0, 659, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__80);
  __Pyx_GIVEREF(__pyx_tuple__80);

  /* "talib/stream.pyx":696
 *         double outreallowerband
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__81 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 696, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__81);
  __Pyx_GIVEREF(__pyx_tuple__81);

  /* "talib/stream.pyx":698
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__82 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(0, 698, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__82);
  __Pyx_GIVEREF(__pyx_tuple__82);

  /* "talib/stream.pyx":736
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
  __pyx_tuple__83 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 736, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__83);
  __Pyx_GIVEREF(__pyx_tuple__83);

  /* "talib/stream.pyx":738
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
  __pyx_tuple__84 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(0, 738, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__84);
  __Pyx_GIVEREF(__pyx_tuple__84);

  /* "talib/stream.pyx":743
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
  __pyx_tuple__85 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__85);
  __Pyx_GIVEREF(__pyx_tuple__85);

  /* "talib/stream.pyx":745
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
  __pyx_tuple__86 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(0, 745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__86);
  __Pyx_GIVEREF(__pyx_tuple__86);

  /* "talib/stream.pyx":751
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_BETA( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__87 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(0, 751, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__87);
  __Pyx_GIVEREF(__pyx_tuple__87);

  /* "talib/stream.pyx":782
 *         double outreal
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__88 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(0, 782, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__88);
  __Pyx_GIVEREF(__pyx_tuple__88);

  /* "talib/stream.pyx":784
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__89 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 784, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__89);
  __Pyx_GIVEREF(__pyx_tuple__89);

  /* "talib/stream.pyx":789
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__90 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(0, 789, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__90);
  __Pyx_GIVEREF(__pyx_tuple__90);

  /* "talib/stream.pyx":791
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__91 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__91)) __PYX_ERR(0, 791, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__91);
  __Pyx_GIVEREF(__pyx_tuple__91);

  /* "talib/stream.pyx":796
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__92 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__92)) __PYX_ERR(0, 796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__92);
  __Pyx_GIVEREF(__pyx_tuple__92);

  /* "talib/stream.pyx":798
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__93 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__93)) __PYX_ERR(0, 798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__93);
  __Pyx_GIVEREF(__pyx_tuple__93);

  /* "talib/stream.pyx":803
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__94 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__94)) __PYX_ERR(0, 803, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__94);
  __Pyx_GIVEREF(__pyx_tuple__94);

  /* "talib/stream.pyx":805
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__95 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__95)) __PYX_ERR(0, 805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__95);
  __Pyx_GIVEREF(__pyx_tuple__95);

  /* "talib/stream.pyx":811
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__96 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(0, 811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__96);
  __Pyx_GIVEREF(__pyx_tuple__96);

  /* "talib/stream.pyx":813
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__97 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__97)) __PYX_ERR(0, 813, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__97);
  __Pyx_GIVEREF(__pyx_tuple__97);

  /* "talib/stream.pyx":815
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_BOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__98 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__98)) __PYX_ERR(0, 815, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__98);
  __Pyx_GIVEREF(__pyx_tuple__98);

  /* "talib/stream.pyx":847
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__99 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__99)) __PYX_ERR(0, 847, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__99);
  __Pyx_GIVEREF(__pyx_tuple__99);

  /* "talib/stream.pyx":849
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__100 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__100)) __PYX_ERR(0, 849, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__100);
  __Pyx_GIVEREF(__pyx_tuple__100);

  /* "talib/stream.pyx":854
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__101 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__101)) __PYX_ERR(0, 854, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__101);
  __Pyx_GIVEREF(__pyx_tuple__101);

  /* "talib/stream.pyx":856
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__102 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(0, 856, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__102);
  __Pyx_GIVEREF(__pyx_tuple__102);

  /* "talib/stream.pyx":861
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__103 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__103)) __PYX_ERR(0, 861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__103);
  __Pyx_GIVEREF(__pyx_tuple__103);

  /* "talib/stream.pyx":863
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__104 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__104)) __PYX_ERR(0, 863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__104);
  __Pyx_GIVEREF(__pyx_tuple__104);

  /* "talib/stream.pyx":869
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__105 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__105)) __PYX_ERR(0, 869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__105);
  __Pyx_GIVEREF(__pyx_tuple__105);

  /* "talib/stream.pyx":871
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_CCI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__106 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__106)) __PYX_ERR(0, 871, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__106);
  __Pyx_GIVEREF(__pyx_tuple__106);

  /* "talib/stream.pyx":902
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__107 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__107)) __PYX_ERR(0, 902, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__107);
  __Pyx_GIVEREF(__pyx_tuple__107);

  /* "talib/stream.pyx":904
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__108 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__108)) __PYX_ERR(0, 904, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__108);
  __Pyx_GIVEREF(__pyx_tuple__108);

  /* "talib/stream.pyx":909
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__109 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__109)) __PYX_ERR(0, 909, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__109);
  __Pyx_GIVEREF(__pyx_tuple__109);

  /* "talib/stream.pyx":911
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__110 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(0, 911, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__110);
  __Pyx_GIVEREF(__pyx_tuple__110);

  /* "talib/stream.pyx":916
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__111 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__111)) __PYX_ERR(0, 916, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__111);
  __Pyx_GIVEREF(__pyx_tuple__111);

  /* "talib/stream.pyx":918
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__112 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(0, 918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__112);
  __Pyx_GIVEREF(__pyx_tuple__112);

  /* "talib/stream.pyx":923
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__113 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__113)) __PYX_ERR(0, 923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__113);
  __Pyx_GIVEREF(__pyx_tuple__113);

  /* "talib/stream.pyx":925
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__114 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(0, 925, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__114);
  __Pyx_GIVEREF(__pyx_tuple__114);

  /* "talib/stream.pyx":931
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__115 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__115)) __PYX_ERR(0, 931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__115);
  __Pyx_GIVEREF(__pyx_tuple__115);

  /* "talib/stream.pyx":933
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__116 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(0, 933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__116);
  __Pyx_GIVEREF(__pyx_tuple__116);

  /* "talib/stream.pyx":935
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__117 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__117)) __PYX_ERR(0, 935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__117);
  __Pyx_GIVEREF(__pyx_tuple__117);

  /* "talib/stream.pyx":966
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__118 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(0, 966, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__118);
  __Pyx_GIVEREF(__pyx_tuple__118);

  /* "talib/stream.pyx":968
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__119 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__119)) __PYX_ERR(0, 968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__119);
  __Pyx_GIVEREF(__pyx_tuple__119);

  /* "talib/stream.pyx":973
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__120 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(0, 973, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__120);
  __Pyx_GIVEREF(__pyx_tuple__120);

  /* "talib/stream.pyx":975
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__121 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__121)) __PYX_ERR(0, 975, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__121);
  __Pyx_GIVEREF(__pyx_tuple__121);

  /* "talib/stream.pyx":980
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__122 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__122)) __PYX_ERR(0, 980, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__122);
  __Pyx_GIVEREF(__pyx_tuple__122);

  /* "talib/stream.pyx":982
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__123 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(0, 982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__123);
  __Pyx_GIVEREF(__pyx_tuple__123);

  /* "talib/stream.pyx":987
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__124 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__124)) __PYX_ERR(0, 987, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__124);
  __Pyx_GIVEREF(__pyx_tuple__124);

  /* "talib/stream.pyx":989
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__125 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__125)) __PYX_ERR(0, 989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__125);
  __Pyx_GIVEREF(__pyx_tuple__125);

  /* "talib/stream.pyx":995
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__126 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__126)) __PYX_ERR(0, 995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__126);
  __Pyx_GIVEREF(__pyx_tuple__126);

  /* "talib/stream.pyx":997
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__127 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__127)) __PYX_ERR(0, 997, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__127);
  __Pyx_GIVEREF(__pyx_tuple__127);

  /* "talib/stream.pyx":999
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3BLACKCROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__128 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__128)) __PYX_ERR(0, 999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__128);
  __Pyx_GIVEREF(__pyx_tuple__128);

  /* "talib/stream.pyx":1030
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__129 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__129)) __PYX_ERR(0, 1030, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__129);
  __Pyx_GIVEREF(__pyx_tuple__129);

  /* "talib/stream.pyx":1032
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__130 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__130)) __PYX_ERR(0, 1032, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__130);
  __Pyx_GIVEREF(__pyx_tuple__130);

  /* "talib/stream.pyx":1037
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__131 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__131)) __PYX_ERR(0, 1037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__131);
  __Pyx_GIVEREF(__pyx_tuple__131);

  /* "talib/stream.pyx":1039
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__132 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__132)) __PYX_ERR(0, 1039, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__132);
  __Pyx_GIVEREF(__pyx_tuple__132);

  /* "talib/stream.pyx":1044
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__133 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__133)) __PYX_ERR(0, 1044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__133);
  __Pyx_GIVEREF(__pyx_tuple__133);

  /* "talib/stream.pyx":1046
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__134 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__134)) __PYX_ERR(0, 1046, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__134);
  __Pyx_GIVEREF(__pyx_tuple__134);

  /* "talib/stream.pyx":1051
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__135 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__135)) __PYX_ERR(0, 1051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__135);
  __Pyx_GIVEREF(__pyx_tuple__135);

  /* "talib/stream.pyx":1053
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__136 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__136)) __PYX_ERR(0, 1053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__136);
  __Pyx_GIVEREF(__pyx_tuple__136);

  /* "talib/stream.pyx":1059
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__137 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__137)) __PYX_ERR(0, 1059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__137);
  __Pyx_GIVEREF(__pyx_tuple__137);

  /* "talib/stream.pyx":1061
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__138 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__138)) __PYX_ERR(0, 1061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__138);
  __Pyx_GIVEREF(__pyx_tuple__138);

  /* "talib/stream.pyx":1063
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3INSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__139 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__139)) __PYX_ERR(0, 1063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__139);
  __Pyx_GIVEREF(__pyx_tuple__139);

  /* "talib/stream.pyx":1094
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__140 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__140)) __PYX_ERR(0, 1094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__140);
  __Pyx_GIVEREF(__pyx_tuple__140);

  /* "talib/stream.pyx":1096
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__141 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__141)) __PYX_ERR(0, 1096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__141);
  __Pyx_GIVEREF(__pyx_tuple__141);

  /* "talib/stream.pyx":1101
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__142 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__142)) __PYX_ERR(0, 1101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__142);
  __Pyx_GIVEREF(__pyx_tuple__142);

  /* "talib/stream.pyx":1103
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__143 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__143)) __PYX_ERR(0, 1103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__143);
  __Pyx_GIVEREF(__pyx_tuple__143);

  /* "talib/stream.pyx":1108
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__144 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__144)) __PYX_ERR(0, 1108, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__144);
  __Pyx_GIVEREF(__pyx_tuple__144);

  /* "talib/stream.pyx":1110
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__145 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__145)) __PYX_ERR(0, 1110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__145);
  __Pyx_GIVEREF(__pyx_tuple__145);

  /* "talib/stream.pyx":1115
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__146 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__146)) __PYX_ERR(0, 1115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__146);
  __Pyx_GIVEREF(__pyx_tuple__146);

  /* "talib/stream.pyx":1117
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__147 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__147)) __PYX_ERR(0, 1117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__147);
  __Pyx_GIVEREF(__pyx_tuple__147);

  /* "talib/stream.pyx":1123
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__148 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__148)) __PYX_ERR(0, 1123, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__148);
  __Pyx_GIVEREF(__pyx_tuple__148);

  /* "talib/stream.pyx":1125
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__149 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__149)) __PYX_ERR(0, 1125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__149);
  __Pyx_GIVEREF(__pyx_tuple__149);

  /* "talib/stream.pyx":1127
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3LINESTRIKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__150 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__150)) __PYX_ERR(0, 1127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__150);
  __Pyx_GIVEREF(__pyx_tuple__150);

  /* "talib/stream.pyx":1158
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__151 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__151)) __PYX_ERR(0, 1158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__151);
  __Pyx_GIVEREF(__pyx_tuple__151);

  /* "talib/stream.pyx":1160
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__152 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__152)) __PYX_ERR(0, 1160, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__152);
  __Pyx_GIVEREF(__pyx_tuple__152);

  /* "talib/stream.pyx":1165
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__153 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__153)) __PYX_ERR(0, 1165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__153);
  __Pyx_GIVEREF(__pyx_tuple__153);

  /* "talib/stream.pyx":1167
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__154 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__154)) __PYX_ERR(0, 1167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__154);
  __Pyx_GIVEREF(__pyx_tuple__154);

  /* "talib/stream.pyx":1172
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__155 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__155)) __PYX_ERR(0, 1172, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__155);
  __Pyx_GIVEREF(__pyx_tuple__155);

  /* "talib/stream.pyx":1174
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__156 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__156)) __PYX_ERR(0, 1174, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__156);
  __Pyx_GIVEREF(__pyx_tuple__156);

  /* "talib/stream.pyx":1179
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__157 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__157)) __PYX_ERR(0, 1179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__157);
  __Pyx_GIVEREF(__pyx_tuple__157);

  /* "talib/stream.pyx":1181
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__158 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__158)) __PYX_ERR(0, 1181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__158);
  __Pyx_GIVEREF(__pyx_tuple__158);

  /* "talib/stream.pyx":1187
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__159 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__159)) __PYX_ERR(0, 1187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__159);
  __Pyx_GIVEREF(__pyx_tuple__159);

  /* "talib/stream.pyx":1189
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__160 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__160)) __PYX_ERR(0, 1189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__160);
  __Pyx_GIVEREF(__pyx_tuple__160);

  /* "talib/stream.pyx":1191
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3OUTSIDE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__161 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__161)) __PYX_ERR(0, 1191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__161);
  __Pyx_GIVEREF(__pyx_tuple__161);

  /* "talib/stream.pyx":1222
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__162 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__162)) __PYX_ERR(0, 1222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__162);
  __Pyx_GIVEREF(__pyx_tuple__162);

  /* "talib/stream.pyx":1224
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__163 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__163)) __PYX_ERR(0, 1224, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__163);
  __Pyx_GIVEREF(__pyx_tuple__163);

  /* "talib/stream.pyx":1229
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__164 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__164)) __PYX_ERR(0, 1229, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__164);
  __Pyx_GIVEREF(__pyx_tuple__164);

  /* "talib/stream.pyx":1231
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__165 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__165)) __PYX_ERR(0, 1231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__165);
  __Pyx_GIVEREF(__pyx_tuple__165);

  /* "talib/stream.pyx":1236
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__166 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__166)) __PYX_ERR(0, 1236, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__166);
  __Pyx_GIVEREF(__pyx_tuple__166);

  /* "talib/stream.pyx":1238
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__167 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__167)) __PYX_ERR(0, 1238, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__167);
  __Pyx_GIVEREF(__pyx_tuple__167);

  /* "talib/stream.pyx":1243
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__168 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__168)) __PYX_ERR(0, 1243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__168);
  __Pyx_GIVEREF(__pyx_tuple__168);

  /* "talib/stream.pyx":1245
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__169 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__169)) __PYX_ERR(0, 1245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__169);
  __Pyx_GIVEREF(__pyx_tuple__169);

  /* "talib/stream.pyx":1251
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__170 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__170)) __PYX_ERR(0, 1251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__170);
  __Pyx_GIVEREF(__pyx_tuple__170);

  /* "talib/stream.pyx":1253
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__171 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__171)) __PYX_ERR(0, 1253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__171);
  __Pyx_GIVEREF(__pyx_tuple__171);

  /* "talib/stream.pyx":1255
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3STARSINSOUTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__172 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__172)) __PYX_ERR(0, 1255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__172);
  __Pyx_GIVEREF(__pyx_tuple__172);

  /* "talib/stream.pyx":1286
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__173 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__173)) __PYX_ERR(0, 1286, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__173);
  __Pyx_GIVEREF(__pyx_tuple__173);

  /* "talib/stream.pyx":1288
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__174 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__174)) __PYX_ERR(0, 1288, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__174);
  __Pyx_GIVEREF(__pyx_tuple__174);

  /* "talib/stream.pyx":1293
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__175 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__175)) __PYX_ERR(0, 1293, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__175);
  __Pyx_GIVEREF(__pyx_tuple__175);

  /* "talib/stream.pyx":1295
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__176 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__176)) __PYX_ERR(0, 1295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__176);
  __Pyx_GIVEREF(__pyx_tuple__176);

  /* "talib/stream.pyx":1300
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__177 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__177)) __PYX_ERR(0, 1300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__177);
  __Pyx_GIVEREF(__pyx_tuple__177);

  /* "talib/stream.pyx":1302
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__178 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__178)) __PYX_ERR(0, 1302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__178);
  __Pyx_GIVEREF(__pyx_tuple__178);

  /* "talib/stream.pyx":1307
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__179 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__179)) __PYX_ERR(0, 1307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__179);
  __Pyx_GIVEREF(__pyx_tuple__179);

  /* "talib/stream.pyx":1309
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__180 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__180)) __PYX_ERR(0, 1309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__180);
  __Pyx_GIVEREF(__pyx_tuple__180);

  /* "talib/stream.pyx":1315
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__181 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__181)) __PYX_ERR(0, 1315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__181);
  __Pyx_GIVEREF(__pyx_tuple__181);

  /* "talib/stream.pyx":1317
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__182 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__182)) __PYX_ERR(0, 1317, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__182);
  __Pyx_GIVEREF(__pyx_tuple__182);

  /* "talib/stream.pyx":1319
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDL3WHITESOLDIERS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__183 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__183)) __PYX_ERR(0, 1319, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__183);
  __Pyx_GIVEREF(__pyx_tuple__183);

  /* "talib/stream.pyx":1352
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__184 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__184)) __PYX_ERR(0, 1352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__184);
  __Pyx_GIVEREF(__pyx_tuple__184);

  /* "talib/stream.pyx":1354
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__185 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__185)) __PYX_ERR(0, 1354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__185);
  __Pyx_GIVEREF(__pyx_tuple__185);

  /* "talib/stream.pyx":1359
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__186 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__186)) __PYX_ERR(0, 1359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__186);
  __Pyx_GIVEREF(__pyx_tuple__186);

  /* "talib/stream.pyx":1361
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__187 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__187)) __PYX_ERR(0, 1361, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__187);
  __Pyx_GIVEREF(__pyx_tuple__187);

  /* "talib/stream.pyx":1366
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__188 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__188)) __PYX_ERR(0, 1366, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__188);
  __Pyx_GIVEREF(__pyx_tuple__188);

  /* "talib/stream.pyx":1368
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__189 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__189)) __PYX_ERR(0, 1368, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__189);
  __Pyx_GIVEREF(__pyx_tuple__189);

  /* "talib/stream.pyx":1373
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__190 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__190)) __PYX_ERR(0, 1373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__190);
  __Pyx_GIVEREF(__pyx_tuple__190);

  /* "talib/stream.pyx":1375
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__191 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__191)) __PYX_ERR(0, 1375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__191);
  __Pyx_GIVEREF(__pyx_tuple__191);

  /* "talib/stream.pyx":1381
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__192 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__192)) __PYX_ERR(0, 1381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__192);
  __Pyx_GIVEREF(__pyx_tuple__192);

  /* "talib/stream.pyx":1383
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__193 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__193)) __PYX_ERR(0, 1383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__193);
  __Pyx_GIVEREF(__pyx_tuple__193);

  /* "talib/stream.pyx":1385
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLABANDONEDBABY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__194 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__194)) __PYX_ERR(0, 1385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__194);
  __Pyx_GIVEREF(__pyx_tuple__194);

  /* "talib/stream.pyx":1416
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__195 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__195)) __PYX_ERR(0, 1416, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__195);
  __Pyx_GIVEREF(__pyx_tuple__195);

  /* "talib/stream.pyx":1418
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__196 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__196)) __PYX_ERR(0, 1418, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__196);
  __Pyx_GIVEREF(__pyx_tuple__196);

  /* "talib/stream.pyx":1423
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__197 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__197)) __PYX_ERR(0, 1423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__197);
  __Pyx_GIVEREF(__pyx_tuple__197);

  /* "talib/stream.pyx":1425
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__198 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__198)) __PYX_ERR(0, 1425, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__198);
  __Pyx_GIVEREF(__pyx_tuple__198);

  /* "talib/stream.pyx":1430
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__199 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__199)) __PYX_ERR(0, 1430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__199);
  __Pyx_GIVEREF(__pyx_tuple__199);

  /* "talib/stream.pyx":1432
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__200 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__200)) __PYX_ERR(0, 1432, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__200);
  __Pyx_GIVEREF(__pyx_tuple__200);

  /* "talib/stream.pyx":1437
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__201 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__201)) __PYX_ERR(0, 1437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__201);
  __Pyx_GIVEREF(__pyx_tuple__201);

  /* "talib/stream.pyx":1439
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__202 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__202)) __PYX_ERR(0, 1439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__202);
  __Pyx_GIVEREF(__pyx_tuple__202);

  /* "talib/stream.pyx":1445
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__203 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__203)) __PYX_ERR(0, 1445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__203);
  __Pyx_GIVEREF(__pyx_tuple__203);

  /* "talib/stream.pyx":1447
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__204 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__204)) __PYX_ERR(0, 1447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__204);
  __Pyx_GIVEREF(__pyx_tuple__204);

  /* "talib/stream.pyx":1449
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLADVANCEBLOCK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__205 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__205)) __PYX_ERR(0, 1449, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__205);
  __Pyx_GIVEREF(__pyx_tuple__205);

  /* "talib/stream.pyx":1480
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__206 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__206)) __PYX_ERR(0, 1480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__206);
  __Pyx_GIVEREF(__pyx_tuple__206);

  /* "talib/stream.pyx":1482
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__207 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__207)) __PYX_ERR(0, 1482, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__207);
  __Pyx_GIVEREF(__pyx_tuple__207);

  /* "talib/stream.pyx":1487
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__208 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__208)) __PYX_ERR(0, 1487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__208);
  __Pyx_GIVEREF(__pyx_tuple__208);

  /* "talib/stream.pyx":1489
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__209 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__209)) __PYX_ERR(0, 1489, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__209);
  __Pyx_GIVEREF(__pyx_tuple__209);

  /* "talib/stream.pyx":1494
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__210 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__210)) __PYX_ERR(0, 1494, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__210);
  __Pyx_GIVEREF(__pyx_tuple__210);

  /* "talib/stream.pyx":1496
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__211 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__211)) __PYX_ERR(0, 1496, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__211);
  __Pyx_GIVEREF(__pyx_tuple__211);

  /* "talib/stream.pyx":1501
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__212 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__212)) __PYX_ERR(0, 1501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__212);
  __Pyx_GIVEREF(__pyx_tuple__212);

  /* "talib/stream.pyx":1503
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__213 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__213)) __PYX_ERR(0, 1503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__213);
  __Pyx_GIVEREF(__pyx_tuple__213);

  /* "talib/stream.pyx":1509
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__214 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__214)) __PYX_ERR(0, 1509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__214);
  __Pyx_GIVEREF(__pyx_tuple__214);

  /* "talib/stream.pyx":1511
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__215 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__215)) __PYX_ERR(0, 1511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__215);
  __Pyx_GIVEREF(__pyx_tuple__215);

  /* "talib/stream.pyx":1513
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLBELTHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__216 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__216)) __PYX_ERR(0, 1513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__216);
  __Pyx_GIVEREF(__pyx_tuple__216);

  /* "talib/stream.pyx":1544
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__217 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__217)) __PYX_ERR(0, 1544, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__217);
  __Pyx_GIVEREF(__pyx_tuple__217);

  /* "talib/stream.pyx":1546
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__218 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__218)) __PYX_ERR(0, 1546, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__218);
  __Pyx_GIVEREF(__pyx_tuple__218);

  /* "talib/stream.pyx":1551
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__219 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__219)) __PYX_ERR(0, 1551, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__219);
  __Pyx_GIVEREF(__pyx_tuple__219);

  /* "talib/stream.pyx":1553
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__220 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__220)) __PYX_ERR(0, 1553, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__220);
  __Pyx_GIVEREF(__pyx_tuple__220);

  /* "talib/stream.pyx":1558
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__221 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__221)) __PYX_ERR(0, 1558, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__221);
  __Pyx_GIVEREF(__pyx_tuple__221);

  /* "talib/stream.pyx":1560
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__222 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__222)) __PYX_ERR(0, 1560, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__222);
  __Pyx_GIVEREF(__pyx_tuple__222);

  /* "talib/stream.pyx":1565
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__223 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__223)) __PYX_ERR(0, 1565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__223);
  __Pyx_GIVEREF(__pyx_tuple__223);

  /* "talib/stream.pyx":1567
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__224 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__224)) __PYX_ERR(0, 1567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__224);
  __Pyx_GIVEREF(__pyx_tuple__224);

  /* "talib/stream.pyx":1573
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__225 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__225)) __PYX_ERR(0, 1573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__225);
  __Pyx_GIVEREF(__pyx_tuple__225);

  /* "talib/stream.pyx":1575
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__226 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__226)) __PYX_ERR(0, 1575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__226);
  __Pyx_GIVEREF(__pyx_tuple__226);

  /* "talib/stream.pyx":1577
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLBREAKAWAY( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__227 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__227)) __PYX_ERR(0, 1577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__227);
  __Pyx_GIVEREF(__pyx_tuple__227);

  /* "talib/stream.pyx":1608
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__228 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__228)) __PYX_ERR(0, 1608, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__228);
  __Pyx_GIVEREF(__pyx_tuple__228);

  /* "talib/stream.pyx":1610
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__229 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__229)) __PYX_ERR(0, 1610, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__229);
  __Pyx_GIVEREF(__pyx_tuple__229);

  /* "talib/stream.pyx":1615
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__230 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__230)) __PYX_ERR(0, 1615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__230);
  __Pyx_GIVEREF(__pyx_tuple__230);

  /* "talib/stream.pyx":1617
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__231 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__231)) __PYX_ERR(0, 1617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__231);
  __Pyx_GIVEREF(__pyx_tuple__231);

  /* "talib/stream.pyx":1622
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__232 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__232)) __PYX_ERR(0, 1622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__232);
  __Pyx_GIVEREF(__pyx_tuple__232);

  /* "talib/stream.pyx":1624
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__233 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__233)) __PYX_ERR(0, 1624, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__233);
  __Pyx_GIVEREF(__pyx_tuple__233);

  /* "talib/stream.pyx":1629
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__234 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__234)) __PYX_ERR(0, 1629, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__234);
  __Pyx_GIVEREF(__pyx_tuple__234);

  /* "talib/stream.pyx":1631
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__235 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__235)) __PYX_ERR(0, 1631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__235);
  __Pyx_GIVEREF(__pyx_tuple__235);

  /* "talib/stream.pyx":1637
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__236 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__236)) __PYX_ERR(0, 1637, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__236);
  __Pyx_GIVEREF(__pyx_tuple__236);

  /* "talib/stream.pyx":1639
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__237 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__237)) __PYX_ERR(0, 1639, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__237);
  __Pyx_GIVEREF(__pyx_tuple__237);

  /* "talib/stream.pyx":1641
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLCLOSINGMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__238 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__238)) __PYX_ERR(0, 1641, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__238);
  __Pyx_GIVEREF(__pyx_tuple__238);

  /* "talib/stream.pyx":1672
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__239 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__239)) __PYX_ERR(0, 1672, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__239);
  __Pyx_GIVEREF(__pyx_tuple__239);

  /* "talib/stream.pyx":1674
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__240 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__240)) __PYX_ERR(0, 1674, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__240);
  __Pyx_GIVEREF(__pyx_tuple__240);

  /* "talib/stream.pyx":1679
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__241 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__241)) __PYX_ERR(0, 1679, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__241);
  __Pyx_GIVEREF(__pyx_tuple__241);

  /* "talib/stream.pyx":1681
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__242 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__242)) __PYX_ERR(0, 1681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__242);
  __Pyx_GIVEREF(__pyx_tuple__242);

  /* "talib/stream.pyx":1686
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__243 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__243)) __PYX_ERR(0, 1686, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__243);
  __Pyx_GIVEREF(__pyx_tuple__243);

  /* "talib/stream.pyx":1688
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__244 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__244)) __PYX_ERR(0, 1688, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__244);
  __Pyx_GIVEREF(__pyx_tuple__244);

  /* "talib/stream.pyx":1693
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__245 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__245)) __PYX_ERR(0, 1693, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__245);
  __Pyx_GIVEREF(__pyx_tuple__245);

  /* "talib/stream.pyx":1695
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__246 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__246)) __PYX_ERR(0, 1695, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__246);
  __Pyx_GIVEREF(__pyx_tuple__246);

  /* "talib/stream.pyx":1701
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__247 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__247)) __PYX_ERR(0, 1701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__247);
  __Pyx_GIVEREF(__pyx_tuple__247);

  /* "talib/stream.pyx":1703
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__248 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__248)) __PYX_ERR(0, 1703, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__248);
  __Pyx_GIVEREF(__pyx_tuple__248);

  /* "talib/stream.pyx":1705
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLCONCEALBABYSWALL( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__249 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__249)) __PYX_ERR(0, 1705, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__249);
  __Pyx_GIVEREF(__pyx_tuple__249);

  /* "talib/stream.pyx":1736
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__250 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__250)) __PYX_ERR(0, 1736, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__250);
  __Pyx_GIVEREF(__pyx_tuple__250);

  /* "talib/stream.pyx":1738
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__251 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__251)) __PYX_ERR(0, 1738, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__251);
  __Pyx_GIVEREF(__pyx_tuple__251);

  /* "talib/stream.pyx":1743
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__252 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__252)) __PYX_ERR(0, 1743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__252);
  __Pyx_GIVEREF(__pyx_tuple__252);

  /* "talib/stream.pyx":1745
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__253 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__253)) __PYX_ERR(0, 1745, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__253);
  __Pyx_GIVEREF(__pyx_tuple__253);

  /* "talib/stream.pyx":1750
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__254 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__254)) __PYX_ERR(0, 1750, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__254);
  __Pyx_GIVEREF(__pyx_tuple__254);

  /* "talib/stream.pyx":1752
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__255 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__255)) __PYX_ERR(0, 1752, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__255);
  __Pyx_GIVEREF(__pyx_tuple__255);

  /* "talib/stream.pyx":1757
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__256 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__256)) __PYX_ERR(0, 1757, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__256);
  __Pyx_GIVEREF(__pyx_tuple__256);

  /* "talib/stream.pyx":1759
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__257 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__257)) __PYX_ERR(0, 1759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__257);
  __Pyx_GIVEREF(__pyx_tuple__257);

  /* "talib/stream.pyx":1765
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__258 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__258)) __PYX_ERR(0, 1765, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__258);
  __Pyx_GIVEREF(__pyx_tuple__258);

  /* "talib/stream.pyx":1767
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__259 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__259)) __PYX_ERR(0, 1767, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__259);
  __Pyx_GIVEREF(__pyx_tuple__259);

  /* "talib/stream.pyx":1769
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLCOUNTERATTACK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__260 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__260)) __PYX_ERR(0, 1769, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__260);
  __Pyx_GIVEREF(__pyx_tuple__260);

  /* "talib/stream.pyx":1802
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__261 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__261)) __PYX_ERR(0, 1802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__261);
  __Pyx_GIVEREF(__pyx_tuple__261);

  /* "talib/stream.pyx":1804
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__262 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__262)) __PYX_ERR(0, 1804, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__262);
  __Pyx_GIVEREF(__pyx_tuple__262);

  /* "talib/stream.pyx":1809
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__263 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__263)) __PYX_ERR(0, 1809, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__263);
  __Pyx_GIVEREF(__pyx_tuple__263);

  /* "talib/stream.pyx":1811
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__264 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__264)) __PYX_ERR(0, 1811, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__264);
  __Pyx_GIVEREF(__pyx_tuple__264);

  /* "talib/stream.pyx":1816
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__265 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__265)) __PYX_ERR(0, 1816, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__265);
  __Pyx_GIVEREF(__pyx_tuple__265);

  /* "talib/stream.pyx":1818
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__266 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__266)) __PYX_ERR(0, 1818, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__266);
  __Pyx_GIVEREF(__pyx_tuple__266);

  /* "talib/stream.pyx":1823
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__267 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__267)) __PYX_ERR(0, 1823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__267);
  __Pyx_GIVEREF(__pyx_tuple__267);

  /* "talib/stream.pyx":1825
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__268 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__268)) __PYX_ERR(0, 1825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__268);
  __Pyx_GIVEREF(__pyx_tuple__268);

  /* "talib/stream.pyx":1831
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__269 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__269)) __PYX_ERR(0, 1831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__269);
  __Pyx_GIVEREF(__pyx_tuple__269);

  /* "talib/stream.pyx":1833
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__270 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__270)) __PYX_ERR(0, 1833, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__270);
  __Pyx_GIVEREF(__pyx_tuple__270);

  /* "talib/stream.pyx":1835
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLDARKCLOUDCOVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__271 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__271)) __PYX_ERR(0, 1835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__271);
  __Pyx_GIVEREF(__pyx_tuple__271);

  /* "talib/stream.pyx":1866
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__272 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__272)) __PYX_ERR(0, 1866, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__272);
  __Pyx_GIVEREF(__pyx_tuple__272);

  /* "talib/stream.pyx":1868
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__273 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__273)) __PYX_ERR(0, 1868, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__273);
  __Pyx_GIVEREF(__pyx_tuple__273);

  /* "talib/stream.pyx":1873
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__274 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__274)) __PYX_ERR(0, 1873, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__274);
  __Pyx_GIVEREF(__pyx_tuple__274);

  /* "talib/stream.pyx":1875
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__275 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__275)) __PYX_ERR(0, 1875, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__275);
  __Pyx_GIVEREF(__pyx_tuple__275);

  /* "talib/stream.pyx":1880
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__276 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__276)) __PYX_ERR(0, 1880, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__276);
  __Pyx_GIVEREF(__pyx_tuple__276);

  /* "talib/stream.pyx":1882
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__277 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__277)) __PYX_ERR(0, 1882, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__277);
  __Pyx_GIVEREF(__pyx_tuple__277);

  /* "talib/stream.pyx":1887
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__278 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__278)) __PYX_ERR(0, 1887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__278);
  __Pyx_GIVEREF(__pyx_tuple__278);

  /* "talib/stream.pyx":1889
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__279 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__279)) __PYX_ERR(0, 1889, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__279);
  __Pyx_GIVEREF(__pyx_tuple__279);

  /* "talib/stream.pyx":1895
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__280 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__280)) __PYX_ERR(0, 1895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__280);
  __Pyx_GIVEREF(__pyx_tuple__280);

  /* "talib/stream.pyx":1897
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__281 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__281)) __PYX_ERR(0, 1897, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__281);
  __Pyx_GIVEREF(__pyx_tuple__281);

  /* "talib/stream.pyx":1899
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__282 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__282)) __PYX_ERR(0, 1899, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__282);
  __Pyx_GIVEREF(__pyx_tuple__282);

  /* "talib/stream.pyx":1930
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__283 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__283)) __PYX_ERR(0, 1930, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__283);
  __Pyx_GIVEREF(__pyx_tuple__283);

  /* "talib/stream.pyx":1932
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__284 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__284)) __PYX_ERR(0, 1932, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__284);
  __Pyx_GIVEREF(__pyx_tuple__284);

  /* "talib/stream.pyx":1937
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__285 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__285)) __PYX_ERR(0, 1937, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__285);
  __Pyx_GIVEREF(__pyx_tuple__285);

  /* "talib/stream.pyx":1939
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__286 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__286)) __PYX_ERR(0, 1939, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__286);
  __Pyx_GIVEREF(__pyx_tuple__286);

  /* "talib/stream.pyx":1944
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__287 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__287)) __PYX_ERR(0, 1944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__287);
  __Pyx_GIVEREF(__pyx_tuple__287);

  /* "talib/stream.pyx":1946
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__288 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__288)) __PYX_ERR(0, 1946, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__288);
  __Pyx_GIVEREF(__pyx_tuple__288);

  /* "talib/stream.pyx":1951
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__289 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__289)) __PYX_ERR(0, 1951, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__289);
  __Pyx_GIVEREF(__pyx_tuple__289);

  /* "talib/stream.pyx":1953
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__290 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__290)) __PYX_ERR(0, 1953, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__290);
  __Pyx_GIVEREF(__pyx_tuple__290);

  /* "talib/stream.pyx":1959
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__291 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__291)) __PYX_ERR(0, 1959, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__291);
  __Pyx_GIVEREF(__pyx_tuple__291);

  /* "talib/stream.pyx":1961
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__292 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__292)) __PYX_ERR(0, 1961, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__292);
  __Pyx_GIVEREF(__pyx_tuple__292);

  /* "talib/stream.pyx":1963
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__293 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__293)) __PYX_ERR(0, 1963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__293);
  __Pyx_GIVEREF(__pyx_tuple__293);

  /* "talib/stream.pyx":1994
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__294 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__294)) __PYX_ERR(0, 1994, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__294);
  __Pyx_GIVEREF(__pyx_tuple__294);

  /* "talib/stream.pyx":1996
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__295 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__295)) __PYX_ERR(0, 1996, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__295);
  __Pyx_GIVEREF(__pyx_tuple__295);

  /* "talib/stream.pyx":2001
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__296 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__296)) __PYX_ERR(0, 2001, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__296);
  __Pyx_GIVEREF(__pyx_tuple__296);

  /* "talib/stream.pyx":2003
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__297 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__297)) __PYX_ERR(0, 2003, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__297);
  __Pyx_GIVEREF(__pyx_tuple__297);

  /* "talib/stream.pyx":2008
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__298 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__298)) __PYX_ERR(0, 2008, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__298);
  __Pyx_GIVEREF(__pyx_tuple__298);

  /* "talib/stream.pyx":2010
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__299 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__299)) __PYX_ERR(0, 2010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__299);
  __Pyx_GIVEREF(__pyx_tuple__299);

  /* "talib/stream.pyx":2015
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__300 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__300)) __PYX_ERR(0, 2015, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__300);
  __Pyx_GIVEREF(__pyx_tuple__300);

  /* "talib/stream.pyx":2017
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__301 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__301)) __PYX_ERR(0, 2017, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__301);
  __Pyx_GIVEREF(__pyx_tuple__301);

  /* "talib/stream.pyx":2023
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__302 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__302)) __PYX_ERR(0, 2023, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__302);
  __Pyx_GIVEREF(__pyx_tuple__302);

  /* "talib/stream.pyx":2025
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__303 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__303)) __PYX_ERR(0, 2025, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__303);
  __Pyx_GIVEREF(__pyx_tuple__303);

  /* "talib/stream.pyx":2027
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLDRAGONFLYDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__304 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__304)) __PYX_ERR(0, 2027, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__304);
  __Pyx_GIVEREF(__pyx_tuple__304);

  /* "talib/stream.pyx":2058
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__305 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__305)) __PYX_ERR(0, 2058, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__305);
  __Pyx_GIVEREF(__pyx_tuple__305);

  /* "talib/stream.pyx":2060
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__306 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__306)) __PYX_ERR(0, 2060, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__306);
  __Pyx_GIVEREF(__pyx_tuple__306);

  /* "talib/stream.pyx":2065
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__307 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__307)) __PYX_ERR(0, 2065, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__307);
  __Pyx_GIVEREF(__pyx_tuple__307);

  /* "talib/stream.pyx":2067
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__308 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__308)) __PYX_ERR(0, 2067, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__308);
  __Pyx_GIVEREF(__pyx_tuple__308);

  /* "talib/stream.pyx":2072
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__309 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__309)) __PYX_ERR(0, 2072, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__309);
  __Pyx_GIVEREF(__pyx_tuple__309);

  /* "talib/stream.pyx":2074
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__310 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__310)) __PYX_ERR(0, 2074, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__310);
  __Pyx_GIVEREF(__pyx_tuple__310);

  /* "talib/stream.pyx":2079
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__311 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__311)) __PYX_ERR(0, 2079, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__311);
  __Pyx_GIVEREF(__pyx_tuple__311);

  /* "talib/stream.pyx":2081
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__312 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__312)) __PYX_ERR(0, 2081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__312);
  __Pyx_GIVEREF(__pyx_tuple__312);

  /* "talib/stream.pyx":2087
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__313 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__313)) __PYX_ERR(0, 2087, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__313);
  __Pyx_GIVEREF(__pyx_tuple__313);

  /* "talib/stream.pyx":2089
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__314 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__314)) __PYX_ERR(0, 2089, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__314);
  __Pyx_GIVEREF(__pyx_tuple__314);

  /* "talib/stream.pyx":2091
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLENGULFING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__315 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__315)) __PYX_ERR(0, 2091, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__315);
  __Pyx_GIVEREF(__pyx_tuple__315);

  /* "talib/stream.pyx":2124
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__316 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__316)) __PYX_ERR(0, 2124, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__316);
  __Pyx_GIVEREF(__pyx_tuple__316);

  /* "talib/stream.pyx":2126
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__317 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__317)) __PYX_ERR(0, 2126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__317);
  __Pyx_GIVEREF(__pyx_tuple__317);

  /* "talib/stream.pyx":2131
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__318 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__318)) __PYX_ERR(0, 2131, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__318);
  __Pyx_GIVEREF(__pyx_tuple__318);

  /* "talib/stream.pyx":2133
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__319 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__319)) __PYX_ERR(0, 2133, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__319);
  __Pyx_GIVEREF(__pyx_tuple__319);

  /* "talib/stream.pyx":2138
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__320 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__320)) __PYX_ERR(0, 2138, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__320);
  __Pyx_GIVEREF(__pyx_tuple__320);

  /* "talib/stream.pyx":2140
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__321 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__321)) __PYX_ERR(0, 2140, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__321);
  __Pyx_GIVEREF(__pyx_tuple__321);

  /* "talib/stream.pyx":2145
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__322 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__322)) __PYX_ERR(0, 2145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__322);
  __Pyx_GIVEREF(__pyx_tuple__322);

  /* "talib/stream.pyx":2147
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__323 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__323)) __PYX_ERR(0, 2147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__323);
  __Pyx_GIVEREF(__pyx_tuple__323);

  /* "talib/stream.pyx":2153
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__324 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__324)) __PYX_ERR(0, 2153, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__324);
  __Pyx_GIVEREF(__pyx_tuple__324);

  /* "talib/stream.pyx":2155
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__325 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__325)) __PYX_ERR(0, 2155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__325);
  __Pyx_GIVEREF(__pyx_tuple__325);

  /* "talib/stream.pyx":2157
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLEVENINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__326 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__326)) __PYX_ERR(0, 2157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__326);
  __Pyx_GIVEREF(__pyx_tuple__326);

  /* "talib/stream.pyx":2190
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__327 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__327)) __PYX_ERR(0, 2190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__327);
  __Pyx_GIVEREF(__pyx_tuple__327);

  /* "talib/stream.pyx":2192
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__328 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__328)) __PYX_ERR(0, 2192, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__328);
  __Pyx_GIVEREF(__pyx_tuple__328);

  /* "talib/stream.pyx":2197
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__329 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__329)) __PYX_ERR(0, 2197, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__329);
  __Pyx_GIVEREF(__pyx_tuple__329);

  /* "talib/stream.pyx":2199
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__330 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__330)) __PYX_ERR(0, 2199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__330);
  __Pyx_GIVEREF(__pyx_tuple__330);

  /* "talib/stream.pyx":2204
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__331 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__331)) __PYX_ERR(0, 2204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__331);
  __Pyx_GIVEREF(__pyx_tuple__331);

  /* "talib/stream.pyx":2206
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__332 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__332)) __PYX_ERR(0, 2206, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__332);
  __Pyx_GIVEREF(__pyx_tuple__332);

  /* "talib/stream.pyx":2211
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__333 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__333)) __PYX_ERR(0, 2211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__333);
  __Pyx_GIVEREF(__pyx_tuple__333);

  /* "talib/stream.pyx":2213
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__334 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__334)) __PYX_ERR(0, 2213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__334);
  __Pyx_GIVEREF(__pyx_tuple__334);

  /* "talib/stream.pyx":2219
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__335 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__335)) __PYX_ERR(0, 2219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__335);
  __Pyx_GIVEREF(__pyx_tuple__335);

  /* "talib/stream.pyx":2221
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__336 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__336)) __PYX_ERR(0, 2221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__336);
  __Pyx_GIVEREF(__pyx_tuple__336);

  /* "talib/stream.pyx":2223
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLEVENINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__337 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__337)) __PYX_ERR(0, 2223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__337);
  __Pyx_GIVEREF(__pyx_tuple__337);

  /* "talib/stream.pyx":2254
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__338 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__338)) __PYX_ERR(0, 2254, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__338);
  __Pyx_GIVEREF(__pyx_tuple__338);

  /* "talib/stream.pyx":2256
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__339 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__339)) __PYX_ERR(0, 2256, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__339);
  __Pyx_GIVEREF(__pyx_tuple__339);

  /* "talib/stream.pyx":2261
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__340 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__340)) __PYX_ERR(0, 2261, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__340);
  __Pyx_GIVEREF(__pyx_tuple__340);

  /* "talib/stream.pyx":2263
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__341 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__341)) __PYX_ERR(0, 2263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__341);
  __Pyx_GIVEREF(__pyx_tuple__341);

  /* "talib/stream.pyx":2268
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__342 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__342)) __PYX_ERR(0, 2268, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__342);
  __Pyx_GIVEREF(__pyx_tuple__342);

  /* "talib/stream.pyx":2270
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__343 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__343)) __PYX_ERR(0, 2270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__343);
  __Pyx_GIVEREF(__pyx_tuple__343);

  /* "talib/stream.pyx":2275
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__344 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__344)) __PYX_ERR(0, 2275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__344);
  __Pyx_GIVEREF(__pyx_tuple__344);

  /* "talib/stream.pyx":2277
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__345 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__345)) __PYX_ERR(0, 2277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__345);
  __Pyx_GIVEREF(__pyx_tuple__345);

  /* "talib/stream.pyx":2283
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__346 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__346)) __PYX_ERR(0, 2283, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__346);
  __Pyx_GIVEREF(__pyx_tuple__346);

  /* "talib/stream.pyx":2285
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__347 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__347)) __PYX_ERR(0, 2285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__347);
  __Pyx_GIVEREF(__pyx_tuple__347);

  /* "talib/stream.pyx":2287
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLGAPSIDESIDEWHITE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__348 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__348)) __PYX_ERR(0, 2287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__348);
  __Pyx_GIVEREF(__pyx_tuple__348);

  /* "talib/stream.pyx":2318
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__349 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__349)) __PYX_ERR(0, 2318, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__349);
  __Pyx_GIVEREF(__pyx_tuple__349);

  /* "talib/stream.pyx":2320
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__350 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__350)) __PYX_ERR(0, 2320, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__350);
  __Pyx_GIVEREF(__pyx_tuple__350);

  /* "talib/stream.pyx":2325
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__351 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__351)) __PYX_ERR(0, 2325, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__351);
  __Pyx_GIVEREF(__pyx_tuple__351);

  /* "talib/stream.pyx":2327
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__352 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__352)) __PYX_ERR(0, 2327, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__352);
  __Pyx_GIVEREF(__pyx_tuple__352);

  /* "talib/stream.pyx":2332
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__353 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__353)) __PYX_ERR(0, 2332, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__353);
  __Pyx_GIVEREF(__pyx_tuple__353);

  /* "talib/stream.pyx":2334
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__354 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__354)) __PYX_ERR(0, 2334, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__354);
  __Pyx_GIVEREF(__pyx_tuple__354);

  /* "talib/stream.pyx":2339
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__355 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__355)) __PYX_ERR(0, 2339, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__355);
  __Pyx_GIVEREF(__pyx_tuple__355);

  /* "talib/stream.pyx":2341
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__356 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__356)) __PYX_ERR(0, 2341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__356);
  __Pyx_GIVEREF(__pyx_tuple__356);

  /* "talib/stream.pyx":2347
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__357 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__357)) __PYX_ERR(0, 2347, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__357);
  __Pyx_GIVEREF(__pyx_tuple__357);

  /* "talib/stream.pyx":2349
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__358 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__358)) __PYX_ERR(0, 2349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__358);
  __Pyx_GIVEREF(__pyx_tuple__358);

  /* "talib/stream.pyx":2351
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLGRAVESTONEDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__359 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__359)) __PYX_ERR(0, 2351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__359);
  __Pyx_GIVEREF(__pyx_tuple__359);

  /* "talib/stream.pyx":2382
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__360 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__360)) __PYX_ERR(0, 2382, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__360);
  __Pyx_GIVEREF(__pyx_tuple__360);

  /* "talib/stream.pyx":2384
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__361 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__361)) __PYX_ERR(0, 2384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__361);
  __Pyx_GIVEREF(__pyx_tuple__361);

  /* "talib/stream.pyx":2389
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__362 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__362)) __PYX_ERR(0, 2389, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__362);
  __Pyx_GIVEREF(__pyx_tuple__362);

  /* "talib/stream.pyx":2391
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__363 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__363)) __PYX_ERR(0, 2391, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__363);
  __Pyx_GIVEREF(__pyx_tuple__363);

  /* "talib/stream.pyx":2396
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__364 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__364)) __PYX_ERR(0, 2396, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__364);
  __Pyx_GIVEREF(__pyx_tuple__364);

  /* "talib/stream.pyx":2398
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__365 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__365)) __PYX_ERR(0, 2398, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__365);
  __Pyx_GIVEREF(__pyx_tuple__365);

  /* "talib/stream.pyx":2403
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__366 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__366)) __PYX_ERR(0, 2403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__366);
  __Pyx_GIVEREF(__pyx_tuple__366);

  /* "talib/stream.pyx":2405
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__367 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__367)) __PYX_ERR(0, 2405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__367);
  __Pyx_GIVEREF(__pyx_tuple__367);

  /* "talib/stream.pyx":2411
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__368 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__368)) __PYX_ERR(0, 2411, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__368);
  __Pyx_GIVEREF(__pyx_tuple__368);

  /* "talib/stream.pyx":2413
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__369 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__369)) __PYX_ERR(0, 2413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__369);
  __Pyx_GIVEREF(__pyx_tuple__369);

  /* "talib/stream.pyx":2415
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__370 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__370)) __PYX_ERR(0, 2415, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__370);
  __Pyx_GIVEREF(__pyx_tuple__370);

  /* "talib/stream.pyx":2446
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__371 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__371)) __PYX_ERR(0, 2446, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__371);
  __Pyx_GIVEREF(__pyx_tuple__371);

  /* "talib/stream.pyx":2448
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__372 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__372)) __PYX_ERR(0, 2448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__372);
  __Pyx_GIVEREF(__pyx_tuple__372);

  /* "talib/stream.pyx":2453
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__373 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__373)) __PYX_ERR(0, 2453, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__373);
  __Pyx_GIVEREF(__pyx_tuple__373);

  /* "talib/stream.pyx":2455
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__374 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__374)) __PYX_ERR(0, 2455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__374);
  __Pyx_GIVEREF(__pyx_tuple__374);

  /* "talib/stream.pyx":2460
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__375 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__375)) __PYX_ERR(0, 2460, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__375);
  __Pyx_GIVEREF(__pyx_tuple__375);

  /* "talib/stream.pyx":2462
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__376 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__376)) __PYX_ERR(0, 2462, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__376);
  __Pyx_GIVEREF(__pyx_tuple__376);

  /* "talib/stream.pyx":2467
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__377 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__377)) __PYX_ERR(0, 2467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__377);
  __Pyx_GIVEREF(__pyx_tuple__377);

  /* "talib/stream.pyx":2469
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__378 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__378)) __PYX_ERR(0, 2469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__378);
  __Pyx_GIVEREF(__pyx_tuple__378);

  /* "talib/stream.pyx":2475
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__379 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__379)) __PYX_ERR(0, 2475, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__379);
  __Pyx_GIVEREF(__pyx_tuple__379);

  /* "talib/stream.pyx":2477
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__380 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__380)) __PYX_ERR(0, 2477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__380);
  __Pyx_GIVEREF(__pyx_tuple__380);

  /* "talib/stream.pyx":2479
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHANGINGMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__381 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__381)) __PYX_ERR(0, 2479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__381);
  __Pyx_GIVEREF(__pyx_tuple__381);

  /* "talib/stream.pyx":2510
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__382 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__382)) __PYX_ERR(0, 2510, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__382);
  __Pyx_GIVEREF(__pyx_tuple__382);

  /* "talib/stream.pyx":2512
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__383 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__383)) __PYX_ERR(0, 2512, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__383);
  __Pyx_GIVEREF(__pyx_tuple__383);

  /* "talib/stream.pyx":2517
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__384 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__384)) __PYX_ERR(0, 2517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__384);
  __Pyx_GIVEREF(__pyx_tuple__384);

  /* "talib/stream.pyx":2519
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__385 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__385)) __PYX_ERR(0, 2519, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__385);
  __Pyx_GIVEREF(__pyx_tuple__385);

  /* "talib/stream.pyx":2524
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__386 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__386)) __PYX_ERR(0, 2524, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__386);
  __Pyx_GIVEREF(__pyx_tuple__386);

  /* "talib/stream.pyx":2526
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__387 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__387)) __PYX_ERR(0, 2526, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__387);
  __Pyx_GIVEREF(__pyx_tuple__387);

  /* "talib/stream.pyx":2531
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__388 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__388)) __PYX_ERR(0, 2531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__388);
  __Pyx_GIVEREF(__pyx_tuple__388);

  /* "talib/stream.pyx":2533
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__389 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__389)) __PYX_ERR(0, 2533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__389);
  __Pyx_GIVEREF(__pyx_tuple__389);

  /* "talib/stream.pyx":2539
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__390 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__390)) __PYX_ERR(0, 2539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__390);
  __Pyx_GIVEREF(__pyx_tuple__390);

  /* "talib/stream.pyx":2541
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__391 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__391)) __PYX_ERR(0, 2541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__391);
  __Pyx_GIVEREF(__pyx_tuple__391);

  /* "talib/stream.pyx":2543
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHARAMI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__392 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__392)) __PYX_ERR(0, 2543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__392);
  __Pyx_GIVEREF(__pyx_tuple__392);

  /* "talib/stream.pyx":2574
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__393 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__393)) __PYX_ERR(0, 2574, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__393);
  __Pyx_GIVEREF(__pyx_tuple__393);

  /* "talib/stream.pyx":2576
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__394 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__394)) __PYX_ERR(0, 2576, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__394);
  __Pyx_GIVEREF(__pyx_tuple__394);

  /* "talib/stream.pyx":2581
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__395 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__395)) __PYX_ERR(0, 2581, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__395);
  __Pyx_GIVEREF(__pyx_tuple__395);

  /* "talib/stream.pyx":2583
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__396 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__396)) __PYX_ERR(0, 2583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__396);
  __Pyx_GIVEREF(__pyx_tuple__396);

  /* "talib/stream.pyx":2588
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__397 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__397)) __PYX_ERR(0, 2588, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__397);
  __Pyx_GIVEREF(__pyx_tuple__397);

  /* "talib/stream.pyx":2590
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__398 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__398)) __PYX_ERR(0, 2590, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__398);
  __Pyx_GIVEREF(__pyx_tuple__398);

  /* "talib/stream.pyx":2595
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__399 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__399)) __PYX_ERR(0, 2595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__399);
  __Pyx_GIVEREF(__pyx_tuple__399);

  /* "talib/stream.pyx":2597
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__400 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__400)) __PYX_ERR(0, 2597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__400);
  __Pyx_GIVEREF(__pyx_tuple__400);

  /* "talib/stream.pyx":2603
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__401 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__401)) __PYX_ERR(0, 2603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__401);
  __Pyx_GIVEREF(__pyx_tuple__401);

  /* "talib/stream.pyx":2605
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__402 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__402)) __PYX_ERR(0, 2605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__402);
  __Pyx_GIVEREF(__pyx_tuple__402);

  /* "talib/stream.pyx":2607
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHARAMICROSS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__403 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__403)) __PYX_ERR(0, 2607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__403);
  __Pyx_GIVEREF(__pyx_tuple__403);

  /* "talib/stream.pyx":2638
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__404 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__404)) __PYX_ERR(0, 2638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__404);
  __Pyx_GIVEREF(__pyx_tuple__404);

  /* "talib/stream.pyx":2640
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__405 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__405)) __PYX_ERR(0, 2640, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__405);
  __Pyx_GIVEREF(__pyx_tuple__405);

  /* "talib/stream.pyx":2645
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__406 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__406)) __PYX_ERR(0, 2645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__406);
  __Pyx_GIVEREF(__pyx_tuple__406);

  /* "talib/stream.pyx":2647
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__407 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__407)) __PYX_ERR(0, 2647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__407);
  __Pyx_GIVEREF(__pyx_tuple__407);

  /* "talib/stream.pyx":2652
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__408 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__408)) __PYX_ERR(0, 2652, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__408);
  __Pyx_GIVEREF(__pyx_tuple__408);

  /* "talib/stream.pyx":2654
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__409 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__409)) __PYX_ERR(0, 2654, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__409);
  __Pyx_GIVEREF(__pyx_tuple__409);

  /* "talib/stream.pyx":2659
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__410 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__410)) __PYX_ERR(0, 2659, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__410);
  __Pyx_GIVEREF(__pyx_tuple__410);

  /* "talib/stream.pyx":2661
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__411 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__411)) __PYX_ERR(0, 2661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__411);
  __Pyx_GIVEREF(__pyx_tuple__411);

  /* "talib/stream.pyx":2667
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__412 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__412)) __PYX_ERR(0, 2667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__412);
  __Pyx_GIVEREF(__pyx_tuple__412);

  /* "talib/stream.pyx":2669
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__413 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__413)) __PYX_ERR(0, 2669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__413);
  __Pyx_GIVEREF(__pyx_tuple__413);

  /* "talib/stream.pyx":2671
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIGHWAVE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__414 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__414)) __PYX_ERR(0, 2671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__414);
  __Pyx_GIVEREF(__pyx_tuple__414);

  /* "talib/stream.pyx":2702
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__415 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__415)) __PYX_ERR(0, 2702, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__415);
  __Pyx_GIVEREF(__pyx_tuple__415);

  /* "talib/stream.pyx":2704
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__416 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__416)) __PYX_ERR(0, 2704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__416);
  __Pyx_GIVEREF(__pyx_tuple__416);

  /* "talib/stream.pyx":2709
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__417 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__417)) __PYX_ERR(0, 2709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__417);
  __Pyx_GIVEREF(__pyx_tuple__417);

  /* "talib/stream.pyx":2711
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__418 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__418)) __PYX_ERR(0, 2711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__418);
  __Pyx_GIVEREF(__pyx_tuple__418);

  /* "talib/stream.pyx":2716
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__419 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__419)) __PYX_ERR(0, 2716, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__419);
  __Pyx_GIVEREF(__pyx_tuple__419);

  /* "talib/stream.pyx":2718
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__420 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__420)) __PYX_ERR(0, 2718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__420);
  __Pyx_GIVEREF(__pyx_tuple__420);

  /* "talib/stream.pyx":2723
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__421 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__421)) __PYX_ERR(0, 2723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__421);
  __Pyx_GIVEREF(__pyx_tuple__421);

  /* "talib/stream.pyx":2725
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__422 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__422)) __PYX_ERR(0, 2725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__422);
  __Pyx_GIVEREF(__pyx_tuple__422);

  /* "talib/stream.pyx":2731
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__423 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__423)) __PYX_ERR(0, 2731, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__423);
  __Pyx_GIVEREF(__pyx_tuple__423);

  /* "talib/stream.pyx":2733
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__424 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__424)) __PYX_ERR(0, 2733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__424);
  __Pyx_GIVEREF(__pyx_tuple__424);

  /* "talib/stream.pyx":2735
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIKKAKE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__425 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__425)) __PYX_ERR(0, 2735, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__425);
  __Pyx_GIVEREF(__pyx_tuple__425);

  /* "talib/stream.pyx":2766
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__426 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__426)) __PYX_ERR(0, 2766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__426);
  __Pyx_GIVEREF(__pyx_tuple__426);

  /* "talib/stream.pyx":2768
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__427 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__427)) __PYX_ERR(0, 2768, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__427);
  __Pyx_GIVEREF(__pyx_tuple__427);

  /* "talib/stream.pyx":2773
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__428 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__428)) __PYX_ERR(0, 2773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__428);
  __Pyx_GIVEREF(__pyx_tuple__428);

  /* "talib/stream.pyx":2775
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__429 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__429)) __PYX_ERR(0, 2775, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__429);
  __Pyx_GIVEREF(__pyx_tuple__429);

  /* "talib/stream.pyx":2780
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__430 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__430)) __PYX_ERR(0, 2780, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__430);
  __Pyx_GIVEREF(__pyx_tuple__430);

  /* "talib/stream.pyx":2782
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__431 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__431)) __PYX_ERR(0, 2782, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__431);
  __Pyx_GIVEREF(__pyx_tuple__431);

  /* "talib/stream.pyx":2787
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__432 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__432)) __PYX_ERR(0, 2787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__432);
  __Pyx_GIVEREF(__pyx_tuple__432);

  /* "talib/stream.pyx":2789
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__433 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__433)) __PYX_ERR(0, 2789, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__433);
  __Pyx_GIVEREF(__pyx_tuple__433);

  /* "talib/stream.pyx":2795
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__434 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__434)) __PYX_ERR(0, 2795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__434);
  __Pyx_GIVEREF(__pyx_tuple__434);

  /* "talib/stream.pyx":2797
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__435 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__435)) __PYX_ERR(0, 2797, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__435);
  __Pyx_GIVEREF(__pyx_tuple__435);

  /* "talib/stream.pyx":2799
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHIKKAKEMOD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__436 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__436)) __PYX_ERR(0, 2799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__436);
  __Pyx_GIVEREF(__pyx_tuple__436);

  /* "talib/stream.pyx":2830
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__437 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__437)) __PYX_ERR(0, 2830, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__437);
  __Pyx_GIVEREF(__pyx_tuple__437);

  /* "talib/stream.pyx":2832
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__438 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__438)) __PYX_ERR(0, 2832, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__438);
  __Pyx_GIVEREF(__pyx_tuple__438);

  /* "talib/stream.pyx":2837
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__439 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__439)) __PYX_ERR(0, 2837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__439);
  __Pyx_GIVEREF(__pyx_tuple__439);

  /* "talib/stream.pyx":2839
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__440 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__440)) __PYX_ERR(0, 2839, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__440);
  __Pyx_GIVEREF(__pyx_tuple__440);

  /* "talib/stream.pyx":2844
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__441 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__441)) __PYX_ERR(0, 2844, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__441);
  __Pyx_GIVEREF(__pyx_tuple__441);

  /* "talib/stream.pyx":2846
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__442 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__442)) __PYX_ERR(0, 2846, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__442);
  __Pyx_GIVEREF(__pyx_tuple__442);

  /* "talib/stream.pyx":2851
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__443 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__443)) __PYX_ERR(0, 2851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__443);
  __Pyx_GIVEREF(__pyx_tuple__443);

  /* "talib/stream.pyx":2853
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__444 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__444)) __PYX_ERR(0, 2853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__444);
  __Pyx_GIVEREF(__pyx_tuple__444);

  /* "talib/stream.pyx":2859
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__445 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__445)) __PYX_ERR(0, 2859, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__445);
  __Pyx_GIVEREF(__pyx_tuple__445);

  /* "talib/stream.pyx":2861
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__446 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__446)) __PYX_ERR(0, 2861, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__446);
  __Pyx_GIVEREF(__pyx_tuple__446);

  /* "talib/stream.pyx":2863
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLHOMINGPIGEON( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__447 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__447)) __PYX_ERR(0, 2863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__447);
  __Pyx_GIVEREF(__pyx_tuple__447);

  /* "talib/stream.pyx":2894
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__448 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__448)) __PYX_ERR(0, 2894, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__448);
  __Pyx_GIVEREF(__pyx_tuple__448);

  /* "talib/stream.pyx":2896
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__449 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__449)) __PYX_ERR(0, 2896, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__449);
  __Pyx_GIVEREF(__pyx_tuple__449);

  /* "talib/stream.pyx":2901
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__450 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__450)) __PYX_ERR(0, 2901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__450);
  __Pyx_GIVEREF(__pyx_tuple__450);

  /* "talib/stream.pyx":2903
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__451 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__451)) __PYX_ERR(0, 2903, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__451);
  __Pyx_GIVEREF(__pyx_tuple__451);

  /* "talib/stream.pyx":2908
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__452 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__452)) __PYX_ERR(0, 2908, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__452);
  __Pyx_GIVEREF(__pyx_tuple__452);

  /* "talib/stream.pyx":2910
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__453 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__453)) __PYX_ERR(0, 2910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__453);
  __Pyx_GIVEREF(__pyx_tuple__453);

  /* "talib/stream.pyx":2915
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__454 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__454)) __PYX_ERR(0, 2915, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__454);
  __Pyx_GIVEREF(__pyx_tuple__454);

  /* "talib/stream.pyx":2917
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__455 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__455)) __PYX_ERR(0, 2917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__455);
  __Pyx_GIVEREF(__pyx_tuple__455);

  /* "talib/stream.pyx":2923
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__456 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__456)) __PYX_ERR(0, 2923, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__456);
  __Pyx_GIVEREF(__pyx_tuple__456);

  /* "talib/stream.pyx":2925
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__457 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__457)) __PYX_ERR(0, 2925, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__457);
  __Pyx_GIVEREF(__pyx_tuple__457);

  /* "talib/stream.pyx":2927
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLIDENTICAL3CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__458 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__458)) __PYX_ERR(0, 2927, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__458);
  __Pyx_GIVEREF(__pyx_tuple__458);

  /* "talib/stream.pyx":2958
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__459 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__459)) __PYX_ERR(0, 2958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__459);
  __Pyx_GIVEREF(__pyx_tuple__459);

  /* "talib/stream.pyx":2960
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__460 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__460)) __PYX_ERR(0, 2960, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__460);
  __Pyx_GIVEREF(__pyx_tuple__460);

  /* "talib/stream.pyx":2965
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__461 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__461)) __PYX_ERR(0, 2965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__461);
  __Pyx_GIVEREF(__pyx_tuple__461);

  /* "talib/stream.pyx":2967
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__462 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__462)) __PYX_ERR(0, 2967, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__462);
  __Pyx_GIVEREF(__pyx_tuple__462);

  /* "talib/stream.pyx":2972
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__463 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__463)) __PYX_ERR(0, 2972, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__463);
  __Pyx_GIVEREF(__pyx_tuple__463);

  /* "talib/stream.pyx":2974
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__464 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__464)) __PYX_ERR(0, 2974, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__464);
  __Pyx_GIVEREF(__pyx_tuple__464);

  /* "talib/stream.pyx":2979
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__465 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__465)) __PYX_ERR(0, 2979, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__465);
  __Pyx_GIVEREF(__pyx_tuple__465);

  /* "talib/stream.pyx":2981
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__466 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__466)) __PYX_ERR(0, 2981, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__466);
  __Pyx_GIVEREF(__pyx_tuple__466);

  /* "talib/stream.pyx":2987
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__467 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__467)) __PYX_ERR(0, 2987, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__467);
  __Pyx_GIVEREF(__pyx_tuple__467);

  /* "talib/stream.pyx":2989
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__468 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__468)) __PYX_ERR(0, 2989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__468);
  __Pyx_GIVEREF(__pyx_tuple__468);

  /* "talib/stream.pyx":2991
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLINNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__469 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__469)) __PYX_ERR(0, 2991, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__469);
  __Pyx_GIVEREF(__pyx_tuple__469);

  /* "talib/stream.pyx":3022
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__470 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__470)) __PYX_ERR(0, 3022, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__470);
  __Pyx_GIVEREF(__pyx_tuple__470);

  /* "talib/stream.pyx":3024
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__471 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__471)) __PYX_ERR(0, 3024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__471);
  __Pyx_GIVEREF(__pyx_tuple__471);

  /* "talib/stream.pyx":3029
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__472 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__472)) __PYX_ERR(0, 3029, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__472);
  __Pyx_GIVEREF(__pyx_tuple__472);

  /* "talib/stream.pyx":3031
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__473 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__473)) __PYX_ERR(0, 3031, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__473);
  __Pyx_GIVEREF(__pyx_tuple__473);

  /* "talib/stream.pyx":3036
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__474 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__474)) __PYX_ERR(0, 3036, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__474);
  __Pyx_GIVEREF(__pyx_tuple__474);

  /* "talib/stream.pyx":3038
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__475 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__475)) __PYX_ERR(0, 3038, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__475);
  __Pyx_GIVEREF(__pyx_tuple__475);

  /* "talib/stream.pyx":3043
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__476 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__476)) __PYX_ERR(0, 3043, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__476);
  __Pyx_GIVEREF(__pyx_tuple__476);

  /* "talib/stream.pyx":3045
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__477 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__477)) __PYX_ERR(0, 3045, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__477);
  __Pyx_GIVEREF(__pyx_tuple__477);

  /* "talib/stream.pyx":3051
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__478 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__478)) __PYX_ERR(0, 3051, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__478);
  __Pyx_GIVEREF(__pyx_tuple__478);

  /* "talib/stream.pyx":3053
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__479 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__479)) __PYX_ERR(0, 3053, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__479);
  __Pyx_GIVEREF(__pyx_tuple__479);

  /* "talib/stream.pyx":3055
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLINVERTEDHAMMER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__480 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__480)) __PYX_ERR(0, 3055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__480);
  __Pyx_GIVEREF(__pyx_tuple__480);

  /* "talib/stream.pyx":3086
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__481 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__481)) __PYX_ERR(0, 3086, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__481);
  __Pyx_GIVEREF(__pyx_tuple__481);

  /* "talib/stream.pyx":3088
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__482 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__482)) __PYX_ERR(0, 3088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__482);
  __Pyx_GIVEREF(__pyx_tuple__482);

  /* "talib/stream.pyx":3093
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__483 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__483)) __PYX_ERR(0, 3093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__483);
  __Pyx_GIVEREF(__pyx_tuple__483);

  /* "talib/stream.pyx":3095
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__484 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__484)) __PYX_ERR(0, 3095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__484);
  __Pyx_GIVEREF(__pyx_tuple__484);

  /* "talib/stream.pyx":3100
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__485 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__485)) __PYX_ERR(0, 3100, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__485);
  __Pyx_GIVEREF(__pyx_tuple__485);

  /* "talib/stream.pyx":3102
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__486 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__486)) __PYX_ERR(0, 3102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__486);
  __Pyx_GIVEREF(__pyx_tuple__486);

  /* "talib/stream.pyx":3107
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__487 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__487)) __PYX_ERR(0, 3107, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__487);
  __Pyx_GIVEREF(__pyx_tuple__487);

  /* "talib/stream.pyx":3109
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__488 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__488)) __PYX_ERR(0, 3109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__488);
  __Pyx_GIVEREF(__pyx_tuple__488);

  /* "talib/stream.pyx":3115
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__489 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__489)) __PYX_ERR(0, 3115, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__489);
  __Pyx_GIVEREF(__pyx_tuple__489);

  /* "talib/stream.pyx":3117
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__490 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__490)) __PYX_ERR(0, 3117, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__490);
  __Pyx_GIVEREF(__pyx_tuple__490);

  /* "talib/stream.pyx":3119
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLKICKING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__491 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__491)) __PYX_ERR(0, 3119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__491);
  __Pyx_GIVEREF(__pyx_tuple__491);

  /* "talib/stream.pyx":3150
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__492 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__492)) __PYX_ERR(0, 3150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__492);
  __Pyx_GIVEREF(__pyx_tuple__492);

  /* "talib/stream.pyx":3152
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__493 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__493)) __PYX_ERR(0, 3152, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__493);
  __Pyx_GIVEREF(__pyx_tuple__493);

  /* "talib/stream.pyx":3157
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__494 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__494)) __PYX_ERR(0, 3157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__494);
  __Pyx_GIVEREF(__pyx_tuple__494);

  /* "talib/stream.pyx":3159
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__495 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__495)) __PYX_ERR(0, 3159, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__495);
  __Pyx_GIVEREF(__pyx_tuple__495);

  /* "talib/stream.pyx":3164
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__496 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__496)) __PYX_ERR(0, 3164, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__496);
  __Pyx_GIVEREF(__pyx_tuple__496);

  /* "talib/stream.pyx":3166
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__497 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__497)) __PYX_ERR(0, 3166, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__497);
  __Pyx_GIVEREF(__pyx_tuple__497);

  /* "talib/stream.pyx":3171
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__498 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__498)) __PYX_ERR(0, 3171, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__498);
  __Pyx_GIVEREF(__pyx_tuple__498);

  /* "talib/stream.pyx":3173
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__499 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__499)) __PYX_ERR(0, 3173, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__499);
  __Pyx_GIVEREF(__pyx_tuple__499);

  /* "talib/stream.pyx":3179
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__500 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__500)) __PYX_ERR(0, 3179, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__500);
  __Pyx_GIVEREF(__pyx_tuple__500);

  /* "talib/stream.pyx":3181
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__501 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__501)) __PYX_ERR(0, 3181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__501);
  __Pyx_GIVEREF(__pyx_tuple__501);

  /* "talib/stream.pyx":3183
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLKICKINGBYLENGTH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__502 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__502)) __PYX_ERR(0, 3183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__502);
  __Pyx_GIVEREF(__pyx_tuple__502);

  /* "talib/stream.pyx":3214
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__503 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__503)) __PYX_ERR(0, 3214, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__503);
  __Pyx_GIVEREF(__pyx_tuple__503);

  /* "talib/stream.pyx":3216
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__504 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__504)) __PYX_ERR(0, 3216, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__504);
  __Pyx_GIVEREF(__pyx_tuple__504);

  /* "talib/stream.pyx":3221
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__505 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__505)) __PYX_ERR(0, 3221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__505);
  __Pyx_GIVEREF(__pyx_tuple__505);

  /* "talib/stream.pyx":3223
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__506 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__506)) __PYX_ERR(0, 3223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__506);
  __Pyx_GIVEREF(__pyx_tuple__506);

  /* "talib/stream.pyx":3228
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__507 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__507)) __PYX_ERR(0, 3228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__507);
  __Pyx_GIVEREF(__pyx_tuple__507);

  /* "talib/stream.pyx":3230
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__508 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__508)) __PYX_ERR(0, 3230, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__508);
  __Pyx_GIVEREF(__pyx_tuple__508);

  /* "talib/stream.pyx":3235
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__509 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__509)) __PYX_ERR(0, 3235, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__509);
  __Pyx_GIVEREF(__pyx_tuple__509);

  /* "talib/stream.pyx":3237
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__510 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__510)) __PYX_ERR(0, 3237, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__510);
  __Pyx_GIVEREF(__pyx_tuple__510);

  /* "talib/stream.pyx":3243
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__511 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__511)) __PYX_ERR(0, 3243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__511);
  __Pyx_GIVEREF(__pyx_tuple__511);

  /* "talib/stream.pyx":3245
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__512 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__512)) __PYX_ERR(0, 3245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__512);
  __Pyx_GIVEREF(__pyx_tuple__512);

  /* "talib/stream.pyx":3247
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLLADDERBOTTOM( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__513 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__513)) __PYX_ERR(0, 3247, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__513);
  __Pyx_GIVEREF(__pyx_tuple__513);

  /* "talib/stream.pyx":3278
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__514 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__514)) __PYX_ERR(0, 3278, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__514);
  __Pyx_GIVEREF(__pyx_tuple__514);

  /* "talib/stream.pyx":3280
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__515 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__515)) __PYX_ERR(0, 3280, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__515);
  __Pyx_GIVEREF(__pyx_tuple__515);

  /* "talib/stream.pyx":3285
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__516 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__516)) __PYX_ERR(0, 3285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__516);
  __Pyx_GIVEREF(__pyx_tuple__516);

  /* "talib/stream.pyx":3287
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__517 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__517)) __PYX_ERR(0, 3287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__517);
  __Pyx_GIVEREF(__pyx_tuple__517);

  /* "talib/stream.pyx":3292
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__518 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__518)) __PYX_ERR(0, 3292, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__518);
  __Pyx_GIVEREF(__pyx_tuple__518);

  /* "talib/stream.pyx":3294
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__519 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__519)) __PYX_ERR(0, 3294, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__519);
  __Pyx_GIVEREF(__pyx_tuple__519);

  /* "talib/stream.pyx":3299
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__520 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__520)) __PYX_ERR(0, 3299, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__520);
  __Pyx_GIVEREF(__pyx_tuple__520);

  /* "talib/stream.pyx":3301
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__521 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__521)) __PYX_ERR(0, 3301, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__521);
  __Pyx_GIVEREF(__pyx_tuple__521);

  /* "talib/stream.pyx":3307
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__522 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__522)) __PYX_ERR(0, 3307, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__522);
  __Pyx_GIVEREF(__pyx_tuple__522);

  /* "talib/stream.pyx":3309
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__523 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__523)) __PYX_ERR(0, 3309, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__523);
  __Pyx_GIVEREF(__pyx_tuple__523);

  /* "talib/stream.pyx":3311
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLLONGLEGGEDDOJI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__524 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__524)) __PYX_ERR(0, 3311, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__524);
  __Pyx_GIVEREF(__pyx_tuple__524);

  /* "talib/stream.pyx":3342
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__525 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__525)) __PYX_ERR(0, 3342, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__525);
  __Pyx_GIVEREF(__pyx_tuple__525);

  /* "talib/stream.pyx":3344
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__526 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__526)) __PYX_ERR(0, 3344, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__526);
  __Pyx_GIVEREF(__pyx_tuple__526);

  /* "talib/stream.pyx":3349
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__527 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__527)) __PYX_ERR(0, 3349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__527);
  __Pyx_GIVEREF(__pyx_tuple__527);

  /* "talib/stream.pyx":3351
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__528 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__528)) __PYX_ERR(0, 3351, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__528);
  __Pyx_GIVEREF(__pyx_tuple__528);

  /* "talib/stream.pyx":3356
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__529 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__529)) __PYX_ERR(0, 3356, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__529);
  __Pyx_GIVEREF(__pyx_tuple__529);

  /* "talib/stream.pyx":3358
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__530 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__530)) __PYX_ERR(0, 3358, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__530);
  __Pyx_GIVEREF(__pyx_tuple__530);

  /* "talib/stream.pyx":3363
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__531 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__531)) __PYX_ERR(0, 3363, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__531);
  __Pyx_GIVEREF(__pyx_tuple__531);

  /* "talib/stream.pyx":3365
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__532 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__532)) __PYX_ERR(0, 3365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__532);
  __Pyx_GIVEREF(__pyx_tuple__532);

  /* "talib/stream.pyx":3371
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__533 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__533)) __PYX_ERR(0, 3371, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__533);
  __Pyx_GIVEREF(__pyx_tuple__533);

  /* "talib/stream.pyx":3373
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__534 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__534)) __PYX_ERR(0, 3373, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__534);
  __Pyx_GIVEREF(__pyx_tuple__534);

  /* "talib/stream.pyx":3375
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLLONGLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__535 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__535)) __PYX_ERR(0, 3375, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__535);
  __Pyx_GIVEREF(__pyx_tuple__535);

  /* "talib/stream.pyx":3406
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__536 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__536)) __PYX_ERR(0, 3406, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__536);
  __Pyx_GIVEREF(__pyx_tuple__536);

  /* "talib/stream.pyx":3408
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__537 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__537)) __PYX_ERR(0, 3408, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__537);
  __Pyx_GIVEREF(__pyx_tuple__537);

  /* "talib/stream.pyx":3413
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__538 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__538)) __PYX_ERR(0, 3413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__538);
  __Pyx_GIVEREF(__pyx_tuple__538);

  /* "talib/stream.pyx":3415
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__539 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__539)) __PYX_ERR(0, 3415, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__539);
  __Pyx_GIVEREF(__pyx_tuple__539);

  /* "talib/stream.pyx":3420
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__540 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__540)) __PYX_ERR(0, 3420, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__540);
  __Pyx_GIVEREF(__pyx_tuple__540);

  /* "talib/stream.pyx":3422
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__541 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__541)) __PYX_ERR(0, 3422, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__541);
  __Pyx_GIVEREF(__pyx_tuple__541);

  /* "talib/stream.pyx":3427
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__542 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__542)) __PYX_ERR(0, 3427, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__542);
  __Pyx_GIVEREF(__pyx_tuple__542);

  /* "talib/stream.pyx":3429
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__543 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__543)) __PYX_ERR(0, 3429, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__543);
  __Pyx_GIVEREF(__pyx_tuple__543);

  /* "talib/stream.pyx":3435
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__544 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__544)) __PYX_ERR(0, 3435, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__544);
  __Pyx_GIVEREF(__pyx_tuple__544);

  /* "talib/stream.pyx":3437
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__545 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__545)) __PYX_ERR(0, 3437, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__545);
  __Pyx_GIVEREF(__pyx_tuple__545);

  /* "talib/stream.pyx":3439
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLMARUBOZU( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__546 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__546)) __PYX_ERR(0, 3439, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__546);
  __Pyx_GIVEREF(__pyx_tuple__546);

  /* "talib/stream.pyx":3470
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__547 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__547)) __PYX_ERR(0, 3470, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__547);
  __Pyx_GIVEREF(__pyx_tuple__547);

  /* "talib/stream.pyx":3472
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__548 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__548)) __PYX_ERR(0, 3472, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__548);
  __Pyx_GIVEREF(__pyx_tuple__548);

  /* "talib/stream.pyx":3477
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__549 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__549)) __PYX_ERR(0, 3477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__549);
  __Pyx_GIVEREF(__pyx_tuple__549);

  /* "talib/stream.pyx":3479
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__550 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__550)) __PYX_ERR(0, 3479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__550);
  __Pyx_GIVEREF(__pyx_tuple__550);

  /* "talib/stream.pyx":3484
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__551 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__551)) __PYX_ERR(0, 3484, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__551);
  __Pyx_GIVEREF(__pyx_tuple__551);

  /* "talib/stream.pyx":3486
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__552 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__552)) __PYX_ERR(0, 3486, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__552);
  __Pyx_GIVEREF(__pyx_tuple__552);

  /* "talib/stream.pyx":3491
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__553 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__553)) __PYX_ERR(0, 3491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__553);
  __Pyx_GIVEREF(__pyx_tuple__553);

  /* "talib/stream.pyx":3493
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__554 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__554)) __PYX_ERR(0, 3493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__554);
  __Pyx_GIVEREF(__pyx_tuple__554);

  /* "talib/stream.pyx":3499
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__555 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__555)) __PYX_ERR(0, 3499, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__555);
  __Pyx_GIVEREF(__pyx_tuple__555);

  /* "talib/stream.pyx":3501
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__556 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__556)) __PYX_ERR(0, 3501, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__556);
  __Pyx_GIVEREF(__pyx_tuple__556);

  /* "talib/stream.pyx":3503
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLMATCHINGLOW( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__557 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__557)) __PYX_ERR(0, 3503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__557);
  __Pyx_GIVEREF(__pyx_tuple__557);

  /* "talib/stream.pyx":3536
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__558 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__558)) __PYX_ERR(0, 3536, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__558);
  __Pyx_GIVEREF(__pyx_tuple__558);

  /* "talib/stream.pyx":3538
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__559 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__559)) __PYX_ERR(0, 3538, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__559);
  __Pyx_GIVEREF(__pyx_tuple__559);

  /* "talib/stream.pyx":3543
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__560 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__560)) __PYX_ERR(0, 3543, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__560);
  __Pyx_GIVEREF(__pyx_tuple__560);

  /* "talib/stream.pyx":3545
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__561 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__561)) __PYX_ERR(0, 3545, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__561);
  __Pyx_GIVEREF(__pyx_tuple__561);

  /* "talib/stream.pyx":3550
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__562 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__562)) __PYX_ERR(0, 3550, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__562);
  __Pyx_GIVEREF(__pyx_tuple__562);

  /* "talib/stream.pyx":3552
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__563 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__563)) __PYX_ERR(0, 3552, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__563);
  __Pyx_GIVEREF(__pyx_tuple__563);

  /* "talib/stream.pyx":3557
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__564 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__564)) __PYX_ERR(0, 3557, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__564);
  __Pyx_GIVEREF(__pyx_tuple__564);

  /* "talib/stream.pyx":3559
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__565 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__565)) __PYX_ERR(0, 3559, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__565);
  __Pyx_GIVEREF(__pyx_tuple__565);

  /* "talib/stream.pyx":3565
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__566 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__566)) __PYX_ERR(0, 3565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__566);
  __Pyx_GIVEREF(__pyx_tuple__566);

  /* "talib/stream.pyx":3567
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__567 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__567)) __PYX_ERR(0, 3567, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__567);
  __Pyx_GIVEREF(__pyx_tuple__567);

  /* "talib/stream.pyx":3569
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLMATHOLD( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__568 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__568)) __PYX_ERR(0, 3569, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__568);
  __Pyx_GIVEREF(__pyx_tuple__568);

  /* "talib/stream.pyx":3602
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__569 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__569)) __PYX_ERR(0, 3602, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__569);
  __Pyx_GIVEREF(__pyx_tuple__569);

  /* "talib/stream.pyx":3604
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__570 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__570)) __PYX_ERR(0, 3604, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__570);
  __Pyx_GIVEREF(__pyx_tuple__570);

  /* "talib/stream.pyx":3609
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__571 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__571)) __PYX_ERR(0, 3609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__571);
  __Pyx_GIVEREF(__pyx_tuple__571);

  /* "talib/stream.pyx":3611
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__572 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__572)) __PYX_ERR(0, 3611, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__572);
  __Pyx_GIVEREF(__pyx_tuple__572);

  /* "talib/stream.pyx":3616
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__573 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__573)) __PYX_ERR(0, 3616, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__573);
  __Pyx_GIVEREF(__pyx_tuple__573);

  /* "talib/stream.pyx":3618
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__574 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__574)) __PYX_ERR(0, 3618, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__574);
  __Pyx_GIVEREF(__pyx_tuple__574);

  /* "talib/stream.pyx":3623
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__575 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__575)) __PYX_ERR(0, 3623, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__575);
  __Pyx_GIVEREF(__pyx_tuple__575);

  /* "talib/stream.pyx":3625
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__576 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__576)) __PYX_ERR(0, 3625, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__576);
  __Pyx_GIVEREF(__pyx_tuple__576);

  /* "talib/stream.pyx":3631
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__577 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__577)) __PYX_ERR(0, 3631, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__577);
  __Pyx_GIVEREF(__pyx_tuple__577);

  /* "talib/stream.pyx":3633
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__578 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__578)) __PYX_ERR(0, 3633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__578);
  __Pyx_GIVEREF(__pyx_tuple__578);

  /* "talib/stream.pyx":3635
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLMORNINGDOJISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__579 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__579)) __PYX_ERR(0, 3635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__579);
  __Pyx_GIVEREF(__pyx_tuple__579);

  /* "talib/stream.pyx":3668
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__580 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__580)) __PYX_ERR(0, 3668, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__580);
  __Pyx_GIVEREF(__pyx_tuple__580);

  /* "talib/stream.pyx":3670
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__581 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__581)) __PYX_ERR(0, 3670, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__581);
  __Pyx_GIVEREF(__pyx_tuple__581);

  /* "talib/stream.pyx":3675
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__582 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__582)) __PYX_ERR(0, 3675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__582);
  __Pyx_GIVEREF(__pyx_tuple__582);

  /* "talib/stream.pyx":3677
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__583 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__583)) __PYX_ERR(0, 3677, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__583);
  __Pyx_GIVEREF(__pyx_tuple__583);

  /* "talib/stream.pyx":3682
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__584 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__584)) __PYX_ERR(0, 3682, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__584);
  __Pyx_GIVEREF(__pyx_tuple__584);

  /* "talib/stream.pyx":3684
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__585 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__585)) __PYX_ERR(0, 3684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__585);
  __Pyx_GIVEREF(__pyx_tuple__585);

  /* "talib/stream.pyx":3689
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__586 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__586)) __PYX_ERR(0, 3689, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__586);
  __Pyx_GIVEREF(__pyx_tuple__586);

  /* "talib/stream.pyx":3691
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__587 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__587)) __PYX_ERR(0, 3691, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__587);
  __Pyx_GIVEREF(__pyx_tuple__587);

  /* "talib/stream.pyx":3697
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__588 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__588)) __PYX_ERR(0, 3697, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__588);
  __Pyx_GIVEREF(__pyx_tuple__588);

  /* "talib/stream.pyx":3699
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__589 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__589)) __PYX_ERR(0, 3699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__589);
  __Pyx_GIVEREF(__pyx_tuple__589);

  /* "talib/stream.pyx":3701
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLMORNINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , penetration , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__590 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__590)) __PYX_ERR(0, 3701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__590);
  __Pyx_GIVEREF(__pyx_tuple__590);

  /* "talib/stream.pyx":3732
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__591 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__591)) __PYX_ERR(0, 3732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__591);
  __Pyx_GIVEREF(__pyx_tuple__591);

  /* "talib/stream.pyx":3734
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__592 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__592)) __PYX_ERR(0, 3734, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__592);
  __Pyx_GIVEREF(__pyx_tuple__592);

  /* "talib/stream.pyx":3739
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__593 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__593)) __PYX_ERR(0, 3739, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__593);
  __Pyx_GIVEREF(__pyx_tuple__593);

  /* "talib/stream.pyx":3741
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__594 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__594)) __PYX_ERR(0, 3741, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__594);
  __Pyx_GIVEREF(__pyx_tuple__594);

  /* "talib/stream.pyx":3746
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__595 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__595)) __PYX_ERR(0, 3746, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__595);
  __Pyx_GIVEREF(__pyx_tuple__595);

  /* "talib/stream.pyx":3748
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__596 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__596)) __PYX_ERR(0, 3748, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__596);
  __Pyx_GIVEREF(__pyx_tuple__596);

  /* "talib/stream.pyx":3753
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__597 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__597)) __PYX_ERR(0, 3753, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__597);
  __Pyx_GIVEREF(__pyx_tuple__597);

  /* "talib/stream.pyx":3755
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__598 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__598)) __PYX_ERR(0, 3755, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__598);
  __Pyx_GIVEREF(__pyx_tuple__598);

  /* "talib/stream.pyx":3761
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__599 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__599)) __PYX_ERR(0, 3761, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__599);
  __Pyx_GIVEREF(__pyx_tuple__599);

  /* "talib/stream.pyx":3763
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__600 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__600)) __PYX_ERR(0, 3763, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__600);
  __Pyx_GIVEREF(__pyx_tuple__600);

  /* "talib/stream.pyx":3765
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLONNECK( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__601 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__601)) __PYX_ERR(0, 3765, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__601);
  __Pyx_GIVEREF(__pyx_tuple__601);

  /* "talib/stream.pyx":3796
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__602 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__602)) __PYX_ERR(0, 3796, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__602);
  __Pyx_GIVEREF(__pyx_tuple__602);

  /* "talib/stream.pyx":3798
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__603 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__603)) __PYX_ERR(0, 3798, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__603);
  __Pyx_GIVEREF(__pyx_tuple__603);

  /* "talib/stream.pyx":3803
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__604 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__604)) __PYX_ERR(0, 3803, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__604);
  __Pyx_GIVEREF(__pyx_tuple__604);

  /* "talib/stream.pyx":3805
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__605 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__605)) __PYX_ERR(0, 3805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__605);
  __Pyx_GIVEREF(__pyx_tuple__605);

  /* "talib/stream.pyx":3810
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__606 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__606)) __PYX_ERR(0, 3810, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__606);
  __Pyx_GIVEREF(__pyx_tuple__606);

  /* "talib/stream.pyx":3812
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__607 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__607)) __PYX_ERR(0, 3812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__607);
  __Pyx_GIVEREF(__pyx_tuple__607);

  /* "talib/stream.pyx":3817
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__608 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__608)) __PYX_ERR(0, 3817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__608);
  __Pyx_GIVEREF(__pyx_tuple__608);

  /* "talib/stream.pyx":3819
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__609 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__609)) __PYX_ERR(0, 3819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__609);
  __Pyx_GIVEREF(__pyx_tuple__609);

  /* "talib/stream.pyx":3825
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__610 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__610)) __PYX_ERR(0, 3825, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__610);
  __Pyx_GIVEREF(__pyx_tuple__610);

  /* "talib/stream.pyx":3827
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__611 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__611)) __PYX_ERR(0, 3827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__611);
  __Pyx_GIVEREF(__pyx_tuple__611);

  /* "talib/stream.pyx":3829
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLPIERCING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__612 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__612)) __PYX_ERR(0, 3829, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__612);
  __Pyx_GIVEREF(__pyx_tuple__612);

  /* "talib/stream.pyx":3860
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__613 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__613)) __PYX_ERR(0, 3860, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__613);
  __Pyx_GIVEREF(__pyx_tuple__613);

  /* "talib/stream.pyx":3862
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__614 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__614)) __PYX_ERR(0, 3862, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__614);
  __Pyx_GIVEREF(__pyx_tuple__614);

  /* "talib/stream.pyx":3867
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__615 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__615)) __PYX_ERR(0, 3867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__615);
  __Pyx_GIVEREF(__pyx_tuple__615);

  /* "talib/stream.pyx":3869
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__616 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__616)) __PYX_ERR(0, 3869, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__616);
  __Pyx_GIVEREF(__pyx_tuple__616);

  /* "talib/stream.pyx":3874
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__617 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__617)) __PYX_ERR(0, 3874, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__617);
  __Pyx_GIVEREF(__pyx_tuple__617);

  /* "talib/stream.pyx":3876
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__618 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__618)) __PYX_ERR(0, 3876, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__618);
  __Pyx_GIVEREF(__pyx_tuple__618);

  /* "talib/stream.pyx":3881
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__619 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__619)) __PYX_ERR(0, 3881, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__619);
  __Pyx_GIVEREF(__pyx_tuple__619);

  /* "talib/stream.pyx":3883
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__620 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__620)) __PYX_ERR(0, 3883, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__620);
  __Pyx_GIVEREF(__pyx_tuple__620);

  /* "talib/stream.pyx":3889
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__621 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__621)) __PYX_ERR(0, 3889, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__621);
  __Pyx_GIVEREF(__pyx_tuple__621);

  /* "talib/stream.pyx":3891
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__622 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__622)) __PYX_ERR(0, 3891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__622);
  __Pyx_GIVEREF(__pyx_tuple__622);

  /* "talib/stream.pyx":3893
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLRICKSHAWMAN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__623 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__623)) __PYX_ERR(0, 3893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__623);
  __Pyx_GIVEREF(__pyx_tuple__623);

  /* "talib/stream.pyx":3924
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__624 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__624)) __PYX_ERR(0, 3924, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__624);
  __Pyx_GIVEREF(__pyx_tuple__624);

  /* "talib/stream.pyx":3926
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__625 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__625)) __PYX_ERR(0, 3926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__625);
  __Pyx_GIVEREF(__pyx_tuple__625);

  /* "talib/stream.pyx":3931
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__626 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__626)) __PYX_ERR(0, 3931, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__626);
  __Pyx_GIVEREF(__pyx_tuple__626);

  /* "talib/stream.pyx":3933
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__627 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__627)) __PYX_ERR(0, 3933, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__627);
  __Pyx_GIVEREF(__pyx_tuple__627);

  /* "talib/stream.pyx":3938
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__628 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__628)) __PYX_ERR(0, 3938, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__628);
  __Pyx_GIVEREF(__pyx_tuple__628);

  /* "talib/stream.pyx":3940
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__629 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__629)) __PYX_ERR(0, 3940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__629);
  __Pyx_GIVEREF(__pyx_tuple__629);

  /* "talib/stream.pyx":3945
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__630 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__630)) __PYX_ERR(0, 3945, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__630);
  __Pyx_GIVEREF(__pyx_tuple__630);

  /* "talib/stream.pyx":3947
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__631 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__631)) __PYX_ERR(0, 3947, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__631);
  __Pyx_GIVEREF(__pyx_tuple__631);

  /* "talib/stream.pyx":3953
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__632 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__632)) __PYX_ERR(0, 3953, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__632);
  __Pyx_GIVEREF(__pyx_tuple__632);

  /* "talib/stream.pyx":3955
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__633 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__633)) __PYX_ERR(0, 3955, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__633);
  __Pyx_GIVEREF(__pyx_tuple__633);

  /* "talib/stream.pyx":3957
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLRISEFALL3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__634 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__634)) __PYX_ERR(0, 3957, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__634);
  __Pyx_GIVEREF(__pyx_tuple__634);

  /* "talib/stream.pyx":3988
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__635 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__635)) __PYX_ERR(0, 3988, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__635);
  __Pyx_GIVEREF(__pyx_tuple__635);

  /* "talib/stream.pyx":3990
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__636 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__636)) __PYX_ERR(0, 3990, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__636);
  __Pyx_GIVEREF(__pyx_tuple__636);

  /* "talib/stream.pyx":3995
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__637 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__637)) __PYX_ERR(0, 3995, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__637);
  __Pyx_GIVEREF(__pyx_tuple__637);

  /* "talib/stream.pyx":3997
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__638 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__638)) __PYX_ERR(0, 3997, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__638);
  __Pyx_GIVEREF(__pyx_tuple__638);

  /* "talib/stream.pyx":4002
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__639 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__639)) __PYX_ERR(0, 4002, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__639);
  __Pyx_GIVEREF(__pyx_tuple__639);

  /* "talib/stream.pyx":4004
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__640 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__640)) __PYX_ERR(0, 4004, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__640);
  __Pyx_GIVEREF(__pyx_tuple__640);

  /* "talib/stream.pyx":4009
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__641 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__641)) __PYX_ERR(0, 4009, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__641);
  __Pyx_GIVEREF(__pyx_tuple__641);

  /* "talib/stream.pyx":4011
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__642 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__642)) __PYX_ERR(0, 4011, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__642);
  __Pyx_GIVEREF(__pyx_tuple__642);

  /* "talib/stream.pyx":4017
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__643 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__643)) __PYX_ERR(0, 4017, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__643);
  __Pyx_GIVEREF(__pyx_tuple__643);

  /* "talib/stream.pyx":4019
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__644 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__644)) __PYX_ERR(0, 4019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__644);
  __Pyx_GIVEREF(__pyx_tuple__644);

  /* "talib/stream.pyx":4021
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSEPARATINGLINES( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__645 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__645)) __PYX_ERR(0, 4021, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__645);
  __Pyx_GIVEREF(__pyx_tuple__645);

  /* "talib/stream.pyx":4052
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__646 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__646)) __PYX_ERR(0, 4052, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__646);
  __Pyx_GIVEREF(__pyx_tuple__646);

  /* "talib/stream.pyx":4054
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__647 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__647)) __PYX_ERR(0, 4054, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__647);
  __Pyx_GIVEREF(__pyx_tuple__647);

  /* "talib/stream.pyx":4059
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__648 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__648)) __PYX_ERR(0, 4059, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__648);
  __Pyx_GIVEREF(__pyx_tuple__648);

  /* "talib/stream.pyx":4061
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__649 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__649)) __PYX_ERR(0, 4061, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__649);
  __Pyx_GIVEREF(__pyx_tuple__649);

  /* "talib/stream.pyx":4066
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__650 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__650)) __PYX_ERR(0, 4066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__650);
  __Pyx_GIVEREF(__pyx_tuple__650);

  /* "talib/stream.pyx":4068
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__651 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__651)) __PYX_ERR(0, 4068, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__651);
  __Pyx_GIVEREF(__pyx_tuple__651);

  /* "talib/stream.pyx":4073
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__652 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__652)) __PYX_ERR(0, 4073, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__652);
  __Pyx_GIVEREF(__pyx_tuple__652);

  /* "talib/stream.pyx":4075
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__653 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__653)) __PYX_ERR(0, 4075, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__653);
  __Pyx_GIVEREF(__pyx_tuple__653);

  /* "talib/stream.pyx":4081
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__654 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__654)) __PYX_ERR(0, 4081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__654);
  __Pyx_GIVEREF(__pyx_tuple__654);

  /* "talib/stream.pyx":4083
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__655 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__655)) __PYX_ERR(0, 4083, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__655);
  __Pyx_GIVEREF(__pyx_tuple__655);

  /* "talib/stream.pyx":4085
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSHOOTINGSTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__656 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__656)) __PYX_ERR(0, 4085, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__656);
  __Pyx_GIVEREF(__pyx_tuple__656);

  /* "talib/stream.pyx":4116
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__657 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__657)) __PYX_ERR(0, 4116, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__657);
  __Pyx_GIVEREF(__pyx_tuple__657);

  /* "talib/stream.pyx":4118
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__658 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__658)) __PYX_ERR(0, 4118, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__658);
  __Pyx_GIVEREF(__pyx_tuple__658);

  /* "talib/stream.pyx":4123
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__659 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__659)) __PYX_ERR(0, 4123, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__659);
  __Pyx_GIVEREF(__pyx_tuple__659);

  /* "talib/stream.pyx":4125
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__660 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__660)) __PYX_ERR(0, 4125, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__660);
  __Pyx_GIVEREF(__pyx_tuple__660);

  /* "talib/stream.pyx":4130
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__661 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__661)) __PYX_ERR(0, 4130, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__661);
  __Pyx_GIVEREF(__pyx_tuple__661);

  /* "talib/stream.pyx":4132
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__662 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__662)) __PYX_ERR(0, 4132, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__662);
  __Pyx_GIVEREF(__pyx_tuple__662);

  /* "talib/stream.pyx":4137
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__663 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__663)) __PYX_ERR(0, 4137, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__663);
  __Pyx_GIVEREF(__pyx_tuple__663);

  /* "talib/stream.pyx":4139
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__664 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__664)) __PYX_ERR(0, 4139, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__664);
  __Pyx_GIVEREF(__pyx_tuple__664);

  /* "talib/stream.pyx":4145
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__665 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__665)) __PYX_ERR(0, 4145, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__665);
  __Pyx_GIVEREF(__pyx_tuple__665);

  /* "talib/stream.pyx":4147
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__666 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__666)) __PYX_ERR(0, 4147, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__666);
  __Pyx_GIVEREF(__pyx_tuple__666);

  /* "talib/stream.pyx":4149
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSHORTLINE( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__667 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__667)) __PYX_ERR(0, 4149, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__667);
  __Pyx_GIVEREF(__pyx_tuple__667);

  /* "talib/stream.pyx":4180
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__668 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__668)) __PYX_ERR(0, 4180, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__668);
  __Pyx_GIVEREF(__pyx_tuple__668);

  /* "talib/stream.pyx":4182
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__669 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__669)) __PYX_ERR(0, 4182, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__669);
  __Pyx_GIVEREF(__pyx_tuple__669);

  /* "talib/stream.pyx":4187
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__670 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__670)) __PYX_ERR(0, 4187, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__670);
  __Pyx_GIVEREF(__pyx_tuple__670);

  /* "talib/stream.pyx":4189
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__671 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__671)) __PYX_ERR(0, 4189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__671);
  __Pyx_GIVEREF(__pyx_tuple__671);

  /* "talib/stream.pyx":4194
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__672 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__672)) __PYX_ERR(0, 4194, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__672);
  __Pyx_GIVEREF(__pyx_tuple__672);

  /* "talib/stream.pyx":4196
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__673 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__673)) __PYX_ERR(0, 4196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__673);
  __Pyx_GIVEREF(__pyx_tuple__673);

  /* "talib/stream.pyx":4201
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__674 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__674)) __PYX_ERR(0, 4201, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__674);
  __Pyx_GIVEREF(__pyx_tuple__674);

  /* "talib/stream.pyx":4203
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__675 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__675)) __PYX_ERR(0, 4203, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__675);
  __Pyx_GIVEREF(__pyx_tuple__675);

  /* "talib/stream.pyx":4209
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__676 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__676)) __PYX_ERR(0, 4209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__676);
  __Pyx_GIVEREF(__pyx_tuple__676);

  /* "talib/stream.pyx":4211
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__677 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__677)) __PYX_ERR(0, 4211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__677);
  __Pyx_GIVEREF(__pyx_tuple__677);

  /* "talib/stream.pyx":4213
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSPINNINGTOP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__678 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__678)) __PYX_ERR(0, 4213, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__678);
  __Pyx_GIVEREF(__pyx_tuple__678);

  /* "talib/stream.pyx":4244
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__679 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__679)) __PYX_ERR(0, 4244, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__679);
  __Pyx_GIVEREF(__pyx_tuple__679);

  /* "talib/stream.pyx":4246
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__680 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__680)) __PYX_ERR(0, 4246, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__680);
  __Pyx_GIVEREF(__pyx_tuple__680);

  /* "talib/stream.pyx":4251
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__681 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__681)) __PYX_ERR(0, 4251, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__681);
  __Pyx_GIVEREF(__pyx_tuple__681);

  /* "talib/stream.pyx":4253
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__682 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__682)) __PYX_ERR(0, 4253, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__682);
  __Pyx_GIVEREF(__pyx_tuple__682);

  /* "talib/stream.pyx":4258
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__683 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__683)) __PYX_ERR(0, 4258, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__683);
  __Pyx_GIVEREF(__pyx_tuple__683);

  /* "talib/stream.pyx":4260
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__684 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__684)) __PYX_ERR(0, 4260, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__684);
  __Pyx_GIVEREF(__pyx_tuple__684);

  /* "talib/stream.pyx":4265
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__685 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__685)) __PYX_ERR(0, 4265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__685);
  __Pyx_GIVEREF(__pyx_tuple__685);

  /* "talib/stream.pyx":4267
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__686 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__686)) __PYX_ERR(0, 4267, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__686);
  __Pyx_GIVEREF(__pyx_tuple__686);

  /* "talib/stream.pyx":4273
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__687 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__687)) __PYX_ERR(0, 4273, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__687);
  __Pyx_GIVEREF(__pyx_tuple__687);

  /* "talib/stream.pyx":4275
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__688 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__688)) __PYX_ERR(0, 4275, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__688);
  __Pyx_GIVEREF(__pyx_tuple__688);

  /* "talib/stream.pyx":4277
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSTALLEDPATTERN( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__689 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__689)) __PYX_ERR(0, 4277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__689);
  __Pyx_GIVEREF(__pyx_tuple__689);

  /* "talib/stream.pyx":4308
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__690 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__690)) __PYX_ERR(0, 4308, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__690);
  __Pyx_GIVEREF(__pyx_tuple__690);

  /* "talib/stream.pyx":4310
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__691 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__691)) __PYX_ERR(0, 4310, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__691);
  __Pyx_GIVEREF(__pyx_tuple__691);

  /* "talib/stream.pyx":4315
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__692 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__692)) __PYX_ERR(0, 4315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__692);
  __Pyx_GIVEREF(__pyx_tuple__692);

  /* "talib/stream.pyx":4317
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__693 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__693)) __PYX_ERR(0, 4317, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__693);
  __Pyx_GIVEREF(__pyx_tuple__693);

  /* "talib/stream.pyx":4322
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__694 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__694)) __PYX_ERR(0, 4322, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__694);
  __Pyx_GIVEREF(__pyx_tuple__694);

  /* "talib/stream.pyx":4324
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__695 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__695)) __PYX_ERR(0, 4324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__695);
  __Pyx_GIVEREF(__pyx_tuple__695);

  /* "talib/stream.pyx":4329
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__696 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__696)) __PYX_ERR(0, 4329, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__696);
  __Pyx_GIVEREF(__pyx_tuple__696);

  /* "talib/stream.pyx":4331
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__697 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__697)) __PYX_ERR(0, 4331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__697);
  __Pyx_GIVEREF(__pyx_tuple__697);

  /* "talib/stream.pyx":4337
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__698 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__698)) __PYX_ERR(0, 4337, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__698);
  __Pyx_GIVEREF(__pyx_tuple__698);

  /* "talib/stream.pyx":4339
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__699 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__699)) __PYX_ERR(0, 4339, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__699);
  __Pyx_GIVEREF(__pyx_tuple__699);

  /* "talib/stream.pyx":4341
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLSTICKSANDWICH( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__700 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__700)) __PYX_ERR(0, 4341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__700);
  __Pyx_GIVEREF(__pyx_tuple__700);

  /* "talib/stream.pyx":4372
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__701 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__701)) __PYX_ERR(0, 4372, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__701);
  __Pyx_GIVEREF(__pyx_tuple__701);

  /* "talib/stream.pyx":4374
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__702 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__702)) __PYX_ERR(0, 4374, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__702);
  __Pyx_GIVEREF(__pyx_tuple__702);

  /* "talib/stream.pyx":4379
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__703 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__703)) __PYX_ERR(0, 4379, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__703);
  __Pyx_GIVEREF(__pyx_tuple__703);

  /* "talib/stream.pyx":4381
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__704 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__704)) __PYX_ERR(0, 4381, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__704);
  __Pyx_GIVEREF(__pyx_tuple__704);

  /* "talib/stream.pyx":4386
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__705 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__705)) __PYX_ERR(0, 4386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__705);
  __Pyx_GIVEREF(__pyx_tuple__705);

  /* "talib/stream.pyx":4388
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__706 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__706)) __PYX_ERR(0, 4388, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__706);
  __Pyx_GIVEREF(__pyx_tuple__706);

  /* "talib/stream.pyx":4393
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__707 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__707)) __PYX_ERR(0, 4393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__707);
  __Pyx_GIVEREF(__pyx_tuple__707);

  /* "talib/stream.pyx":4395
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__708 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__708)) __PYX_ERR(0, 4395, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__708);
  __Pyx_GIVEREF(__pyx_tuple__708);

  /* "talib/stream.pyx":4401
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__709 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__709)) __PYX_ERR(0, 4401, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__709);
  __Pyx_GIVEREF(__pyx_tuple__709);

  /* "talib/stream.pyx":4403
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__710 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__710)) __PYX_ERR(0, 4403, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__710);
  __Pyx_GIVEREF(__pyx_tuple__710);

  /* "talib/stream.pyx":4405
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLTAKURI( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__711 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__711)) __PYX_ERR(0, 4405, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__711);
  __Pyx_GIVEREF(__pyx_tuple__711);

  /* "talib/stream.pyx":4436
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__712 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__712)) __PYX_ERR(0, 4436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__712);
  __Pyx_GIVEREF(__pyx_tuple__712);

  /* "talib/stream.pyx":4438
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__713 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__713)) __PYX_ERR(0, 4438, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__713);
  __Pyx_GIVEREF(__pyx_tuple__713);

  /* "talib/stream.pyx":4443
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__714 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__714)) __PYX_ERR(0, 4443, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__714);
  __Pyx_GIVEREF(__pyx_tuple__714);

  /* "talib/stream.pyx":4445
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__715 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__715)) __PYX_ERR(0, 4445, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__715);
  __Pyx_GIVEREF(__pyx_tuple__715);

  /* "talib/stream.pyx":4450
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__716 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__716)) __PYX_ERR(0, 4450, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__716);
  __Pyx_GIVEREF(__pyx_tuple__716);

  /* "talib/stream.pyx":4452
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__717 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__717)) __PYX_ERR(0, 4452, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__717);
  __Pyx_GIVEREF(__pyx_tuple__717);

  /* "talib/stream.pyx":4457
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__718 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__718)) __PYX_ERR(0, 4457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__718);
  __Pyx_GIVEREF(__pyx_tuple__718);

  /* "talib/stream.pyx":4459
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__719 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__719)) __PYX_ERR(0, 4459, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__719);
  __Pyx_GIVEREF(__pyx_tuple__719);

  /* "talib/stream.pyx":4465
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__720 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__720)) __PYX_ERR(0, 4465, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__720);
  __Pyx_GIVEREF(__pyx_tuple__720);

  /* "talib/stream.pyx":4467
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__721 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__721)) __PYX_ERR(0, 4467, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__721);
  __Pyx_GIVEREF(__pyx_tuple__721);

  /* "talib/stream.pyx":4469
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLTASUKIGAP( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__722 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__722)) __PYX_ERR(0, 4469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__722);
  __Pyx_GIVEREF(__pyx_tuple__722);

  /* "talib/stream.pyx":4500
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__723 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__723)) __PYX_ERR(0, 4500, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__723);
  __Pyx_GIVEREF(__pyx_tuple__723);

  /* "talib/stream.pyx":4502
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__724 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__724)) __PYX_ERR(0, 4502, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__724);
  __Pyx_GIVEREF(__pyx_tuple__724);

  /* "talib/stream.pyx":4507
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__725 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__725)) __PYX_ERR(0, 4507, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__725);
  __Pyx_GIVEREF(__pyx_tuple__725);

  /* "talib/stream.pyx":4509
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__726 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__726)) __PYX_ERR(0, 4509, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__726);
  __Pyx_GIVEREF(__pyx_tuple__726);

  /* "talib/stream.pyx":4514
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__727 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__727)) __PYX_ERR(0, 4514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__727);
  __Pyx_GIVEREF(__pyx_tuple__727);

  /* "talib/stream.pyx":4516
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__728 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__728)) __PYX_ERR(0, 4516, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__728);
  __Pyx_GIVEREF(__pyx_tuple__728);

  /* "talib/stream.pyx":4521
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__729 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__729)) __PYX_ERR(0, 4521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__729);
  __Pyx_GIVEREF(__pyx_tuple__729);

  /* "talib/stream.pyx":4523
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__730 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__730)) __PYX_ERR(0, 4523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__730);
  __Pyx_GIVEREF(__pyx_tuple__730);

  /* "talib/stream.pyx":4529
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__731 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__731)) __PYX_ERR(0, 4529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__731);
  __Pyx_GIVEREF(__pyx_tuple__731);

  /* "talib/stream.pyx":4531
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__732 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__732)) __PYX_ERR(0, 4531, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__732);
  __Pyx_GIVEREF(__pyx_tuple__732);

  /* "talib/stream.pyx":4533
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLTHRUSTING( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__733 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__733)) __PYX_ERR(0, 4533, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__733);
  __Pyx_GIVEREF(__pyx_tuple__733);

  /* "talib/stream.pyx":4564
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__734 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__734)) __PYX_ERR(0, 4564, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__734);
  __Pyx_GIVEREF(__pyx_tuple__734);

  /* "talib/stream.pyx":4566
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__735 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__735)) __PYX_ERR(0, 4566, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__735);
  __Pyx_GIVEREF(__pyx_tuple__735);

  /* "talib/stream.pyx":4571
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__736 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__736)) __PYX_ERR(0, 4571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__736);
  __Pyx_GIVEREF(__pyx_tuple__736);

  /* "talib/stream.pyx":4573
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__737 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__737)) __PYX_ERR(0, 4573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__737);
  __Pyx_GIVEREF(__pyx_tuple__737);

  /* "talib/stream.pyx":4578
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__738 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__738)) __PYX_ERR(0, 4578, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__738);
  __Pyx_GIVEREF(__pyx_tuple__738);

  /* "talib/stream.pyx":4580
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__739 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__739)) __PYX_ERR(0, 4580, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__739);
  __Pyx_GIVEREF(__pyx_tuple__739);

  /* "talib/stream.pyx":4585
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__740 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__740)) __PYX_ERR(0, 4585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__740);
  __Pyx_GIVEREF(__pyx_tuple__740);

  /* "talib/stream.pyx":4587
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__741 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__741)) __PYX_ERR(0, 4587, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__741);
  __Pyx_GIVEREF(__pyx_tuple__741);

  /* "talib/stream.pyx":4593
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__742 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__742)) __PYX_ERR(0, 4593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__742);
  __Pyx_GIVEREF(__pyx_tuple__742);

  /* "talib/stream.pyx":4595
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__743 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__743)) __PYX_ERR(0, 4595, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__743);
  __Pyx_GIVEREF(__pyx_tuple__743);

  /* "talib/stream.pyx":4597
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLTRISTAR( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__744 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__744)) __PYX_ERR(0, 4597, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__744);
  __Pyx_GIVEREF(__pyx_tuple__744);

  /* "talib/stream.pyx":4628
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__745 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__745)) __PYX_ERR(0, 4628, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__745);
  __Pyx_GIVEREF(__pyx_tuple__745);

  /* "talib/stream.pyx":4630
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__746 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__746)) __PYX_ERR(0, 4630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__746);
  __Pyx_GIVEREF(__pyx_tuple__746);

  /* "talib/stream.pyx":4635
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__747 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__747)) __PYX_ERR(0, 4635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__747);
  __Pyx_GIVEREF(__pyx_tuple__747);

  /* "talib/stream.pyx":4637
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__748 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__748)) __PYX_ERR(0, 4637, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__748);
  __Pyx_GIVEREF(__pyx_tuple__748);

  /* "talib/stream.pyx":4642
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__749 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__749)) __PYX_ERR(0, 4642, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__749);
  __Pyx_GIVEREF(__pyx_tuple__749);

  /* "talib/stream.pyx":4644
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__750 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__750)) __PYX_ERR(0, 4644, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__750);
  __Pyx_GIVEREF(__pyx_tuple__750);

  /* "talib/stream.pyx":4649
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__751 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__751)) __PYX_ERR(0, 4649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__751);
  __Pyx_GIVEREF(__pyx_tuple__751);

  /* "talib/stream.pyx":4651
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__752 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__752)) __PYX_ERR(0, 4651, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__752);
  __Pyx_GIVEREF(__pyx_tuple__752);

  /* "talib/stream.pyx":4657
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__753 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__753)) __PYX_ERR(0, 4657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__753);
  __Pyx_GIVEREF(__pyx_tuple__753);

  /* "talib/stream.pyx":4659
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__754 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__754)) __PYX_ERR(0, 4659, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__754);
  __Pyx_GIVEREF(__pyx_tuple__754);

  /* "talib/stream.pyx":4661
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLUNIQUE3RIVER( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__755 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__755)) __PYX_ERR(0, 4661, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__755);
  __Pyx_GIVEREF(__pyx_tuple__755);

  /* "talib/stream.pyx":4692
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__756 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__756)) __PYX_ERR(0, 4692, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__756);
  __Pyx_GIVEREF(__pyx_tuple__756);

  /* "talib/stream.pyx":4694
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__757 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__757)) __PYX_ERR(0, 4694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__757);
  __Pyx_GIVEREF(__pyx_tuple__757);

  /* "talib/stream.pyx":4699
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__758 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__758)) __PYX_ERR(0, 4699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__758);
  __Pyx_GIVEREF(__pyx_tuple__758);

  /* "talib/stream.pyx":4701
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__759 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__759)) __PYX_ERR(0, 4701, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__759);
  __Pyx_GIVEREF(__pyx_tuple__759);

  /* "talib/stream.pyx":4706
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__760 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__760)) __PYX_ERR(0, 4706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__760);
  __Pyx_GIVEREF(__pyx_tuple__760);

  /* "talib/stream.pyx":4708
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__761 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__761)) __PYX_ERR(0, 4708, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__761);
  __Pyx_GIVEREF(__pyx_tuple__761);

  /* "talib/stream.pyx":4713
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__762 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__762)) __PYX_ERR(0, 4713, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__762);
  __Pyx_GIVEREF(__pyx_tuple__762);

  /* "talib/stream.pyx":4715
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__763 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__763)) __PYX_ERR(0, 4715, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__763);
  __Pyx_GIVEREF(__pyx_tuple__763);

  /* "talib/stream.pyx":4721
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__764 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__764)) __PYX_ERR(0, 4721, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__764);
  __Pyx_GIVEREF(__pyx_tuple__764);

  /* "talib/stream.pyx":4723
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__765 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__765)) __PYX_ERR(0, 4723, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__765);
  __Pyx_GIVEREF(__pyx_tuple__765);

  /* "talib/stream.pyx":4725
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLUPSIDEGAP2CROWS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__766 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__766)) __PYX_ERR(0, 4725, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__766);
  __Pyx_GIVEREF(__pyx_tuple__766);

  /* "talib/stream.pyx":4756
 *         int outinteger
 *     if PyArray_TYPE(open) != np.NPY_DOUBLE:
 *         raise Exception("open is not double")             # <<<<<<<<<<<<<<
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")
 */
  __pyx_tuple__767 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__767)) __PYX_ERR(0, 4756, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__767);
  __Pyx_GIVEREF(__pyx_tuple__767);

  /* "talib/stream.pyx":4758
 *         raise Exception("open is not double")
 *     if open.ndim != 1:
 *         raise Exception("open has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS):
 *         open = PyArray_GETCONTIGUOUS(open)
 */
  __pyx_tuple__768 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__768)) __PYX_ERR(0, 4758, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__768);
  __Pyx_GIVEREF(__pyx_tuple__768);

  /* "talib/stream.pyx":4763
 *     open_data = <double*>open.data
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__769 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__769)) __PYX_ERR(0, 4763, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__769);
  __Pyx_GIVEREF(__pyx_tuple__769);

  /* "talib/stream.pyx":4765
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__770 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__770)) __PYX_ERR(0, 4765, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__770);
  __Pyx_GIVEREF(__pyx_tuple__770);

  /* "talib/stream.pyx":4770
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__771 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__771)) __PYX_ERR(0, 4770, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__771);
  __Pyx_GIVEREF(__pyx_tuple__771);

  /* "talib/stream.pyx":4772
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__772 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__772)) __PYX_ERR(0, 4772, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__772);
  __Pyx_GIVEREF(__pyx_tuple__772);

  /* "talib/stream.pyx":4777
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__773 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__773)) __PYX_ERR(0, 4777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__773);
  __Pyx_GIVEREF(__pyx_tuple__773);

  /* "talib/stream.pyx":4779
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__774 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__774)) __PYX_ERR(0, 4779, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__774);
  __Pyx_GIVEREF(__pyx_tuple__774);

  /* "talib/stream.pyx":4785
 *     length = open.shape[0]
 *     if length != high.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__775 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__775)) __PYX_ERR(0, 4785, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__775);
  __Pyx_GIVEREF(__pyx_tuple__775);

  /* "talib/stream.pyx":4787
 *         raise Exception("input lengths are different")
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__776 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__776)) __PYX_ERR(0, 4787, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__776);
  __Pyx_GIVEREF(__pyx_tuple__776);

  /* "talib/stream.pyx":4789
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outinteger = 0
 *     retCode = lib.TA_CDLXSIDEGAP3METHODS( length - 1 , length - 1 , open_data , high_data , low_data , close_data , &outbegidx , &outnbelement , &outinteger )
 */
  __pyx_tuple__777 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__777)) __PYX_ERR(0, 4789, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__777);
  __Pyx_GIVEREF(__pyx_tuple__777);

  /* "talib/stream.pyx":4817
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__778 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__778)) __PYX_ERR(0, 4817, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__778);
  __Pyx_GIVEREF(__pyx_tuple__778);

  /* "talib/stream.pyx":4819
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__779 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__779)) __PYX_ERR(0, 4819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__779);
  __Pyx_GIVEREF(__pyx_tuple__779);

  /* "talib/stream.pyx":4853
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__780 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__780)) __PYX_ERR(0, 4853, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__780);
  __Pyx_GIVEREF(__pyx_tuple__780);

  /* "talib/stream.pyx":4855
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__781 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__781)) __PYX_ERR(0, 4855, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__781);
  __Pyx_GIVEREF(__pyx_tuple__781);

  /* "talib/stream.pyx":4891
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
  __pyx_tuple__782 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__782)) __PYX_ERR(0, 4891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__782);
  __Pyx_GIVEREF(__pyx_tuple__782);

  /* "talib/stream.pyx":4893
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
  __pyx_tuple__783 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__783)) __PYX_ERR(0, 4893, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__783);
  __Pyx_GIVEREF(__pyx_tuple__783);

  /* "talib/stream.pyx":4898
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
  __pyx_tuple__784 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__784)) __PYX_ERR(0, 4898, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__784);
  __Pyx_GIVEREF(__pyx_tuple__784);

  /* "talib/stream.pyx":4900
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
  __pyx_tuple__785 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__785)) __PYX_ERR(0, 4900, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__785);
  __Pyx_GIVEREF(__pyx_tuple__785);

  /* "talib/stream.pyx":4906
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_CORREL( length - 1 , length - 1 , real0_data , real1_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__786 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__786)) __PYX_ERR(0, 4906, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__786);
  __Pyx_GIVEREF(__pyx_tuple__786);

  /* "talib/stream.pyx":4934
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__787 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__787)) __PYX_ERR(0, 4934, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__787);
  __Pyx_GIVEREF(__pyx_tuple__787);

  /* "talib/stream.pyx":4936
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__788 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__788)) __PYX_ERR(0, 4936, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__788);
  __Pyx_GIVEREF(__pyx_tuple__788);

  /* "talib/stream.pyx":4968
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__789 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__789)) __PYX_ERR(0, 4968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__789);
  __Pyx_GIVEREF(__pyx_tuple__789);

  /* "talib/stream.pyx":4970
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__790 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__790)) __PYX_ERR(0, 4970, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__790);
  __Pyx_GIVEREF(__pyx_tuple__790);

  /* "talib/stream.pyx":5004
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__791 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__791)) __PYX_ERR(0, 5004, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__791);
  __Pyx_GIVEREF(__pyx_tuple__791);

  /* "talib/stream.pyx":5006
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__792 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__792)) __PYX_ERR(0, 5006, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__792);
  __Pyx_GIVEREF(__pyx_tuple__792);

  /* "talib/stream.pyx":5040
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
  __pyx_tuple__793 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__793)) __PYX_ERR(0, 5040, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__793);
  __Pyx_GIVEREF(__pyx_tuple__793);

  /* "talib/stream.pyx":5042
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
  __pyx_tuple__794 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__794)) __PYX_ERR(0, 5042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__794);
  __Pyx_GIVEREF(__pyx_tuple__794);

  /* "talib/stream.pyx":5047
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
  __pyx_tuple__795 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__795)) __PYX_ERR(0, 5047, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__795);
  __Pyx_GIVEREF(__pyx_tuple__795);

  /* "talib/stream.pyx":5049
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
  __pyx_tuple__796 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__796)) __PYX_ERR(0, 5049, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__796);
  __Pyx_GIVEREF(__pyx_tuple__796);

  /* "talib/stream.pyx":5055
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_DIV( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__797 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__797)) __PYX_ERR(0, 5055, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__797);
  __Pyx_GIVEREF(__pyx_tuple__797);

  /* "talib/stream.pyx":5087
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__798 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__798)) __PYX_ERR(0, 5087, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__798);
  __Pyx_GIVEREF(__pyx_tuple__798);

  /* "talib/stream.pyx":5089
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__799 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__799)) __PYX_ERR(0, 5089, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__799);
  __Pyx_GIVEREF(__pyx_tuple__799);

  /* "talib/stream.pyx":5094
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__800 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__800)) __PYX_ERR(0, 5094, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__800);
  __Pyx_GIVEREF(__pyx_tuple__800);

  /* "talib/stream.pyx":5096
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__801 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__801)) __PYX_ERR(0, 5096, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__801);
  __Pyx_GIVEREF(__pyx_tuple__801);

  /* "talib/stream.pyx":5101
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__802 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__802)) __PYX_ERR(0, 5101, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__802);
  __Pyx_GIVEREF(__pyx_tuple__802);

  /* "talib/stream.pyx":5103
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__803 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__803)) __PYX_ERR(0, 5103, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__803);
  __Pyx_GIVEREF(__pyx_tuple__803);

  /* "talib/stream.pyx":5109
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__804 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__804)) __PYX_ERR(0, 5109, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__804);
  __Pyx_GIVEREF(__pyx_tuple__804);

  /* "talib/stream.pyx":5111
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_DX( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__805 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__805)) __PYX_ERR(0, 5111, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__805);
  __Pyx_GIVEREF(__pyx_tuple__805);

  /* "talib/stream.pyx":5141
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__806 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__806)) __PYX_ERR(0, 5141, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__806);
  __Pyx_GIVEREF(__pyx_tuple__806);

  /* "talib/stream.pyx":5143
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__807 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__807)) __PYX_ERR(0, 5143, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__807);
  __Pyx_GIVEREF(__pyx_tuple__807);

  /* "talib/stream.pyx":5175
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__808 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__808)) __PYX_ERR(0, 5175, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__808);
  __Pyx_GIVEREF(__pyx_tuple__808);

  /* "talib/stream.pyx":5177
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__809 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__809)) __PYX_ERR(0, 5177, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__809);
  __Pyx_GIVEREF(__pyx_tuple__809);

  /* "talib/stream.pyx":5209
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__810 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__810)) __PYX_ERR(0, 5209, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__810);
  __Pyx_GIVEREF(__pyx_tuple__810);

  /* "talib/stream.pyx":5211
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__811 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__811)) __PYX_ERR(0, 5211, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__811);
  __Pyx_GIVEREF(__pyx_tuple__811);

  /* "talib/stream.pyx":5243
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__812 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__812)) __PYX_ERR(0, 5243, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__812);
  __Pyx_GIVEREF(__pyx_tuple__812);

  /* "talib/stream.pyx":5245
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__813 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__813)) __PYX_ERR(0, 5245, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__813);
  __Pyx_GIVEREF(__pyx_tuple__813);

  /* "talib/stream.pyx":5277
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__814 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__814)) __PYX_ERR(0, 5277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__814);
  __Pyx_GIVEREF(__pyx_tuple__814);

  /* "talib/stream.pyx":5279
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__815 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__815)) __PYX_ERR(0, 5279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__815);
  __Pyx_GIVEREF(__pyx_tuple__815);

  /* "talib/stream.pyx":5313
 *         double outquadrature
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__816 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__816)) __PYX_ERR(0, 5313, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__816);
  __Pyx_GIVEREF(__pyx_tuple__816);

  /* "talib/stream.pyx":5315
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__817 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__817)) __PYX_ERR(0, 5315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__817);
  __Pyx_GIVEREF(__pyx_tuple__817);

  /* "talib/stream.pyx":5350
 *         double outleadsine
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__818 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__818)) __PYX_ERR(0, 5350, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__818);
  __Pyx_GIVEREF(__pyx_tuple__818);

  /* "talib/stream.pyx":5352
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__819 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__819)) __PYX_ERR(0, 5352, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__819);
  __Pyx_GIVEREF(__pyx_tuple__819);

  /* "talib/stream.pyx":5385
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__820 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__820)) __PYX_ERR(0, 5385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__820);
  __Pyx_GIVEREF(__pyx_tuple__820);

  /* "talib/stream.pyx":5387
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__821 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__821)) __PYX_ERR(0, 5387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__821);
  __Pyx_GIVEREF(__pyx_tuple__821);

  /* "talib/stream.pyx":5419
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__822 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__822)) __PYX_ERR(0, 5419, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__822);
  __Pyx_GIVEREF(__pyx_tuple__822);

  /* "talib/stream.pyx":5421
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__823 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__823)) __PYX_ERR(0, 5421, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__823);
  __Pyx_GIVEREF(__pyx_tuple__823);

  /* "talib/stream.pyx":5455
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__824 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__824)) __PYX_ERR(0, 5455, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__824);
  __Pyx_GIVEREF(__pyx_tuple__824);

  /* "talib/stream.pyx":5457
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__825 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__825)) __PYX_ERR(0, 5457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__825);
  __Pyx_GIVEREF(__pyx_tuple__825);

  /* "talib/stream.pyx":5491
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__826 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__826)) __PYX_ERR(0, 5491, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__826);
  __Pyx_GIVEREF(__pyx_tuple__826);

  /* "talib/stream.pyx":5493
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__827 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__827)) __PYX_ERR(0, 5493, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__827);
  __Pyx_GIVEREF(__pyx_tuple__827);

  /* "talib/stream.pyx":5527
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__828 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__828)) __PYX_ERR(0, 5527, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__828);
  __Pyx_GIVEREF(__pyx_tuple__828);

  /* "talib/stream.pyx":5529
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__829 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__829)) __PYX_ERR(0, 5529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__829);
  __Pyx_GIVEREF(__pyx_tuple__829);

  /* "talib/stream.pyx":5563
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__830 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__830)) __PYX_ERR(0, 5563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__830);
  __Pyx_GIVEREF(__pyx_tuple__830);

  /* "talib/stream.pyx":5565
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__831 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__831)) __PYX_ERR(0, 5565, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__831);
  __Pyx_GIVEREF(__pyx_tuple__831);

  /* "talib/stream.pyx":5599
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__832 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__832)) __PYX_ERR(0, 5599, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__832);
  __Pyx_GIVEREF(__pyx_tuple__832);

  /* "talib/stream.pyx":5601
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__833 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__833)) __PYX_ERR(0, 5601, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__833);
  __Pyx_GIVEREF(__pyx_tuple__833);

  /* "talib/stream.pyx":5633
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__834 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__834)) __PYX_ERR(0, 5633, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__834);
  __Pyx_GIVEREF(__pyx_tuple__834);

  /* "talib/stream.pyx":5635
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__835 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__835)) __PYX_ERR(0, 5635, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__835);
  __Pyx_GIVEREF(__pyx_tuple__835);

  /* "talib/stream.pyx":5667
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__836 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__836)) __PYX_ERR(0, 5667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__836);
  __Pyx_GIVEREF(__pyx_tuple__836);

  /* "talib/stream.pyx":5669
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__837 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__837)) __PYX_ERR(0, 5669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__837);
  __Pyx_GIVEREF(__pyx_tuple__837);

  /* "talib/stream.pyx":5704
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__838 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__838)) __PYX_ERR(0, 5704, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__838);
  __Pyx_GIVEREF(__pyx_tuple__838);

  /* "talib/stream.pyx":5706
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__839 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__839)) __PYX_ERR(0, 5706, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__839);
  __Pyx_GIVEREF(__pyx_tuple__839);

  /* "talib/stream.pyx":5746
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__840 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__840)) __PYX_ERR(0, 5746, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__840);
  __Pyx_GIVEREF(__pyx_tuple__840);

  /* "talib/stream.pyx":5748
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__841 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__841)) __PYX_ERR(0, 5748, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__841);
  __Pyx_GIVEREF(__pyx_tuple__841);

  /* "talib/stream.pyx":5793
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__842 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__842)) __PYX_ERR(0, 5793, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__842);
  __Pyx_GIVEREF(__pyx_tuple__842);

  /* "talib/stream.pyx":5795
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__843 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__843)) __PYX_ERR(0, 5795, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__843);
  __Pyx_GIVEREF(__pyx_tuple__843);

  /* "talib/stream.pyx":5835
 *         double outmacdhist
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__844 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__844)) __PYX_ERR(0, 5835, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__844);
  __Pyx_GIVEREF(__pyx_tuple__844);

  /* "talib/stream.pyx":5837
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__845 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__845)) __PYX_ERR(0, 5837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__845);
  __Pyx_GIVEREF(__pyx_tuple__845);

  /* "talib/stream.pyx":5876
 *         double outfama
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__846 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__846)) __PYX_ERR(0, 5876, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__846);
  __Pyx_GIVEREF(__pyx_tuple__846);

  /* "talib/stream.pyx":5878
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__847 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__847)) __PYX_ERR(0, 5878, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__847);
  __Pyx_GIVEREF(__pyx_tuple__847);

  /* "talib/stream.pyx":5917
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__848 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__848)) __PYX_ERR(0, 5917, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__848);
  __Pyx_GIVEREF(__pyx_tuple__848);

  /* "talib/stream.pyx":5919
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__849 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__849)) __PYX_ERR(0, 5919, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__849);
  __Pyx_GIVEREF(__pyx_tuple__849);

  /* "talib/stream.pyx":5924
 *     real_data = <double*>real.data
 *     if PyArray_TYPE(periods) != np.NPY_DOUBLE:
 *         raise Exception("periods is not double")             # <<<<<<<<<<<<<<
 *     if periods.ndim != 1:
 *         raise Exception("periods has wrong dimensions")
 */
  __pyx_tuple__850 = PyTuple_Pack(1, __pyx_kp_s_periods_is_not_double); if (unlikely(!__pyx_tuple__850)) __PYX_ERR(0, 5924, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__850);
  __Pyx_GIVEREF(__pyx_tuple__850);

  /* "talib/stream.pyx":5926
 *         raise Exception("periods is not double")
 *     if periods.ndim != 1:
 *         raise Exception("periods has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS):
 *         periods = PyArray_GETCONTIGUOUS(periods)
 */
  __pyx_tuple__851 = PyTuple_Pack(1, __pyx_kp_s_periods_has_wrong_dimensions); if (unlikely(!__pyx_tuple__851)) __PYX_ERR(0, 5926, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__851);
  __Pyx_GIVEREF(__pyx_tuple__851);

  /* "talib/stream.pyx":5932
 *     length = real.shape[0]
 *     if length != periods.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MAVP( length - 1 , length - 1 , real_data , periods_data , minperiod , maxperiod , matype , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__852 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__852)) __PYX_ERR(0, 5932, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__852);
  __Pyx_GIVEREF(__pyx_tuple__852);

  /* "talib/stream.pyx":5962
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__853 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__853)) __PYX_ERR(0, 5962, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__853);
  __Pyx_GIVEREF(__pyx_tuple__853);

  /* "talib/stream.pyx":5964
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__854 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__854)) __PYX_ERR(0, 5964, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__854);
  __Pyx_GIVEREF(__pyx_tuple__854);

  /* "talib/stream.pyx":5998
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__855 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__855)) __PYX_ERR(0, 5998, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__855);
  __Pyx_GIVEREF(__pyx_tuple__855);

  /* "talib/stream.pyx":6000
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__856 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__856)) __PYX_ERR(0, 6000, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__856);
  __Pyx_GIVEREF(__pyx_tuple__856);

  /* "talib/stream.pyx":6033
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__857 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__857)) __PYX_ERR(0, 6033, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__857);
  __Pyx_GIVEREF(__pyx_tuple__857);

  /* "talib/stream.pyx":6035
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__858 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__858)) __PYX_ERR(0, 6035, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__858);
  __Pyx_GIVEREF(__pyx_tuple__858);

  /* "talib/stream.pyx":6040
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__859 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__859)) __PYX_ERR(0, 6040, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__859);
  __Pyx_GIVEREF(__pyx_tuple__859);

  /* "talib/stream.pyx":6042
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__860 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__860)) __PYX_ERR(0, 6042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__860);
  __Pyx_GIVEREF(__pyx_tuple__860);

  /* "talib/stream.pyx":6048
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MEDPRICE( length - 1 , length - 1 , high_data , low_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__861 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__861)) __PYX_ERR(0, 6048, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__861);
  __Pyx_GIVEREF(__pyx_tuple__861);

  /* "talib/stream.pyx":6081
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__862 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__862)) __PYX_ERR(0, 6081, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__862);
  __Pyx_GIVEREF(__pyx_tuple__862);

  /* "talib/stream.pyx":6083
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__863 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__863)) __PYX_ERR(0, 6083, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__863);
  __Pyx_GIVEREF(__pyx_tuple__863);

  /* "talib/stream.pyx":6088
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__864 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__864)) __PYX_ERR(0, 6088, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__864);
  __Pyx_GIVEREF(__pyx_tuple__864);

  /* "talib/stream.pyx":6090
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__865 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__865)) __PYX_ERR(0, 6090, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__865);
  __Pyx_GIVEREF(__pyx_tuple__865);

  /* "talib/stream.pyx":6095
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__866 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__866)) __PYX_ERR(0, 6095, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__866);
  __Pyx_GIVEREF(__pyx_tuple__866);

  /* "talib/stream.pyx":6097
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__867 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__867)) __PYX_ERR(0, 6097, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__867);
  __Pyx_GIVEREF(__pyx_tuple__867);

  /* "talib/stream.pyx":6102
 *     close_data = <double*>close.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")             # <<<<<<<<<<<<<<
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 */
  __pyx_tuple__868 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__868)) __PYX_ERR(0, 6102, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__868);
  __Pyx_GIVEREF(__pyx_tuple__868);

  /* "talib/stream.pyx":6104
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 */
  __pyx_tuple__869 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__869)) __PYX_ERR(0, 6104, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__869);
  __Pyx_GIVEREF(__pyx_tuple__869);

  /* "talib/stream.pyx":6110
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__870 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__870)) __PYX_ERR(0, 6110, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__870);
  __Pyx_GIVEREF(__pyx_tuple__870);

  /* "talib/stream.pyx":6112
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__871 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__871)) __PYX_ERR(0, 6112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__871);
  __Pyx_GIVEREF(__pyx_tuple__871);

  /* "talib/stream.pyx":6114
 *         raise Exception("input lengths are different")
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MFI( length - 1 , length - 1 , high_data , low_data , close_data , volume_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__872 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__872)) __PYX_ERR(0, 6114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__872);
  __Pyx_GIVEREF(__pyx_tuple__872);

  /* "talib/stream.pyx":6144
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__873 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__873)) __PYX_ERR(0, 6144, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__873);
  __Pyx_GIVEREF(__pyx_tuple__873);

  /* "talib/stream.pyx":6146
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__874 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__874)) __PYX_ERR(0, 6146, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__874);
  __Pyx_GIVEREF(__pyx_tuple__874);

  /* "talib/stream.pyx":6181
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__875 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__875)) __PYX_ERR(0, 6181, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__875);
  __Pyx_GIVEREF(__pyx_tuple__875);

  /* "talib/stream.pyx":6183
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__876 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__876)) __PYX_ERR(0, 6183, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__876);
  __Pyx_GIVEREF(__pyx_tuple__876);

  /* "talib/stream.pyx":6188
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__877 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__877)) __PYX_ERR(0, 6188, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__877);
  __Pyx_GIVEREF(__pyx_tuple__877);

  /* "talib/stream.pyx":6190
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__878 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__878)) __PYX_ERR(0, 6190, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__878);
  __Pyx_GIVEREF(__pyx_tuple__878);

  /* "talib/stream.pyx":6196
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MIDPRICE( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__879 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__879)) __PYX_ERR(0, 6196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__879);
  __Pyx_GIVEREF(__pyx_tuple__879);

  /* "talib/stream.pyx":6226
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__880 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__880)) __PYX_ERR(0, 6226, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__880);
  __Pyx_GIVEREF(__pyx_tuple__880);

  /* "talib/stream.pyx":6228
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__881 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__881)) __PYX_ERR(0, 6228, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__881);
  __Pyx_GIVEREF(__pyx_tuple__881);

  /* "talib/stream.pyx":6262
 *         int outinteger
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__882 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__882)) __PYX_ERR(0, 6262, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__882);
  __Pyx_GIVEREF(__pyx_tuple__882);

  /* "talib/stream.pyx":6264
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__883 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__883)) __PYX_ERR(0, 6264, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__883);
  __Pyx_GIVEREF(__pyx_tuple__883);

  /* "talib/stream.pyx":6300
 *         double outmax
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__884 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__884)) __PYX_ERR(0, 6300, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__884);
  __Pyx_GIVEREF(__pyx_tuple__884);

  /* "talib/stream.pyx":6302
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__885 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__885)) __PYX_ERR(0, 6302, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__885);
  __Pyx_GIVEREF(__pyx_tuple__885);

  /* "talib/stream.pyx":6339
 *         int outmaxidx
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__886 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__886)) __PYX_ERR(0, 6339, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__886);
  __Pyx_GIVEREF(__pyx_tuple__886);

  /* "talib/stream.pyx":6341
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__887 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__887)) __PYX_ERR(0, 6341, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__887);
  __Pyx_GIVEREF(__pyx_tuple__887);

  /* "talib/stream.pyx":6378
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__888 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__888)) __PYX_ERR(0, 6378, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__888);
  __Pyx_GIVEREF(__pyx_tuple__888);

  /* "talib/stream.pyx":6380
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__889 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__889)) __PYX_ERR(0, 6380, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__889);
  __Pyx_GIVEREF(__pyx_tuple__889);

  /* "talib/stream.pyx":6385
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__890 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__890)) __PYX_ERR(0, 6385, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__890);
  __Pyx_GIVEREF(__pyx_tuple__890);

  /* "talib/stream.pyx":6387
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__891 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__891)) __PYX_ERR(0, 6387, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__891);
  __Pyx_GIVEREF(__pyx_tuple__891);

  /* "talib/stream.pyx":6392
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__892 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__892)) __PYX_ERR(0, 6392, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__892);
  __Pyx_GIVEREF(__pyx_tuple__892);

  /* "talib/stream.pyx":6394
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__893 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__893)) __PYX_ERR(0, 6394, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__893);
  __Pyx_GIVEREF(__pyx_tuple__893);

  /* "talib/stream.pyx":6400
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__894 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__894)) __PYX_ERR(0, 6400, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__894);
  __Pyx_GIVEREF(__pyx_tuple__894);

  /* "talib/stream.pyx":6402
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MINUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__895 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__895)) __PYX_ERR(0, 6402, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__895);
  __Pyx_GIVEREF(__pyx_tuple__895);

  /* "talib/stream.pyx":6433
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__896 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__896)) __PYX_ERR(0, 6433, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__896);
  __Pyx_GIVEREF(__pyx_tuple__896);

  /* "talib/stream.pyx":6435
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__897 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__897)) __PYX_ERR(0, 6435, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__897);
  __Pyx_GIVEREF(__pyx_tuple__897);

  /* "talib/stream.pyx":6440
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__898 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__898)) __PYX_ERR(0, 6440, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__898);
  __Pyx_GIVEREF(__pyx_tuple__898);

  /* "talib/stream.pyx":6442
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__899 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__899)) __PYX_ERR(0, 6442, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__899);
  __Pyx_GIVEREF(__pyx_tuple__899);

  /* "talib/stream.pyx":6448
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MINUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__900 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__900)) __PYX_ERR(0, 6448, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__900);
  __Pyx_GIVEREF(__pyx_tuple__900);

  /* "talib/stream.pyx":6478
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__901 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__901)) __PYX_ERR(0, 6478, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__901);
  __Pyx_GIVEREF(__pyx_tuple__901);

  /* "talib/stream.pyx":6480
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__902 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__902)) __PYX_ERR(0, 6480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__902);
  __Pyx_GIVEREF(__pyx_tuple__902);

  /* "talib/stream.pyx":6514
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
  __pyx_tuple__903 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__903)) __PYX_ERR(0, 6514, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__903);
  __Pyx_GIVEREF(__pyx_tuple__903);

  /* "talib/stream.pyx":6516
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
  __pyx_tuple__904 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__904)) __PYX_ERR(0, 6516, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__904);
  __Pyx_GIVEREF(__pyx_tuple__904);

  /* "talib/stream.pyx":6521
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
  __pyx_tuple__905 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__905)) __PYX_ERR(0, 6521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__905);
  __Pyx_GIVEREF(__pyx_tuple__905);

  /* "talib/stream.pyx":6523
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
  __pyx_tuple__906 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__906)) __PYX_ERR(0, 6523, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__906);
  __Pyx_GIVEREF(__pyx_tuple__906);

  /* "talib/stream.pyx":6529
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_MULT( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__907 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__907)) __PYX_ERR(0, 6529, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__907);
  __Pyx_GIVEREF(__pyx_tuple__907);

  /* "talib/stream.pyx":6561
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__908 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__908)) __PYX_ERR(0, 6561, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__908);
  __Pyx_GIVEREF(__pyx_tuple__908);

  /* "talib/stream.pyx":6563
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__909 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__909)) __PYX_ERR(0, 6563, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__909);
  __Pyx_GIVEREF(__pyx_tuple__909);

  /* "talib/stream.pyx":6568
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__910 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__910)) __PYX_ERR(0, 6568, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__910);
  __Pyx_GIVEREF(__pyx_tuple__910);

  /* "talib/stream.pyx":6570
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__911 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__911)) __PYX_ERR(0, 6570, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__911);
  __Pyx_GIVEREF(__pyx_tuple__911);

  /* "talib/stream.pyx":6575
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__912 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__912)) __PYX_ERR(0, 6575, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__912);
  __Pyx_GIVEREF(__pyx_tuple__912);

  /* "talib/stream.pyx":6577
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__913 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__913)) __PYX_ERR(0, 6577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__913);
  __Pyx_GIVEREF(__pyx_tuple__913);

  /* "talib/stream.pyx":6583
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__914 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__914)) __PYX_ERR(0, 6583, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__914);
  __Pyx_GIVEREF(__pyx_tuple__914);

  /* "talib/stream.pyx":6585
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_NATR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__915 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__915)) __PYX_ERR(0, 6585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__915);
  __Pyx_GIVEREF(__pyx_tuple__915);

  /* "talib/stream.pyx":6615
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__916 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__916)) __PYX_ERR(0, 6615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__916);
  __Pyx_GIVEREF(__pyx_tuple__916);

  /* "talib/stream.pyx":6617
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__917 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__917)) __PYX_ERR(0, 6617, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__917);
  __Pyx_GIVEREF(__pyx_tuple__917);

  /* "talib/stream.pyx":6622
 *     real_data = <double*>real.data
 *     if PyArray_TYPE(volume) != np.NPY_DOUBLE:
 *         raise Exception("volume is not double")             # <<<<<<<<<<<<<<
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")
 */
  __pyx_tuple__918 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__918)) __PYX_ERR(0, 6622, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__918);
  __Pyx_GIVEREF(__pyx_tuple__918);

  /* "talib/stream.pyx":6624
 *         raise Exception("volume is not double")
 *     if volume.ndim != 1:
 *         raise Exception("volume has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS):
 *         volume = PyArray_GETCONTIGUOUS(volume)
 */
  __pyx_tuple__919 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__919)) __PYX_ERR(0, 6624, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__919);
  __Pyx_GIVEREF(__pyx_tuple__919);

  /* "talib/stream.pyx":6630
 *     length = real.shape[0]
 *     if length != volume.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_OBV( length - 1 , length - 1 , real_data , volume_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__920 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__920)) __PYX_ERR(0, 6630, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__920);
  __Pyx_GIVEREF(__pyx_tuple__920);

  /* "talib/stream.pyx":6662
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__921 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__921)) __PYX_ERR(0, 6662, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__921);
  __Pyx_GIVEREF(__pyx_tuple__921);

  /* "talib/stream.pyx":6664
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__922 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__922)) __PYX_ERR(0, 6664, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__922);
  __Pyx_GIVEREF(__pyx_tuple__922);

  /* "talib/stream.pyx":6669
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__923 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__923)) __PYX_ERR(0, 6669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__923);
  __Pyx_GIVEREF(__pyx_tuple__923);

  /* "talib/stream.pyx":6671
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__924 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__924)) __PYX_ERR(0, 6671, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__924);
  __Pyx_GIVEREF(__pyx_tuple__924);

  /* "talib/stream.pyx":6676
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__925 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__925)) __PYX_ERR(0, 6676, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__925);
  __Pyx_GIVEREF(__pyx_tuple__925);

  /* "talib/stream.pyx":6678
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__926 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__926)) __PYX_ERR(0, 6678, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__926);
  __Pyx_GIVEREF(__pyx_tuple__926);

  /* "talib/stream.pyx":6684
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__927 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__927)) __PYX_ERR(0, 6684, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__927);
  __Pyx_GIVEREF(__pyx_tuple__927);

  /* "talib/stream.pyx":6686
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_PLUS_DI( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__928 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__928)) __PYX_ERR(0, 6686, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__928);
  __Pyx_GIVEREF(__pyx_tuple__928);

  /* "talib/stream.pyx":6717
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__929 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__929)) __PYX_ERR(0, 6717, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__929);
  __Pyx_GIVEREF(__pyx_tuple__929);

  /* "talib/stream.pyx":6719
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__930 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__930)) __PYX_ERR(0, 6719, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__930);
  __Pyx_GIVEREF(__pyx_tuple__930);

  /* "talib/stream.pyx":6724
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__931 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__931)) __PYX_ERR(0, 6724, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__931);
  __Pyx_GIVEREF(__pyx_tuple__931);

  /* "talib/stream.pyx":6726
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__932 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__932)) __PYX_ERR(0, 6726, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__932);
  __Pyx_GIVEREF(__pyx_tuple__932);

  /* "talib/stream.pyx":6732
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_PLUS_DM( length - 1 , length - 1 , high_data , low_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__933 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__933)) __PYX_ERR(0, 6732, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__933);
  __Pyx_GIVEREF(__pyx_tuple__933);

  /* "talib/stream.pyx":6764
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__934 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__934)) __PYX_ERR(0, 6764, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__934);
  __Pyx_GIVEREF(__pyx_tuple__934);

  /* "talib/stream.pyx":6766
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__935 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__935)) __PYX_ERR(0, 6766, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__935);
  __Pyx_GIVEREF(__pyx_tuple__935);

  /* "talib/stream.pyx":6800
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__936 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__936)) __PYX_ERR(0, 6800, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__936);
  __Pyx_GIVEREF(__pyx_tuple__936);

  /* "talib/stream.pyx":6802
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__937 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__937)) __PYX_ERR(0, 6802, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__937);
  __Pyx_GIVEREF(__pyx_tuple__937);

  /* "talib/stream.pyx":6836
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__938 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__938)) __PYX_ERR(0, 6836, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__938);
  __Pyx_GIVEREF(__pyx_tuple__938);

  /* "talib/stream.pyx":6838
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__939 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__939)) __PYX_ERR(0, 6838, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__939);
  __Pyx_GIVEREF(__pyx_tuple__939);

  /* "talib/stream.pyx":6872
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__940 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__940)) __PYX_ERR(0, 6872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__940);
  __Pyx_GIVEREF(__pyx_tuple__940);

  /* "talib/stream.pyx":6874
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__941 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__941)) __PYX_ERR(0, 6874, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__941);
  __Pyx_GIVEREF(__pyx_tuple__941);

  /* "talib/stream.pyx":6908
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__942 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__942)) __PYX_ERR(0, 6908, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__942);
  __Pyx_GIVEREF(__pyx_tuple__942);

  /* "talib/stream.pyx":6910
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__943 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__943)) __PYX_ERR(0, 6910, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__943);
  __Pyx_GIVEREF(__pyx_tuple__943);

  /* "talib/stream.pyx":6944
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__944 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__944)) __PYX_ERR(0, 6944, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__944);
  __Pyx_GIVEREF(__pyx_tuple__944);

  /* "talib/stream.pyx":6946
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__945 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__945)) __PYX_ERR(0, 6946, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__945);
  __Pyx_GIVEREF(__pyx_tuple__945);

  /* "talib/stream.pyx":6982
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__946 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__946)) __PYX_ERR(0, 6982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__946);
  __Pyx_GIVEREF(__pyx_tuple__946);

  /* "talib/stream.pyx":6984
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__947 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__947)) __PYX_ERR(0, 6984, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__947);
  __Pyx_GIVEREF(__pyx_tuple__947);

  /* "talib/stream.pyx":6989
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__948 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__948)) __PYX_ERR(0, 6989, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__948);
  __Pyx_GIVEREF(__pyx_tuple__948);

  /* "talib/stream.pyx":6991
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__949 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__949)) __PYX_ERR(0, 6991, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__949);
  __Pyx_GIVEREF(__pyx_tuple__949);

  /* "talib/stream.pyx":6997
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_SAR( length - 1 , length - 1 , high_data , low_data , acceleration , maximum , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__950 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__950)) __PYX_ERR(0, 6997, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__950);
  __Pyx_GIVEREF(__pyx_tuple__950);

  /* "talib/stream.pyx":7035
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__951 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__951)) __PYX_ERR(0, 7035, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__951);
  __Pyx_GIVEREF(__pyx_tuple__951);

  /* "talib/stream.pyx":7037
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__952 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__952)) __PYX_ERR(0, 7037, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__952);
  __Pyx_GIVEREF(__pyx_tuple__952);

  /* "talib/stream.pyx":7042
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__953 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__953)) __PYX_ERR(0, 7042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__953);
  __Pyx_GIVEREF(__pyx_tuple__953);

  /* "talib/stream.pyx":7044
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__954 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__954)) __PYX_ERR(0, 7044, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__954);
  __Pyx_GIVEREF(__pyx_tuple__954);

  /* "talib/stream.pyx":7050
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_SAREXT( length - 1 , length - 1 , high_data , low_data , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__955 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__955)) __PYX_ERR(0, 7050, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__955);
  __Pyx_GIVEREF(__pyx_tuple__955);

  /* "talib/stream.pyx":7078
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__956 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__956)) __PYX_ERR(0, 7078, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__956);
  __Pyx_GIVEREF(__pyx_tuple__956);

  /* "talib/stream.pyx":7080
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__957 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__957)) __PYX_ERR(0, 7080, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__957);
  __Pyx_GIVEREF(__pyx_tuple__957);

  /* "talib/stream.pyx":7112
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__958 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__958)) __PYX_ERR(0, 7112, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__958);
  __Pyx_GIVEREF(__pyx_tuple__958);

  /* "talib/stream.pyx":7114
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__959 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__959)) __PYX_ERR(0, 7114, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__959);
  __Pyx_GIVEREF(__pyx_tuple__959);

  /* "talib/stream.pyx":7148
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__960 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__960)) __PYX_ERR(0, 7148, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__960);
  __Pyx_GIVEREF(__pyx_tuple__960);

  /* "talib/stream.pyx":7150
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__961 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__961)) __PYX_ERR(0, 7150, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__961);
  __Pyx_GIVEREF(__pyx_tuple__961);

  /* "talib/stream.pyx":7182
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__962 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__962)) __PYX_ERR(0, 7182, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__962);
  __Pyx_GIVEREF(__pyx_tuple__962);

  /* "talib/stream.pyx":7184
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__963 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__963)) __PYX_ERR(0, 7184, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__963);
  __Pyx_GIVEREF(__pyx_tuple__963);

  /* "talib/stream.pyx":7219
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__964 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__964)) __PYX_ERR(0, 7219, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__964);
  __Pyx_GIVEREF(__pyx_tuple__964);

  /* "talib/stream.pyx":7221
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__965 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__965)) __PYX_ERR(0, 7221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__965);
  __Pyx_GIVEREF(__pyx_tuple__965);

  /* "talib/stream.pyx":7263
 *         double outslowd
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__966 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__966)) __PYX_ERR(0, 7263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__966);
  __Pyx_GIVEREF(__pyx_tuple__966);

  /* "talib/stream.pyx":7265
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__967 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__967)) __PYX_ERR(0, 7265, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__967);
  __Pyx_GIVEREF(__pyx_tuple__967);

  /* "talib/stream.pyx":7270
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__968 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__968)) __PYX_ERR(0, 7270, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__968);
  __Pyx_GIVEREF(__pyx_tuple__968);

  /* "talib/stream.pyx":7272
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__969 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__969)) __PYX_ERR(0, 7272, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__969);
  __Pyx_GIVEREF(__pyx_tuple__969);

  /* "talib/stream.pyx":7277
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__970 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__970)) __PYX_ERR(0, 7277, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__970);
  __Pyx_GIVEREF(__pyx_tuple__970);

  /* "talib/stream.pyx":7279
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__971 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__971)) __PYX_ERR(0, 7279, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__971);
  __Pyx_GIVEREF(__pyx_tuple__971);

  /* "talib/stream.pyx":7285
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__972 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__972)) __PYX_ERR(0, 7285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__972);
  __Pyx_GIVEREF(__pyx_tuple__972);

  /* "talib/stream.pyx":7287
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outslowk = NaN
 *     outslowd = NaN
 */
  __pyx_tuple__973 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__973)) __PYX_ERR(0, 7287, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__973);
  __Pyx_GIVEREF(__pyx_tuple__973);

  /* "talib/stream.pyx":7324
 *         double outfastd
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__974 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__974)) __PYX_ERR(0, 7324, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__974);
  __Pyx_GIVEREF(__pyx_tuple__974);

  /* "talib/stream.pyx":7326
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__975 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__975)) __PYX_ERR(0, 7326, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__975);
  __Pyx_GIVEREF(__pyx_tuple__975);

  /* "talib/stream.pyx":7331
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__976 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__976)) __PYX_ERR(0, 7331, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__976);
  __Pyx_GIVEREF(__pyx_tuple__976);

  /* "talib/stream.pyx":7333
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__977 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__977)) __PYX_ERR(0, 7333, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__977);
  __Pyx_GIVEREF(__pyx_tuple__977);

  /* "talib/stream.pyx":7338
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__978 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__978)) __PYX_ERR(0, 7338, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__978);
  __Pyx_GIVEREF(__pyx_tuple__978);

  /* "talib/stream.pyx":7340
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__979 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__979)) __PYX_ERR(0, 7340, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__979);
  __Pyx_GIVEREF(__pyx_tuple__979);

  /* "talib/stream.pyx":7346
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__980 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__980)) __PYX_ERR(0, 7346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__980);
  __Pyx_GIVEREF(__pyx_tuple__980);

  /* "talib/stream.pyx":7348
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outfastk = NaN
 *     outfastd = NaN
 */
  __pyx_tuple__981 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__981)) __PYX_ERR(0, 7348, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__981);
  __Pyx_GIVEREF(__pyx_tuple__981);

  /* "talib/stream.pyx":7384
 *         double outfastd
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__982 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__982)) __PYX_ERR(0, 7384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__982);
  __Pyx_GIVEREF(__pyx_tuple__982);

  /* "talib/stream.pyx":7386
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__983 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__983)) __PYX_ERR(0, 7386, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__983);
  __Pyx_GIVEREF(__pyx_tuple__983);

  /* "talib/stream.pyx":7421
 *         double outreal
 *     if PyArray_TYPE(real0) != np.NPY_DOUBLE:
 *         raise Exception("real0 is not double")             # <<<<<<<<<<<<<<
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")
 */
  __pyx_tuple__984 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__984)) __PYX_ERR(0, 7421, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__984);
  __Pyx_GIVEREF(__pyx_tuple__984);

  /* "talib/stream.pyx":7423
 *         raise Exception("real0 is not double")
 *     if real0.ndim != 1:
 *         raise Exception("real0 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS):
 *         real0 = PyArray_GETCONTIGUOUS(real0)
 */
  __pyx_tuple__985 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__985)) __PYX_ERR(0, 7423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__985);
  __Pyx_GIVEREF(__pyx_tuple__985);

  /* "talib/stream.pyx":7428
 *     real0_data = <double*>real0.data
 *     if PyArray_TYPE(real1) != np.NPY_DOUBLE:
 *         raise Exception("real1 is not double")             # <<<<<<<<<<<<<<
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")
 */
  __pyx_tuple__986 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__986)) __PYX_ERR(0, 7428, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__986);
  __Pyx_GIVEREF(__pyx_tuple__986);

  /* "talib/stream.pyx":7430
 *         raise Exception("real1 is not double")
 *     if real1.ndim != 1:
 *         raise Exception("real1 has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS):
 *         real1 = PyArray_GETCONTIGUOUS(real1)
 */
  __pyx_tuple__987 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__987)) __PYX_ERR(0, 7430, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__987);
  __Pyx_GIVEREF(__pyx_tuple__987);

  /* "talib/stream.pyx":7436
 *     length = real0.shape[0]
 *     if length != real1.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_SUB( length - 1 , length - 1 , real0_data , real1_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__988 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__988)) __PYX_ERR(0, 7436, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__988);
  __Pyx_GIVEREF(__pyx_tuple__988);

  /* "talib/stream.pyx":7466
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__989 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__989)) __PYX_ERR(0, 7466, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__989);
  __Pyx_GIVEREF(__pyx_tuple__989);

  /* "talib/stream.pyx":7468
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__990 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__990)) __PYX_ERR(0, 7468, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__990);
  __Pyx_GIVEREF(__pyx_tuple__990);

  /* "talib/stream.pyx":7503
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__991 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__991)) __PYX_ERR(0, 7503, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__991);
  __Pyx_GIVEREF(__pyx_tuple__991);

  /* "talib/stream.pyx":7505
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__992 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__992)) __PYX_ERR(0, 7505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__992);
  __Pyx_GIVEREF(__pyx_tuple__992);

  /* "talib/stream.pyx":7537
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__993 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__993)) __PYX_ERR(0, 7537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__993);
  __Pyx_GIVEREF(__pyx_tuple__993);

  /* "talib/stream.pyx":7539
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__994 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__994)) __PYX_ERR(0, 7539, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__994);
  __Pyx_GIVEREF(__pyx_tuple__994);

  /* "talib/stream.pyx":7571
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__995 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__995)) __PYX_ERR(0, 7571, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__995);
  __Pyx_GIVEREF(__pyx_tuple__995);

  /* "talib/stream.pyx":7573
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__996 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__996)) __PYX_ERR(0, 7573, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__996);
  __Pyx_GIVEREF(__pyx_tuple__996);

  /* "talib/stream.pyx":7607
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__997 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__997)) __PYX_ERR(0, 7607, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__997);
  __Pyx_GIVEREF(__pyx_tuple__997);

  /* "talib/stream.pyx":7609
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__998 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__998)) __PYX_ERR(0, 7609, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__998);
  __Pyx_GIVEREF(__pyx_tuple__998);

  /* "talib/stream.pyx":7643
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__999 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__999)) __PYX_ERR(0, 7643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__999);
  __Pyx_GIVEREF(__pyx_tuple__999);

  /* "talib/stream.pyx":7645
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__1000 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1000)) __PYX_ERR(0, 7645, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1000);
  __Pyx_GIVEREF(__pyx_tuple__1000);

  /* "talib/stream.pyx":7650
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__1001 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1001)) __PYX_ERR(0, 7650, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1001);
  __Pyx_GIVEREF(__pyx_tuple__1001);

  /* "talib/stream.pyx":7652
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__1002 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1002)) __PYX_ERR(0, 7652, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1002);
  __Pyx_GIVEREF(__pyx_tuple__1002);

  /* "talib/stream.pyx":7657
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__1003 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1003)) __PYX_ERR(0, 7657, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1003);
  __Pyx_GIVEREF(__pyx_tuple__1003);

  /* "talib/stream.pyx":7659
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__1004 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1004)) __PYX_ERR(0, 7659, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1004);
  __Pyx_GIVEREF(__pyx_tuple__1004);

  /* "talib/stream.pyx":7665
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__1005 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1005)) __PYX_ERR(0, 7665, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1005);
  __Pyx_GIVEREF(__pyx_tuple__1005);

  /* "talib/stream.pyx":7667
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_TRANGE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__1006 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1006)) __PYX_ERR(0, 7667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1006);
  __Pyx_GIVEREF(__pyx_tuple__1006);

  /* "talib/stream.pyx":7697
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__1007 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1007)) __PYX_ERR(0, 7697, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1007);
  __Pyx_GIVEREF(__pyx_tuple__1007);

  /* "talib/stream.pyx":7699
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__1008 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1008)) __PYX_ERR(0, 7699, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1008);
  __Pyx_GIVEREF(__pyx_tuple__1008);

  /* "talib/stream.pyx":7733
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__1009 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1009)) __PYX_ERR(0, 7733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1009);
  __Pyx_GIVEREF(__pyx_tuple__1009);

  /* "talib/stream.pyx":7735
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__1010 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1010)) __PYX_ERR(0, 7735, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1010);
  __Pyx_GIVEREF(__pyx_tuple__1010);

  /* "talib/stream.pyx":7769
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__1011 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1011)) __PYX_ERR(0, 7769, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1011);
  __Pyx_GIVEREF(__pyx_tuple__1011);

  /* "talib/stream.pyx":7771
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__1012 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1012)) __PYX_ERR(0, 7771, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1012);
  __Pyx_GIVEREF(__pyx_tuple__1012);

  /* "talib/stream.pyx":7805
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__1013 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1013)) __PYX_ERR(0, 7805, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1013);
  __Pyx_GIVEREF(__pyx_tuple__1013);

  /* "talib/stream.pyx":7807
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__1014 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1014)) __PYX_ERR(0, 7807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1014);
  __Pyx_GIVEREF(__pyx_tuple__1014);

  /* "talib/stream.pyx":7812
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__1015 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1015)) __PYX_ERR(0, 7812, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1015);
  __Pyx_GIVEREF(__pyx_tuple__1015);

  /* "talib/stream.pyx":7814
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__1016 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1016)) __PYX_ERR(0, 7814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1016);
  __Pyx_GIVEREF(__pyx_tuple__1016);

  /* "talib/stream.pyx":7819
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__1017 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1017)) __PYX_ERR(0, 7819, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1017);
  __Pyx_GIVEREF(__pyx_tuple__1017);

  /* "talib/stream.pyx":7821
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__1018 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1018)) __PYX_ERR(0, 7821, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1018);
  __Pyx_GIVEREF(__pyx_tuple__1018);

  /* "talib/stream.pyx":7827
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__1019 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1019)) __PYX_ERR(0, 7827, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1019);
  __Pyx_GIVEREF(__pyx_tuple__1019);

  /* "talib/stream.pyx":7829
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_TYPPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__1020 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1020)) __PYX_ERR(0, 7829, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1020);
  __Pyx_GIVEREF(__pyx_tuple__1020);

  /* "talib/stream.pyx":7863
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__1021 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1021)) __PYX_ERR(0, 7863, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1021);
  __Pyx_GIVEREF(__pyx_tuple__1021);

  /* "talib/stream.pyx":7865
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__1022 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1022)) __PYX_ERR(0, 7865, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1022);
  __Pyx_GIVEREF(__pyx_tuple__1022);

  /* "talib/stream.pyx":7870
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__1023 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1023)) __PYX_ERR(0, 7870, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1023);
  __Pyx_GIVEREF(__pyx_tuple__1023);

  /* "talib/stream.pyx":7872
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__1024 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1024)) __PYX_ERR(0, 7872, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1024);
  __Pyx_GIVEREF(__pyx_tuple__1024);

  /* "talib/stream.pyx":7877
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__1025 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1025)) __PYX_ERR(0, 7877, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1025);
  __Pyx_GIVEREF(__pyx_tuple__1025);

  /* "talib/stream.pyx":7879
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__1026 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1026)) __PYX_ERR(0, 7879, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1026);
  __Pyx_GIVEREF(__pyx_tuple__1026);

  /* "talib/stream.pyx":7885
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__1027 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1027)) __PYX_ERR(0, 7885, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1027);
  __Pyx_GIVEREF(__pyx_tuple__1027);

  /* "talib/stream.pyx":7887
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_ULTOSC( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__1028 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1028)) __PYX_ERR(0, 7887, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1028);
  __Pyx_GIVEREF(__pyx_tuple__1028);

  /* "talib/stream.pyx":7918
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__1029 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1029)) __PYX_ERR(0, 7918, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1029);
  __Pyx_GIVEREF(__pyx_tuple__1029);

  /* "talib/stream.pyx":7920
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__1030 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1030)) __PYX_ERR(0, 7920, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1030);
  __Pyx_GIVEREF(__pyx_tuple__1030);

  /* "talib/stream.pyx":7954
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__1031 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1031)) __PYX_ERR(0, 7954, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1031);
  __Pyx_GIVEREF(__pyx_tuple__1031);

  /* "talib/stream.pyx":7956
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__1032 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1032)) __PYX_ERR(0, 7956, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1032);
  __Pyx_GIVEREF(__pyx_tuple__1032);

  /* "talib/stream.pyx":7961
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__1033 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1033)) __PYX_ERR(0, 7961, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1033);
  __Pyx_GIVEREF(__pyx_tuple__1033);

  /* "talib/stream.pyx":7963
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__1034 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1034)) __PYX_ERR(0, 7963, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1034);
  __Pyx_GIVEREF(__pyx_tuple__1034);

  /* "talib/stream.pyx":7968
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__1035 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1035)) __PYX_ERR(0, 7968, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1035);
  __Pyx_GIVEREF(__pyx_tuple__1035);

  /* "talib/stream.pyx":7970
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__1036 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1036)) __PYX_ERR(0, 7970, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1036);
  __Pyx_GIVEREF(__pyx_tuple__1036);

  /* "talib/stream.pyx":7976
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__1037 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1037)) __PYX_ERR(0, 7976, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1037);
  __Pyx_GIVEREF(__pyx_tuple__1037);

  /* "talib/stream.pyx":7978
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_WCLPRICE( length - 1 , length - 1 , high_data , low_data , close_data , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__1038 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1038)) __PYX_ERR(0, 7978, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1038);
  __Pyx_GIVEREF(__pyx_tuple__1038);

  /* "talib/stream.pyx":8010
 *         double outreal
 *     if PyArray_TYPE(high) != np.NPY_DOUBLE:
 *         raise Exception("high is not double")             # <<<<<<<<<<<<<<
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")
 */
  __pyx_tuple__1039 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1039)) __PYX_ERR(0, 8010, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1039);
  __Pyx_GIVEREF(__pyx_tuple__1039);

  /* "talib/stream.pyx":8012
 *         raise Exception("high is not double")
 *     if high.ndim != 1:
 *         raise Exception("high has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS):
 *         high = PyArray_GETCONTIGUOUS(high)
 */
  __pyx_tuple__1040 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1040)) __PYX_ERR(0, 8012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1040);
  __Pyx_GIVEREF(__pyx_tuple__1040);

  /* "talib/stream.pyx":8017
 *     high_data = <double*>high.data
 *     if PyArray_TYPE(low) != np.NPY_DOUBLE:
 *         raise Exception("low is not double")             # <<<<<<<<<<<<<<
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")
 */
  __pyx_tuple__1041 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1041)) __PYX_ERR(0, 8017, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1041);
  __Pyx_GIVEREF(__pyx_tuple__1041);

  /* "talib/stream.pyx":8019
 *         raise Exception("low is not double")
 *     if low.ndim != 1:
 *         raise Exception("low has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS):
 *         low = PyArray_GETCONTIGUOUS(low)
 */
  __pyx_tuple__1042 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1042)) __PYX_ERR(0, 8019, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1042);
  __Pyx_GIVEREF(__pyx_tuple__1042);

  /* "talib/stream.pyx":8024
 *     low_data = <double*>low.data
 *     if PyArray_TYPE(close) != np.NPY_DOUBLE:
 *         raise Exception("close is not double")             # <<<<<<<<<<<<<<
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")
 */
  __pyx_tuple__1043 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1043)) __PYX_ERR(0, 8024, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1043);
  __Pyx_GIVEREF(__pyx_tuple__1043);

  /* "talib/stream.pyx":8026
 *         raise Exception("close is not double")
 *     if close.ndim != 1:
 *         raise Exception("close has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS):
 *         close = PyArray_GETCONTIGUOUS(close)
 */
  __pyx_tuple__1044 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1044)) __PYX_ERR(0, 8026, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1044);
  __Pyx_GIVEREF(__pyx_tuple__1044);

  /* "talib/stream.pyx":8032
 *     length = high.shape[0]
 *     if length != low.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")
 */
  __pyx_tuple__1045 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1045)) __PYX_ERR(0, 8032, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1045);
  __Pyx_GIVEREF(__pyx_tuple__1045);

  /* "talib/stream.pyx":8034
 *         raise Exception("input lengths are different")
 *     if length != close.shape[0]:
 *         raise Exception("input lengths are different")             # <<<<<<<<<<<<<<
 *     outreal = NaN
 *     retCode = lib.TA_WILLR( length - 1 , length - 1 , high_data , low_data , close_data , timeperiod , &outbegidx , &outnbelement , &outreal )
 */
  __pyx_tuple__1046 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1046)) __PYX_ERR(0, 8034, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1046);
  __Pyx_GIVEREF(__pyx_tuple__1046);

  /* "talib/stream.pyx":8064
 *         double outreal
 *     if PyArray_TYPE(real) != np.NPY_DOUBLE:
 *         raise Exception("real is not double")             # <<<<<<<<<<<<<<
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")
 */
  __pyx_tuple__1047 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1047)) __PYX_ERR(0, 8064, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1047);
  __Pyx_GIVEREF(__pyx_tuple__1047);

  /* "talib/stream.pyx":8066
 *         raise Exception("real is not double")
 *     if real.ndim != 1:
 *         raise Exception("real has wrong dimensions")             # <<<<<<<<<<<<<<
 *     if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS):
 *         real = PyArray_GETCONTIGUOUS(real)
 */
  __pyx_tuple__1048 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1048)) __PYX_ERR(0, 8066, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1048);
  __Pyx_GIVEREF(__pyx_tuple__1048);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":218
 *             if ((flags & pybuf.PyBUF_C_CONTIGUOUS == pybuf.PyBUF_C_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_C_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not C contiguous")             # <<<<<<<<<<<<<<
 * 
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
 */
  __pyx_tuple__1049 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__1049)) __PYX_ERR(1, 218, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1049);
  __Pyx_GIVEREF(__pyx_tuple__1049);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":222
 *             if ((flags & pybuf.PyBUF_F_CONTIGUOUS == pybuf.PyBUF_F_CONTIGUOUS)
 *                 and not PyArray_CHKFLAGS(self, NPY_F_CONTIGUOUS)):
 *                 raise ValueError(u"ndarray is not Fortran contiguous")             # <<<<<<<<<<<<<<
 * 
 *             info.buf = PyArray_DATA(self)
 */
  __pyx_tuple__1050 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__1050)) __PYX_ERR(1, 222, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1050);
  __Pyx_GIVEREF(__pyx_tuple__1050);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":259
 *                 if ((descr.byteorder == c'>' and little_endian) or
 *                     (descr.byteorder == c'<' and not little_endian)):
 *                     raise ValueError(u"Non-native byte order not supported")             # <<<<<<<<<<<<<<
 *                 if   t == NPY_BYTE:        f = "b"
 *                 elif t == NPY_UBYTE:       f = "B"
 */
  __pyx_tuple__1051 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__1051)) __PYX_ERR(1, 259, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1051);
  __Pyx_GIVEREF(__pyx_tuple__1051);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799
 * 
 *         if (end - f) - <int>(new_offset - offset[0]) < 15:
 *             raise RuntimeError(u"Format string allocated too short, see comment in numpy.pxd")             # <<<<<<<<<<<<<<
 * 
 *         if ((child.byteorder == c'>' and little_endian) or
 */
  __pyx_tuple__1052 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__1052)) __PYX_ERR(1, 799, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1052);
  __Pyx_GIVEREF(__pyx_tuple__1052);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":803
 *         if ((child.byteorder == c'>' and little_endian) or
 *             (child.byteorder == c'<' and not little_endian)):
 *             raise ValueError(u"Non-native byte order not supported")             # <<<<<<<<<<<<<<
 *             # One could encode it in the format string and have Cython
 *             # complain instead, BUT: < and > in format strings also imply
 */
  __pyx_tuple__1053 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__1053)) __PYX_ERR(1, 803, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1053);
  __Pyx_GIVEREF(__pyx_tuple__1053);

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":823
 *             t = child.type_num
 *             if end - f < 5:
 *                 raise RuntimeError(u"Format string allocated too short.")             # <<<<<<<<<<<<<<
 * 
 *             # Until ticket #99 is fixed, use integers to avoid warnings
 */
  __pyx_tuple__1054 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__1054)) __PYX_ERR(1, 823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1054);
  __Pyx_GIVEREF(__pyx_tuple__1054);

  /* "talib/stream.pyx":24
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ACOS( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ACOS(real)
 * 
 */
  __pyx_tuple__1055 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1055)) __PYX_ERR(0, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1055);
  __Pyx_GIVEREF(__pyx_tuple__1055);
  __pyx_codeobj__1056 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1055, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ACOS, 24, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1056)) __PYX_ERR(0, 24, __pyx_L1_error)

  /* "talib/stream.pyx":58
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AD( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None ):             # <<<<<<<<<<<<<<
 *     """ AD(high, low, close, volume)
 * 
 */
  __pyx_tuple__1057 = PyTuple_Pack(17, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_volume, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_volume_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1057)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1057);
  __Pyx_GIVEREF(__pyx_tuple__1057);
  __pyx_codeobj__1058 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1057, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_AD, 58, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1058)) __PYX_ERR(0, 58, __pyx_L1_error)

  /* "talib/stream.pyx":122
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADD( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ ADD(real0, real1)
 * 
 */
  __pyx_tuple__1059 = PyTuple_Pack(13, __pyx_n_s_real0, __pyx_n_s_real1, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real0_data, __pyx_n_s_real1_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1059)) __PYX_ERR(0, 122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1059);
  __Pyx_GIVEREF(__pyx_tuple__1059);
  __pyx_codeobj__1060 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1059, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ADD, 122, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1060)) __PYX_ERR(0, 122, __pyx_L1_error)

  /* "talib/stream.pyx":167
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADOSC( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None , int fastperiod=-2**31 , int slowperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADOSC(high, low, close, volume[, fastperiod=?, slowperiod=?])
 * 
 */
  __pyx_tuple__1061 = PyTuple_Pack(19, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_volume, __pyx_n_s_fastperiod, __pyx_n_s_slowperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_volume_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1061)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1061);
  __Pyx_GIVEREF(__pyx_tuple__1061);
  __pyx_codeobj__1062 = (PyObject*)__Pyx_PyCode_New(6, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1061, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ADOSC, 167, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1062)) __PYX_ERR(0, 167, __pyx_L1_error)

  /* "talib/stream.pyx":234
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADX( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADX(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_tuple__1063 = PyTuple_Pack(16, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1063)) __PYX_ERR(0, 234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1063);
  __Pyx_GIVEREF(__pyx_tuple__1063);
  __pyx_codeobj__1064 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1063, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ADX, 234, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1064)) __PYX_ERR(0, 234, __pyx_L1_error)

  /* "talib/stream.pyx":290
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADXR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADXR(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_tuple__1065 = PyTuple_Pack(16, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1065)) __PYX_ERR(0, 290, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1065);
  __Pyx_GIVEREF(__pyx_tuple__1065);
  __pyx_codeobj__1066 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1065, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ADXR, 290, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1066)) __PYX_ERR(0, 290, __pyx_L1_error)

  /* "talib/stream.pyx":346
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def APO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ APO(real[, fastperiod=?, slowperiod=?, matype=?])
 * 
 */
  __pyx_tuple__1067 = PyTuple_Pack(14, __pyx_n_s_real, __pyx_n_s_fastperiod, __pyx_n_s_slowperiod, __pyx_n_s_matype, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1067)) __PYX_ERR(0, 346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1067);
  __Pyx_GIVEREF(__pyx_tuple__1067);
  __pyx_codeobj__1068 = (PyObject*)__Pyx_PyCode_New(4, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1067, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_APO, 346, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1068)) __PYX_ERR(0, 346, __pyx_L1_error)

  /* "talib/stream.pyx":384
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AROON( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ AROON(high, low[, timeperiod=?])
 * 
 */
  __pyx_tuple__1069 = PyTuple_Pack(15, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outaroondown, __pyx_n_s_outaroonup); if (unlikely(!__pyx_tuple__1069)) __PYX_ERR(0, 384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1069);
  __Pyx_GIVEREF(__pyx_tuple__1069);
  __pyx_codeobj__1070 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1069, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_AROON, 384, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1070)) __PYX_ERR(0, 384, __pyx_L1_error)

  /* "talib/stream.pyx":433
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AROONOSC( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ AROONOSC(high, low[, timeperiod=?])
 * 
 */
  __pyx_tuple__1071 = PyTuple_Pack(14, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1071)) __PYX_ERR(0, 433, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1071);
  __Pyx_GIVEREF(__pyx_tuple__1071);
  __pyx_codeobj__1072 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1071, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_AROONOSC, 433, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1072)) __PYX_ERR(0, 433, __pyx_L1_error)

  /* "talib/stream.pyx":479
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ASIN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ASIN(real)
 * 
 */
  __pyx_tuple__1073 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1073)) __PYX_ERR(0, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1073);
  __Pyx_GIVEREF(__pyx_tuple__1073);
  __pyx_codeobj__1074 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1073, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ASIN, 479, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1074)) __PYX_ERR(0, 479, __pyx_L1_error)

  /* "talib/stream.pyx":513
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ATAN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ATAN(real)
 * 
 */
  __pyx_tuple__1075 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1075)) __PYX_ERR(0, 513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1075);
  __Pyx_GIVEREF(__pyx_tuple__1075);
  __pyx_codeobj__1076 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1075, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ATAN, 513, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1076)) __PYX_ERR(0, 513, __pyx_L1_error)

  /* "talib/stream.pyx":547
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ATR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ATR(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_tuple__1077 = PyTuple_Pack(16, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1077)) __PYX_ERR(0, 547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1077);
  __Pyx_GIVEREF(__pyx_tuple__1077);
  __pyx_codeobj__1078 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1077, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ATR, 547, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1078)) __PYX_ERR(0, 547, __pyx_L1_error)

  /* "talib/stream.pyx":603
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AVGPRICE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ AVGPRICE(open, high, low, close)
 * 
 */
  __pyx_tuple__1079 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1079)) __PYX_ERR(0, 603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1079);
  __Pyx_GIVEREF(__pyx_tuple__1079);
  __pyx_codeobj__1080 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1079, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_AVGPRICE, 603, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1080)) __PYX_ERR(0, 603, __pyx_L1_error)

  /* "talib/stream.pyx":667
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BBANDS( np.ndarray real not None , int timeperiod=-2**31 , double nbdevup=-4e37 , double nbdevdn=-4e37 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ BBANDS(real[, timeperiod=?, nbdevup=?, nbdevdn=?, matype=?])
 * 
 */
  __pyx_tuple__1081 = PyTuple_Pack(17, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_nbdevup, __pyx_n_s_nbdevdn, __pyx_n_s_matype, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outrealupperband, __pyx_n_s_outrealmiddleband, __pyx_n_s_outreallowerband); if (unlikely(!__pyx_tuple__1081)) __PYX_ERR(0, 667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1081);
  __Pyx_GIVEREF(__pyx_tuple__1081);
  __pyx_codeobj__1082 = (PyObject*)__Pyx_PyCode_New(5, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1081, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_BBANDS, 667, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1082)) __PYX_ERR(0, 667, __pyx_L1_error)

  /* "talib/stream.pyx":712
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BETA( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ BETA(real0, real1[, timeperiod=?])
 * 
 */
  __pyx_tuple__1083 = PyTuple_Pack(14, __pyx_n_s_real0, __pyx_n_s_real1, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real0_data, __pyx_n_s_real1_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1083)) __PYX_ERR(0, 712, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1083);
  __Pyx_GIVEREF(__pyx_tuple__1083);
  __pyx_codeobj__1084 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1083, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_BETA, 712, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1084)) __PYX_ERR(0, 712, __pyx_L1_error)

  /* "talib/stream.pyx":759
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BOP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ BOP(open, high, low, close)
 * 
 */
  __pyx_tuple__1085 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1085)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1085);
  __Pyx_GIVEREF(__pyx_tuple__1085);
  __pyx_codeobj__1086 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1085, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_BOP, 759, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1086)) __PYX_ERR(0, 759, __pyx_L1_error)

  /* "talib/stream.pyx":823
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CCI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CCI(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_tuple__1087 = PyTuple_Pack(16, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1087)) __PYX_ERR(0, 823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1087);
  __Pyx_GIVEREF(__pyx_tuple__1087);
  __pyx_codeobj__1088 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1087, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CCI, 823, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1088)) __PYX_ERR(0, 823, __pyx_L1_error)

  /* "talib/stream.pyx":879
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL2CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL2CROWS(open, high, low, close)
 * 
 */
  __pyx_tuple__1089 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1089)) __PYX_ERR(0, 879, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1089);
  __Pyx_GIVEREF(__pyx_tuple__1089);
  __pyx_codeobj__1090 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1089, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDL2CROWS, 879, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1090)) __PYX_ERR(0, 879, __pyx_L1_error)

  /* "talib/stream.pyx":943
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3BLACKCROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3BLACKCROWS(open, high, low, close)
 * 
 */
  __pyx_tuple__1091 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1091)) __PYX_ERR(0, 943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1091);
  __Pyx_GIVEREF(__pyx_tuple__1091);
  __pyx_codeobj__1092 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1091, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDL3BLACKCROWS, 943, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1092)) __PYX_ERR(0, 943, __pyx_L1_error)

  /* "talib/stream.pyx":1007
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3INSIDE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3INSIDE(open, high, low, close)
 * 
 */
  __pyx_tuple__1093 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1093)) __PYX_ERR(0, 1007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1093);
  __Pyx_GIVEREF(__pyx_tuple__1093);
  __pyx_codeobj__1094 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1093, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDL3INSIDE, 1007, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1094)) __PYX_ERR(0, 1007, __pyx_L1_error)

  /* "talib/stream.pyx":1071
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3LINESTRIKE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3LINESTRIKE(open, high, low, close)
 * 
 */
  __pyx_tuple__1095 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1095)) __PYX_ERR(0, 1071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1095);
  __Pyx_GIVEREF(__pyx_tuple__1095);
  __pyx_codeobj__1096 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1095, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDL3LINESTRIKE, 1071, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1096)) __PYX_ERR(0, 1071, __pyx_L1_error)

  /* "talib/stream.pyx":1135
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3OUTSIDE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3OUTSIDE(open, high, low, close)
 * 
 */
  __pyx_tuple__1097 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1097)) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1097);
  __Pyx_GIVEREF(__pyx_tuple__1097);
  __pyx_codeobj__1098 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1097, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDL3OUTSIDE, 1135, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1098)) __PYX_ERR(0, 1135, __pyx_L1_error)

  /* "talib/stream.pyx":1199
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3STARSINSOUTH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3STARSINSOUTH(open, high, low, close)
 * 
 */
  __pyx_tuple__1099 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1099)) __PYX_ERR(0, 1199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1099);
  __Pyx_GIVEREF(__pyx_tuple__1099);
  __pyx_codeobj__1100 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1099, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDL3STARSINSOUTH, 1199, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1100)) __PYX_ERR(0, 1199, __pyx_L1_error)

  /* "talib/stream.pyx":1263
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3WHITESOLDIERS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3WHITESOLDIERS(open, high, low, close)
 * 
 */
  __pyx_tuple__1101 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1101)) __PYX_ERR(0, 1263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1101);
  __Pyx_GIVEREF(__pyx_tuple__1101);
  __pyx_codeobj__1102 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1101, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDL3WHITESOLDIERS, 1263, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1102)) __PYX_ERR(0, 1263, __pyx_L1_error)

  /* "talib/stream.pyx":1327
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLABANDONEDBABY( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLABANDONEDBABY(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_tuple__1103 = PyTuple_Pack(18, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_penetration, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1103)) __PYX_ERR(0, 1327, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1103);
  __Pyx_GIVEREF(__pyx_tuple__1103);
  __pyx_codeobj__1104 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1103, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLABANDONEDBABY, 1327, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1104)) __PYX_ERR(0, 1327, __pyx_L1_error)

  /* "talib/stream.pyx":1393
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLADVANCEBLOCK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLADVANCEBLOCK(open, high, low, close)
 * 
 */
  __pyx_tuple__1105 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1105)) __PYX_ERR(0, 1393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1105);
  __Pyx_GIVEREF(__pyx_tuple__1105);
  __pyx_codeobj__1106 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1105, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLADVANCEBLOCK, 1393, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1106)) __PYX_ERR(0, 1393, __pyx_L1_error)

  /* "talib/stream.pyx":1457
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLBELTHOLD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLBELTHOLD(open, high, low, close)
 * 
 */
  __pyx_tuple__1107 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1107)) __PYX_ERR(0, 1457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1107);
  __Pyx_GIVEREF(__pyx_tuple__1107);
  __pyx_codeobj__1108 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1107, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLBELTHOLD, 1457, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1108)) __PYX_ERR(0, 1457, __pyx_L1_error)

  /* "talib/stream.pyx":1521
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLBREAKAWAY( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLBREAKAWAY(open, high, low, close)
 * 
 */
  __pyx_tuple__1109 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1109)) __PYX_ERR(0, 1521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1109);
  __Pyx_GIVEREF(__pyx_tuple__1109);
  __pyx_codeobj__1110 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1109, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLBREAKAWAY, 1521, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1110)) __PYX_ERR(0, 1521, __pyx_L1_error)

  /* "talib/stream.pyx":1585
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCLOSINGMARUBOZU( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCLOSINGMARUBOZU(open, high, low, close)
 * 
 */
  __pyx_tuple__1111 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1111)) __PYX_ERR(0, 1585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1111);
  __Pyx_GIVEREF(__pyx_tuple__1111);
  __pyx_codeobj__1112 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1111, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLCLOSINGMARUBOZU, 1585, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1112)) __PYX_ERR(0, 1585, __pyx_L1_error)

  /* "talib/stream.pyx":1649
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCONCEALBABYSWALL( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCONCEALBABYSWALL(open, high, low, close)
 * 
 */
  __pyx_tuple__1113 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1113)) __PYX_ERR(0, 1649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1113);
  __Pyx_GIVEREF(__pyx_tuple__1113);
  __pyx_codeobj__1114 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1113, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLCONCEALBABYSWALL, 1649, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1114)) __PYX_ERR(0, 1649, __pyx_L1_error)

  /* "talib/stream.pyx":1713
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCOUNTERATTACK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCOUNTERATTACK(open, high, low, close)
 * 
 */
  __pyx_tuple__1115 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1115)) __PYX_ERR(0, 1713, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1115);
  __Pyx_GIVEREF(__pyx_tuple__1115);
  __pyx_codeobj__1116 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1115, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLCOUNTERATTACK, 1713, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1116)) __PYX_ERR(0, 1713, __pyx_L1_error)

  /* "talib/stream.pyx":1777
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDARKCLOUDCOVER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.5 ):             # <<<<<<<<<<<<<<
 *     """ CDLDARKCLOUDCOVER(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_tuple__1117 = PyTuple_Pack(18, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_penetration, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1117)) __PYX_ERR(0, 1777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1117);
  __Pyx_GIVEREF(__pyx_tuple__1117);
  __pyx_codeobj__1118 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1117, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLDARKCLOUDCOVER, 1777, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1118)) __PYX_ERR(0, 1777, __pyx_L1_error)

  /* "talib/stream.pyx":1843
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDOJI(open, high, low, close)
 * 
 */
  __pyx_tuple__1119 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1119)) __PYX_ERR(0, 1843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1119);
  __Pyx_GIVEREF(__pyx_tuple__1119);
  __pyx_codeobj__1120 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1119, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLDOJI, 1843, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1120)) __PYX_ERR(0, 1843, __pyx_L1_error)

  /* "talib/stream.pyx":1907
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDOJISTAR(open, high, low, close)
 * 
 */
  __pyx_tuple__1121 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1121)) __PYX_ERR(0, 1907, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1121);
  __Pyx_GIVEREF(__pyx_tuple__1121);
  __pyx_codeobj__1122 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1121, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLDOJISTAR, 1907, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1122)) __PYX_ERR(0, 1907, __pyx_L1_error)

  /* "talib/stream.pyx":1971
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDRAGONFLYDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDRAGONFLYDOJI(open, high, low, close)
 * 
 */
  __pyx_tuple__1123 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1123)) __PYX_ERR(0, 1971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1123);
  __Pyx_GIVEREF(__pyx_tuple__1123);
  __pyx_codeobj__1124 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1123, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLDRAGONFLYDOJI, 1971, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1124)) __PYX_ERR(0, 1971, __pyx_L1_error)

  /* "talib/stream.pyx":2035
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLENGULFING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLENGULFING(open, high, low, close)
 * 
 */
  __pyx_tuple__1125 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1125)) __PYX_ERR(0, 2035, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1125);
  __Pyx_GIVEREF(__pyx_tuple__1125);
  __pyx_codeobj__1126 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1125, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLENGULFING, 2035, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1126)) __PYX_ERR(0, 2035, __pyx_L1_error)

  /* "talib/stream.pyx":2099
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLEVENINGDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLEVENINGDOJISTAR(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_tuple__1127 = PyTuple_Pack(18, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_penetration, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1127)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1127);
  __Pyx_GIVEREF(__pyx_tuple__1127);
  __pyx_codeobj__1128 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1127, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLEVENINGDOJISTAR, 2099, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1128)) __PYX_ERR(0, 2099, __pyx_L1_error)

  /* "talib/stream.pyx":2165
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLEVENINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLEVENINGSTAR(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_tuple__1129 = PyTuple_Pack(18, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_penetration, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1129)) __PYX_ERR(0, 2165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1129);
  __Pyx_GIVEREF(__pyx_tuple__1129);
  __pyx_codeobj__1130 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1129, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLEVENINGSTAR, 2165, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1130)) __PYX_ERR(0, 2165, __pyx_L1_error)

  /* "talib/stream.pyx":2231
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLGAPSIDESIDEWHITE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLGAPSIDESIDEWHITE(open, high, low, close)
 * 
 */
  __pyx_tuple__1131 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1131)) __PYX_ERR(0, 2231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1131);
  __Pyx_GIVEREF(__pyx_tuple__1131);
  __pyx_codeobj__1132 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1131, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLGAPSIDESIDEWHITE, 2231, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1132)) __PYX_ERR(0, 2231, __pyx_L1_error)

  /* "talib/stream.pyx":2295
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLGRAVESTONEDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLGRAVESTONEDOJI(open, high, low, close)
 * 
 */
  __pyx_tuple__1133 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1133)) __PYX_ERR(0, 2295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1133);
  __Pyx_GIVEREF(__pyx_tuple__1133);
  __pyx_codeobj__1134 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1133, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLGRAVESTONEDOJI, 2295, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1134)) __PYX_ERR(0, 2295, __pyx_L1_error)

  /* "talib/stream.pyx":2359
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHAMMER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHAMMER(open, high, low, close)
 * 
 */
  __pyx_tuple__1135 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1135)) __PYX_ERR(0, 2359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1135);
  __Pyx_GIVEREF(__pyx_tuple__1135);
  __pyx_codeobj__1136 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1135, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLHAMMER, 2359, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1136)) __PYX_ERR(0, 2359, __pyx_L1_error)

  /* "talib/stream.pyx":2423
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHANGINGMAN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHANGINGMAN(open, high, low, close)
 * 
 */
  __pyx_tuple__1137 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1137)) __PYX_ERR(0, 2423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1137);
  __Pyx_GIVEREF(__pyx_tuple__1137);
  __pyx_codeobj__1138 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1137, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLHANGINGMAN, 2423, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1138)) __PYX_ERR(0, 2423, __pyx_L1_error)

  /* "talib/stream.pyx":2487
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHARAMI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHARAMI(open, high, low, close)
 * 
 */
  __pyx_tuple__1139 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1139)) __PYX_ERR(0, 2487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1139);
  __Pyx_GIVEREF(__pyx_tuple__1139);
  __pyx_codeobj__1140 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1139, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLHARAMI, 2487, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1140)) __PYX_ERR(0, 2487, __pyx_L1_error)

  /* "talib/stream.pyx":2551
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHARAMICROSS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHARAMICROSS(open, high, low, close)
 * 
 */
  __pyx_tuple__1141 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1141)) __PYX_ERR(0, 2551, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1141);
  __Pyx_GIVEREF(__pyx_tuple__1141);
  __pyx_codeobj__1142 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1141, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLHARAMICROSS, 2551, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1142)) __PYX_ERR(0, 2551, __pyx_L1_error)

  /* "talib/stream.pyx":2615
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIGHWAVE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIGHWAVE(open, high, low, close)
 * 
 */
  __pyx_tuple__1143 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1143)) __PYX_ERR(0, 2615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1143);
  __Pyx_GIVEREF(__pyx_tuple__1143);
  __pyx_codeobj__1144 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1143, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLHIGHWAVE, 2615, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1144)) __PYX_ERR(0, 2615, __pyx_L1_error)

  /* "talib/stream.pyx":2679
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIKKAKE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIKKAKE(open, high, low, close)
 * 
 */
  __pyx_tuple__1145 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1145)) __PYX_ERR(0, 2679, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1145);
  __Pyx_GIVEREF(__pyx_tuple__1145);
  __pyx_codeobj__1146 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1145, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLHIKKAKE, 2679, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1146)) __PYX_ERR(0, 2679, __pyx_L1_error)

  /* "talib/stream.pyx":2743
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIKKAKEMOD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIKKAKEMOD(open, high, low, close)
 * 
 */
  __pyx_tuple__1147 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1147)) __PYX_ERR(0, 2743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1147);
  __Pyx_GIVEREF(__pyx_tuple__1147);
  __pyx_codeobj__1148 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1147, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLHIKKAKEMOD, 2743, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1148)) __PYX_ERR(0, 2743, __pyx_L1_error)

  /* "talib/stream.pyx":2807
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHOMINGPIGEON( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHOMINGPIGEON(open, high, low, close)
 * 
 */
  __pyx_tuple__1149 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1149)) __PYX_ERR(0, 2807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1149);
  __Pyx_GIVEREF(__pyx_tuple__1149);
  __pyx_codeobj__1150 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1149, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLHOMINGPIGEON, 2807, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1150)) __PYX_ERR(0, 2807, __pyx_L1_error)

  /* "talib/stream.pyx":2871
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLIDENTICAL3CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLIDENTICAL3CROWS(open, high, low, close)
 * 
 */
  __pyx_tuple__1151 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1151)) __PYX_ERR(0, 2871, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1151);
  __Pyx_GIVEREF(__pyx_tuple__1151);
  __pyx_codeobj__1152 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1151, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLIDENTICAL3CROWS, 2871, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1152)) __PYX_ERR(0, 2871, __pyx_L1_error)

  /* "talib/stream.pyx":2935
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLINNECK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLINNECK(open, high, low, close)
 * 
 */
  __pyx_tuple__1153 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1153)) __PYX_ERR(0, 2935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1153);
  __Pyx_GIVEREF(__pyx_tuple__1153);
  __pyx_codeobj__1154 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1153, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLINNECK, 2935, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1154)) __PYX_ERR(0, 2935, __pyx_L1_error)

  /* "talib/stream.pyx":2999
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLINVERTEDHAMMER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLINVERTEDHAMMER(open, high, low, close)
 * 
 */
  __pyx_tuple__1155 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1155)) __PYX_ERR(0, 2999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1155);
  __Pyx_GIVEREF(__pyx_tuple__1155);
  __pyx_codeobj__1156 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1155, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLINVERTEDHAMMER, 2999, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1156)) __PYX_ERR(0, 2999, __pyx_L1_error)

  /* "talib/stream.pyx":3063
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLKICKING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLKICKING(open, high, low, close)
 * 
 */
  __pyx_tuple__1157 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1157)) __PYX_ERR(0, 3063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1157);
  __Pyx_GIVEREF(__pyx_tuple__1157);
  __pyx_codeobj__1158 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1157, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLKICKING, 3063, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1158)) __PYX_ERR(0, 3063, __pyx_L1_error)

  /* "talib/stream.pyx":3127
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLKICKINGBYLENGTH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLKICKINGBYLENGTH(open, high, low, close)
 * 
 */
  __pyx_tuple__1159 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1159)) __PYX_ERR(0, 3127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1159);
  __Pyx_GIVEREF(__pyx_tuple__1159);
  __pyx_codeobj__1160 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1159, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLKICKINGBYLENGTH, 3127, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1160)) __PYX_ERR(0, 3127, __pyx_L1_error)

  /* "talib/stream.pyx":3191
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLADDERBOTTOM( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLADDERBOTTOM(open, high, low, close)
 * 
 */
  __pyx_tuple__1161 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1161)) __PYX_ERR(0, 3191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1161);
  __Pyx_GIVEREF(__pyx_tuple__1161);
  __pyx_codeobj__1162 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1161, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLLADDERBOTTOM, 3191, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1162)) __PYX_ERR(0, 3191, __pyx_L1_error)

  /* "talib/stream.pyx":3255
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLONGLEGGEDDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLONGLEGGEDDOJI(open, high, low, close)
 * 
 */
  __pyx_tuple__1163 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1163)) __PYX_ERR(0, 3255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1163);
  __Pyx_GIVEREF(__pyx_tuple__1163);
  __pyx_codeobj__1164 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1163, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLLONGLEGGEDDOJI, 3255, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1164)) __PYX_ERR(0, 3255, __pyx_L1_error)

  /* "talib/stream.pyx":3319
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLONGLINE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLONGLINE(open, high, low, close)
 * 
 */
  __pyx_tuple__1165 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1165)) __PYX_ERR(0, 3319, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1165);
  __Pyx_GIVEREF(__pyx_tuple__1165);
  __pyx_codeobj__1166 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1165, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLLONGLINE, 3319, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1166)) __PYX_ERR(0, 3319, __pyx_L1_error)

  /* "talib/stream.pyx":3383
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMARUBOZU( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLMARUBOZU(open, high, low, close)
 * 
 */
  __pyx_tuple__1167 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1167)) __PYX_ERR(0, 3383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1167);
  __Pyx_GIVEREF(__pyx_tuple__1167);
  __pyx_codeobj__1168 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1167, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLMARUBOZU, 3383, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1168)) __PYX_ERR(0, 3383, __pyx_L1_error)

  /* "talib/stream.pyx":3447
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMATCHINGLOW( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLMATCHINGLOW(open, high, low, close)
 * 
 */
  __pyx_tuple__1169 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1169)) __PYX_ERR(0, 3447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1169);
  __Pyx_GIVEREF(__pyx_tuple__1169);
  __pyx_codeobj__1170 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1169, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLMATCHINGLOW, 3447, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1170)) __PYX_ERR(0, 3447, __pyx_L1_error)

  /* "talib/stream.pyx":3511
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMATHOLD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.5 ):             # <<<<<<<<<<<<<<
 *     """ CDLMATHOLD(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_tuple__1171 = PyTuple_Pack(18, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_penetration, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1171)) __PYX_ERR(0, 3511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1171);
  __Pyx_GIVEREF(__pyx_tuple__1171);
  __pyx_codeobj__1172 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1171, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLMATHOLD, 3511, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1172)) __PYX_ERR(0, 3511, __pyx_L1_error)

  /* "talib/stream.pyx":3577
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMORNINGDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLMORNINGDOJISTAR(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_tuple__1173 = PyTuple_Pack(18, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_penetration, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1173)) __PYX_ERR(0, 3577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1173);
  __Pyx_GIVEREF(__pyx_tuple__1173);
  __pyx_codeobj__1174 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1173, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLMORNINGDOJISTAR, 3577, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1174)) __PYX_ERR(0, 3577, __pyx_L1_error)

  /* "talib/stream.pyx":3643
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMORNINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLMORNINGSTAR(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_tuple__1175 = PyTuple_Pack(18, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_penetration, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1175)) __PYX_ERR(0, 3643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1175);
  __Pyx_GIVEREF(__pyx_tuple__1175);
  __pyx_codeobj__1176 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1175, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLMORNINGSTAR, 3643, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1176)) __PYX_ERR(0, 3643, __pyx_L1_error)

  /* "talib/stream.pyx":3709
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLONNECK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLONNECK(open, high, low, close)
 * 
 */
  __pyx_tuple__1177 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1177)) __PYX_ERR(0, 3709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1177);
  __Pyx_GIVEREF(__pyx_tuple__1177);
  __pyx_codeobj__1178 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1177, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLONNECK, 3709, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1178)) __PYX_ERR(0, 3709, __pyx_L1_error)

  /* "talib/stream.pyx":3773
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLPIERCING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLPIERCING(open, high, low, close)
 * 
 */
  __pyx_tuple__1179 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1179)) __PYX_ERR(0, 3773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1179);
  __Pyx_GIVEREF(__pyx_tuple__1179);
  __pyx_codeobj__1180 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1179, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLPIERCING, 3773, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1180)) __PYX_ERR(0, 3773, __pyx_L1_error)

  /* "talib/stream.pyx":3837
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLRICKSHAWMAN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLRICKSHAWMAN(open, high, low, close)
 * 
 */
  __pyx_tuple__1181 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1181)) __PYX_ERR(0, 3837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1181);
  __Pyx_GIVEREF(__pyx_tuple__1181);
  __pyx_codeobj__1182 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1181, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLRICKSHAWMAN, 3837, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1182)) __PYX_ERR(0, 3837, __pyx_L1_error)

  /* "talib/stream.pyx":3901
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLRISEFALL3METHODS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLRISEFALL3METHODS(open, high, low, close)
 * 
 */
  __pyx_tuple__1183 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1183)) __PYX_ERR(0, 3901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1183);
  __Pyx_GIVEREF(__pyx_tuple__1183);
  __pyx_codeobj__1184 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1183, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLRISEFALL3METHODS, 3901, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1184)) __PYX_ERR(0, 3901, __pyx_L1_error)

  /* "talib/stream.pyx":3965
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSEPARATINGLINES( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSEPARATINGLINES(open, high, low, close)
 * 
 */
  __pyx_tuple__1185 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1185)) __PYX_ERR(0, 3965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1185);
  __Pyx_GIVEREF(__pyx_tuple__1185);
  __pyx_codeobj__1186 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1185, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLSEPARATINGLINES, 3965, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1186)) __PYX_ERR(0, 3965, __pyx_L1_error)

  /* "talib/stream.pyx":4029
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSHOOTINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSHOOTINGSTAR(open, high, low, close)
 * 
 */
  __pyx_tuple__1187 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1187)) __PYX_ERR(0, 4029, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1187);
  __Pyx_GIVEREF(__pyx_tuple__1187);
  __pyx_codeobj__1188 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1187, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLSHOOTINGSTAR, 4029, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1188)) __PYX_ERR(0, 4029, __pyx_L1_error)

  /* "talib/stream.pyx":4093
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSHORTLINE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSHORTLINE(open, high, low, close)
 * 
 */
  __pyx_tuple__1189 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1189)) __PYX_ERR(0, 4093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1189);
  __Pyx_GIVEREF(__pyx_tuple__1189);
  __pyx_codeobj__1190 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1189, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLSHORTLINE, 4093, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1190)) __PYX_ERR(0, 4093, __pyx_L1_error)

  /* "talib/stream.pyx":4157
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSPINNINGTOP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSPINNINGTOP(open, high, low, close)
 * 
 */
  __pyx_tuple__1191 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1191)) __PYX_ERR(0, 4157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1191);
  __Pyx_GIVEREF(__pyx_tuple__1191);
  __pyx_codeobj__1192 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1191, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLSPINNINGTOP, 4157, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1192)) __PYX_ERR(0, 4157, __pyx_L1_error)

  /* "talib/stream.pyx":4221
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSTALLEDPATTERN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSTALLEDPATTERN(open, high, low, close)
 * 
 */
  __pyx_tuple__1193 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1193)) __PYX_ERR(0, 4221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1193);
  __Pyx_GIVEREF(__pyx_tuple__1193);
  __pyx_codeobj__1194 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1193, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLSTALLEDPATTERN, 4221, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1194)) __PYX_ERR(0, 4221, __pyx_L1_error)

  /* "talib/stream.pyx":4285
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSTICKSANDWICH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSTICKSANDWICH(open, high, low, close)
 * 
 */
  __pyx_tuple__1195 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1195)) __PYX_ERR(0, 4285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1195);
  __Pyx_GIVEREF(__pyx_tuple__1195);
  __pyx_codeobj__1196 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1195, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLSTICKSANDWICH, 4285, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1196)) __PYX_ERR(0, 4285, __pyx_L1_error)

  /* "talib/stream.pyx":4349
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTAKURI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTAKURI(open, high, low, close)
 * 
 */
  __pyx_tuple__1197 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1197)) __PYX_ERR(0, 4349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1197);
  __Pyx_GIVEREF(__pyx_tuple__1197);
  __pyx_codeobj__1198 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1197, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLTAKURI, 4349, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1198)) __PYX_ERR(0, 4349, __pyx_L1_error)

  /* "talib/stream.pyx":4413
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTASUKIGAP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTASUKIGAP(open, high, low, close)
 * 
 */
  __pyx_tuple__1199 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1199)) __PYX_ERR(0, 4413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1199);
  __Pyx_GIVEREF(__pyx_tuple__1199);
  __pyx_codeobj__1200 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1199, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLTASUKIGAP, 4413, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1200)) __PYX_ERR(0, 4413, __pyx_L1_error)

  /* "talib/stream.pyx":4477
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTHRUSTING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTHRUSTING(open, high, low, close)
 * 
 */
  __pyx_tuple__1201 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1201)) __PYX_ERR(0, 4477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1201);
  __Pyx_GIVEREF(__pyx_tuple__1201);
  __pyx_codeobj__1202 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1201, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLTHRUSTING, 4477, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1202)) __PYX_ERR(0, 4477, __pyx_L1_error)

  /* "talib/stream.pyx":4541
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTRISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTRISTAR(open, high, low, close)
 * 
 */
  __pyx_tuple__1203 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1203)) __PYX_ERR(0, 4541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1203);
  __Pyx_GIVEREF(__pyx_tuple__1203);
  __pyx_codeobj__1204 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1203, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLTRISTAR, 4541, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1204)) __PYX_ERR(0, 4541, __pyx_L1_error)

  /* "talib/stream.pyx":4605
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLUNIQUE3RIVER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLUNIQUE3RIVER(open, high, low, close)
 * 
 */
  __pyx_tuple__1205 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1205)) __PYX_ERR(0, 4605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1205);
  __Pyx_GIVEREF(__pyx_tuple__1205);
  __pyx_codeobj__1206 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1205, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLUNIQUE3RIVER, 4605, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1206)) __PYX_ERR(0, 4605, __pyx_L1_error)

  /* "talib/stream.pyx":4669
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLUPSIDEGAP2CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLUPSIDEGAP2CROWS(open, high, low, close)
 * 
 */
  __pyx_tuple__1207 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1207)) __PYX_ERR(0, 4669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1207);
  __Pyx_GIVEREF(__pyx_tuple__1207);
  __pyx_codeobj__1208 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1207, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLUPSIDEGAP2CROWS, 4669, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1208)) __PYX_ERR(0, 4669, __pyx_L1_error)

  /* "talib/stream.pyx":4733
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLXSIDEGAP3METHODS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLXSIDEGAP3METHODS(open, high, low, close)
 * 
 */
  __pyx_tuple__1209 = PyTuple_Pack(17, __pyx_n_s_open, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_open_data, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1209)) __PYX_ERR(0, 4733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1209);
  __Pyx_GIVEREF(__pyx_tuple__1209);
  __pyx_codeobj__1210 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1209, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CDLXSIDEGAP3METHODS, 4733, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1210)) __PYX_ERR(0, 4733, __pyx_L1_error)

  /* "talib/stream.pyx":4797
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CEIL( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ CEIL(real)
 * 
 */
  __pyx_tuple__1211 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1211)) __PYX_ERR(0, 4797, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1211);
  __Pyx_GIVEREF(__pyx_tuple__1211);
  __pyx_codeobj__1212 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1211, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CEIL, 4797, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1212)) __PYX_ERR(0, 4797, __pyx_L1_error)

  /* "talib/stream.pyx":4831
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CMO( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CMO(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1213 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1213)) __PYX_ERR(0, 4831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1213);
  __Pyx_GIVEREF(__pyx_tuple__1213);
  __pyx_codeobj__1214 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1213, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CMO, 4831, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1214)) __PYX_ERR(0, 4831, __pyx_L1_error)

  /* "talib/stream.pyx":4867
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CORREL( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CORREL(real0, real1[, timeperiod=?])
 * 
 */
  __pyx_tuple__1215 = PyTuple_Pack(14, __pyx_n_s_real0, __pyx_n_s_real1, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real0_data, __pyx_n_s_real1_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1215)) __PYX_ERR(0, 4867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1215);
  __Pyx_GIVEREF(__pyx_tuple__1215);
  __pyx_codeobj__1216 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1215, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CORREL, 4867, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1216)) __PYX_ERR(0, 4867, __pyx_L1_error)

  /* "talib/stream.pyx":4914
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def COS( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ COS(real)
 * 
 */
  __pyx_tuple__1217 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1217)) __PYX_ERR(0, 4914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1217);
  __Pyx_GIVEREF(__pyx_tuple__1217);
  __pyx_codeobj__1218 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1217, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_COS, 4914, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1218)) __PYX_ERR(0, 4914, __pyx_L1_error)

  /* "talib/stream.pyx":4948
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def COSH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ COSH(real)
 * 
 */
  __pyx_tuple__1219 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1219)) __PYX_ERR(0, 4948, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1219);
  __Pyx_GIVEREF(__pyx_tuple__1219);
  __pyx_codeobj__1220 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1219, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_COSH, 4948, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1220)) __PYX_ERR(0, 4948, __pyx_L1_error)

  /* "talib/stream.pyx":4982
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DEMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ DEMA(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1221 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1221)) __PYX_ERR(0, 4982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1221);
  __Pyx_GIVEREF(__pyx_tuple__1221);
  __pyx_codeobj__1222 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1221, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_DEMA, 4982, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1222)) __PYX_ERR(0, 4982, __pyx_L1_error)

  /* "talib/stream.pyx":5018
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DIV( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ DIV(real0, real1)
 * 
 */
  __pyx_tuple__1223 = PyTuple_Pack(13, __pyx_n_s_real0, __pyx_n_s_real1, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real0_data, __pyx_n_s_real1_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1223)) __PYX_ERR(0, 5018, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1223);
  __Pyx_GIVEREF(__pyx_tuple__1223);
  __pyx_codeobj__1224 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1223, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_DIV, 5018, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1224)) __PYX_ERR(0, 5018, __pyx_L1_error)

  /* "talib/stream.pyx":5063
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DX( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ DX(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_tuple__1225 = PyTuple_Pack(16, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1225)) __PYX_ERR(0, 5063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1225);
  __Pyx_GIVEREF(__pyx_tuple__1225);
  __pyx_codeobj__1226 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1225, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_DX, 5063, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1226)) __PYX_ERR(0, 5063, __pyx_L1_error)

  /* "talib/stream.pyx":5119
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def EMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ EMA(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1227 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1227)) __PYX_ERR(0, 5119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1227);
  __Pyx_GIVEREF(__pyx_tuple__1227);
  __pyx_codeobj__1228 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1227, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_EMA, 5119, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1228)) __PYX_ERR(0, 5119, __pyx_L1_error)

  /* "talib/stream.pyx":5155
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def EXP( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ EXP(real)
 * 
 */
  __pyx_tuple__1229 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1229)) __PYX_ERR(0, 5155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1229);
  __Pyx_GIVEREF(__pyx_tuple__1229);
  __pyx_codeobj__1230 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1229, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_EXP, 5155, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1230)) __PYX_ERR(0, 5155, __pyx_L1_error)

  /* "talib/stream.pyx":5189
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def FLOOR( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ FLOOR(real)
 * 
 */
  __pyx_tuple__1231 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1231)) __PYX_ERR(0, 5189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1231);
  __Pyx_GIVEREF(__pyx_tuple__1231);
  __pyx_codeobj__1232 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1231, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_FLOOR, 5189, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1232)) __PYX_ERR(0, 5189, __pyx_L1_error)

  /* "talib/stream.pyx":5223
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_DCPERIOD( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_DCPERIOD(real)
 * 
 */
  __pyx_tuple__1233 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1233)) __PYX_ERR(0, 5223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1233);
  __Pyx_GIVEREF(__pyx_tuple__1233);
  __pyx_codeobj__1234 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1233, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_DCPERIOD, 5223, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1234)) __PYX_ERR(0, 5223, __pyx_L1_error)

  /* "talib/stream.pyx":5257
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_DCPHASE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_DCPHASE(real)
 * 
 */
  __pyx_tuple__1235 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1235)) __PYX_ERR(0, 5257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1235);
  __Pyx_GIVEREF(__pyx_tuple__1235);
  __pyx_codeobj__1236 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1235, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_DCPHASE, 5257, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1236)) __PYX_ERR(0, 5257, __pyx_L1_error)

  /* "talib/stream.pyx":5291
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_PHASOR( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_PHASOR(real)
 * 
 */
  __pyx_tuple__1237 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinphase, __pyx_n_s_outquadrature); if (unlikely(!__pyx_tuple__1237)) __PYX_ERR(0, 5291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1237);
  __Pyx_GIVEREF(__pyx_tuple__1237);
  __pyx_codeobj__1238 = (PyObject*)__Pyx_PyCode_New(1, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1237, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_PHASOR, 5291, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1238)) __PYX_ERR(0, 5291, __pyx_L1_error)

  /* "talib/stream.pyx":5328
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_SINE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_SINE(real)
 * 
 */
  __pyx_tuple__1239 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outsine, __pyx_n_s_outleadsine); if (unlikely(!__pyx_tuple__1239)) __PYX_ERR(0, 5328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1239);
  __Pyx_GIVEREF(__pyx_tuple__1239);
  __pyx_codeobj__1240 = (PyObject*)__Pyx_PyCode_New(1, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1239, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_SINE, 5328, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1240)) __PYX_ERR(0, 5328, __pyx_L1_error)

  /* "talib/stream.pyx":5365
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_TRENDLINE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_TRENDLINE(real)
 * 
 */
  __pyx_tuple__1241 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1241)) __PYX_ERR(0, 5365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1241);
  __Pyx_GIVEREF(__pyx_tuple__1241);
  __pyx_codeobj__1242 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1241, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_TRENDLINE, 5365, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1242)) __PYX_ERR(0, 5365, __pyx_L1_error)

  /* "talib/stream.pyx":5399
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_TRENDMODE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_TRENDMODE(real)
 * 
 */
  __pyx_tuple__1243 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1243)) __PYX_ERR(0, 5399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1243);
  __Pyx_GIVEREF(__pyx_tuple__1243);
  __pyx_codeobj__1244 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1243, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_TRENDMODE, 5399, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1244)) __PYX_ERR(0, 5399, __pyx_L1_error)

  /* "talib/stream.pyx":5433
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def KAMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ KAMA(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1245 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1245)) __PYX_ERR(0, 5433, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1245);
  __Pyx_GIVEREF(__pyx_tuple__1245);
  __pyx_codeobj__1246 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1245, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_KAMA, 5433, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1246)) __PYX_ERR(0, 5433, __pyx_L1_error)

  /* "talib/stream.pyx":5469
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1247 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1247)) __PYX_ERR(0, 5469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1247);
  __Pyx_GIVEREF(__pyx_tuple__1247);
  __pyx_codeobj__1248 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1247, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LINEARREG, 5469, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1248)) __PYX_ERR(0, 5469, __pyx_L1_error)

  /* "talib/stream.pyx":5505
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_ANGLE( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_ANGLE(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1249 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1249)) __PYX_ERR(0, 5505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1249);
  __Pyx_GIVEREF(__pyx_tuple__1249);
  __pyx_codeobj__1250 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1249, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LINEARREG_ANGLE, 5505, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1250)) __PYX_ERR(0, 5505, __pyx_L1_error)

  /* "talib/stream.pyx":5541
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_INTERCEPT( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_INTERCEPT(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1251 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1251)) __PYX_ERR(0, 5541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1251);
  __Pyx_GIVEREF(__pyx_tuple__1251);
  __pyx_codeobj__1252 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1251, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LINEARREG_INTERCEPT, 5541, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1252)) __PYX_ERR(0, 5541, __pyx_L1_error)

  /* "talib/stream.pyx":5577
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_SLOPE( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_SLOPE(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1253 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1253)) __PYX_ERR(0, 5577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1253);
  __Pyx_GIVEREF(__pyx_tuple__1253);
  __pyx_codeobj__1254 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1253, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LINEARREG_SLOPE, 5577, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1254)) __PYX_ERR(0, 5577, __pyx_L1_error)

  /* "talib/stream.pyx":5613
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ LN(real)
 * 
 */
  __pyx_tuple__1255 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1255)) __PYX_ERR(0, 5613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1255);
  __Pyx_GIVEREF(__pyx_tuple__1255);
  __pyx_codeobj__1256 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1255, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LN, 5613, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1256)) __PYX_ERR(0, 5613, __pyx_L1_error)

  /* "talib/stream.pyx":5647
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LOG10( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ LOG10(real)
 * 
 */
  __pyx_tuple__1257 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1257)) __PYX_ERR(0, 5647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1257);
  __Pyx_GIVEREF(__pyx_tuple__1257);
  __pyx_codeobj__1258 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1257, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LOG10, 5647, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1258)) __PYX_ERR(0, 5647, __pyx_L1_error)

  /* "talib/stream.pyx":5681
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MA( np.ndarray real not None , int timeperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ MA(real[, timeperiod=?, matype=?])
 * 
 */
  __pyx_tuple__1259 = PyTuple_Pack(13, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_matype, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1259)) __PYX_ERR(0, 5681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1259);
  __Pyx_GIVEREF(__pyx_tuple__1259);
  __pyx_codeobj__1260 = (PyObject*)__Pyx_PyCode_New(3, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1259, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MA, 5681, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1260)) __PYX_ERR(0, 5681, __pyx_L1_error)

  /* "talib/stream.pyx":5718
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACD( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int signalperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MACD(real[, fastperiod=?, slowperiod=?, signalperiod=?])
 * 
 */
  __pyx_tuple__1261 = PyTuple_Pack(16, __pyx_n_s_real, __pyx_n_s_fastperiod, __pyx_n_s_slowperiod, __pyx_n_s_signalperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outmacd, __pyx_n_s_outmacdsignal, __pyx_n_s_outmacdhist); if (unlikely(!__pyx_tuple__1261)) __PYX_ERR(0, 5718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1261);
  __Pyx_GIVEREF(__pyx_tuple__1261);
  __pyx_codeobj__1262 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1261, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MACD, 5718, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1262)) __PYX_ERR(0, 5718, __pyx_L1_error)

  /* "talib/stream.pyx":5762
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACDEXT( np.ndarray real not None , int fastperiod=-2**31 , int fastmatype=0 , int slowperiod=-2**31 , int slowmatype=0 , int signalperiod=-2**31 , int signalmatype=0 ):             # <<<<<<<<<<<<<<
 *     """ MACDEXT(real[, fastperiod=?, fastmatype=?, slowperiod=?, slowmatype=?, signalperiod=?, signalmatype=?])
 * 
 */
  __pyx_tuple__1263 = PyTuple_Pack(19, __pyx_n_s_real, __pyx_n_s_fastperiod, __pyx_n_s_fastmatype, __pyx_n_s_slowperiod, __pyx_n_s_slowmatype, __pyx_n_s_signalperiod, __pyx_n_s_signalmatype, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outmacd, __pyx_n_s_outmacdsignal, __pyx_n_s_outmacdhist); if (unlikely(!__pyx_tuple__1263)) __PYX_ERR(0, 5762, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1263);
  __Pyx_GIVEREF(__pyx_tuple__1263);
  __pyx_codeobj__1264 = (PyObject*)__Pyx_PyCode_New(7, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1263, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MACDEXT, 5762, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1264)) __PYX_ERR(0, 5762, __pyx_L1_error)

  /* "talib/stream.pyx":5809
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACDFIX( np.ndarray real not None , int signalperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MACDFIX(real[, signalperiod=?])
 * 
 */
  __pyx_tuple__1265 = PyTuple_Pack(14, __pyx_n_s_real, __pyx_n_s_signalperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outmacd, __pyx_n_s_outmacdsignal, __pyx_n_s_outmacdhist); if (unlikely(!__pyx_tuple__1265)) __PYX_ERR(0, 5809, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1265);
  __Pyx_GIVEREF(__pyx_tuple__1265);
  __pyx_codeobj__1266 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1265, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MACDFIX, 5809, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1266)) __PYX_ERR(0, 5809, __pyx_L1_error)

  /* "talib/stream.pyx":5851
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAMA( np.ndarray real not None , double fastlimit=-4e37 , double slowlimit=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ MAMA(real[, fastlimit=?, slowlimit=?])
 * 
 */
  __pyx_tuple__1267 = PyTuple_Pack(14, __pyx_n_s_real, __pyx_n_s_fastlimit, __pyx_n_s_slowlimit, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outmama, __pyx_n_s_outfama); if (unlikely(!__pyx_tuple__1267)) __PYX_ERR(0, 5851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1267);
  __Pyx_GIVEREF(__pyx_tuple__1267);
  __pyx_codeobj__1268 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1267, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MAMA, 5851, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1268)) __PYX_ERR(0, 5851, __pyx_L1_error)

  /* "talib/stream.pyx":5891
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAVP( np.ndarray real not None , np.ndarray periods not None , int minperiod=-2**31 , int maxperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ MAVP(real, periods[, minperiod=?, maxperiod=?, matype=?])
 * 
 */
  __pyx_tuple__1269 = PyTuple_Pack(16, __pyx_n_s_real, __pyx_n_s_periods, __pyx_n_s_minperiod, __pyx_n_s_maxperiod, __pyx_n_s_matype, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_periods_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1269)) __PYX_ERR(0, 5891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1269);
  __Pyx_GIVEREF(__pyx_tuple__1269);
  __pyx_codeobj__1270 = (PyObject*)__Pyx_PyCode_New(5, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1269, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MAVP, 5891, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1270)) __PYX_ERR(0, 5891, __pyx_L1_error)

  /* "talib/stream.pyx":5940
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MAX(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1271 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1271)) __PYX_ERR(0, 5940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1271);
  __Pyx_GIVEREF(__pyx_tuple__1271);
  __pyx_codeobj__1272 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1271, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MAX, 5940, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1272)) __PYX_ERR(0, 5940, __pyx_L1_error)

  /* "talib/stream.pyx":5976
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MAXINDEX(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1273 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1273)) __PYX_ERR(0, 5976, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1273);
  __Pyx_GIVEREF(__pyx_tuple__1273);
  __pyx_codeobj__1274 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1273, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MAXINDEX, 5976, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1274)) __PYX_ERR(0, 5976, __pyx_L1_error)

  /* "talib/stream.pyx":6012
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MEDPRICE( np.ndarray high not None , np.ndarray low not None ):             # <<<<<<<<<<<<<<
 *     """ MEDPRICE(high, low)
 * 
 */
  __pyx_tuple__1275 = PyTuple_Pack(13, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1275)) __PYX_ERR(0, 6012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1275);
  __Pyx_GIVEREF(__pyx_tuple__1275);
  __pyx_codeobj__1276 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1275, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MEDPRICE, 6012, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1276)) __PYX_ERR(0, 6012, __pyx_L1_error)

  /* "talib/stream.pyx":6056
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MFI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MFI(high, low, close, volume[, timeperiod=?])
 * 
 */
  __pyx_tuple__1277 = PyTuple_Pack(18, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_volume, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_volume_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1277)) __PYX_ERR(0, 6056, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1277);
  __Pyx_GIVEREF(__pyx_tuple__1277);
  __pyx_codeobj__1278 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1277, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MFI, 6056, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1278)) __PYX_ERR(0, 6056, __pyx_L1_error)

  /* "talib/stream.pyx":6122
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIDPOINT( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIDPOINT(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1279 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1279)) __PYX_ERR(0, 6122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1279);
  __Pyx_GIVEREF(__pyx_tuple__1279);
  __pyx_codeobj__1280 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1279, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MIDPOINT, 6122, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1280)) __PYX_ERR(0, 6122, __pyx_L1_error)

  /* "talib/stream.pyx":6158
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIDPRICE( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIDPRICE(high, low[, timeperiod=?])
 * 
 */
  __pyx_tuple__1281 = PyTuple_Pack(14, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1281)) __PYX_ERR(0, 6158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1281);
  __Pyx_GIVEREF(__pyx_tuple__1281);
  __pyx_codeobj__1282 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1281, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MIDPRICE, 6158, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1282)) __PYX_ERR(0, 6158, __pyx_L1_error)

  /* "talib/stream.pyx":6204
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIN( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIN(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1283 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1283)) __PYX_ERR(0, 6204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1283);
  __Pyx_GIVEREF(__pyx_tuple__1283);
  __pyx_codeobj__1284 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1283, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MIN, 6204, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1284)) __PYX_ERR(0, 6204, __pyx_L1_error)

  /* "talib/stream.pyx":6240
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MININDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MININDEX(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1285 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outinteger); if (unlikely(!__pyx_tuple__1285)) __PYX_ERR(0, 6240, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1285);
  __Pyx_GIVEREF(__pyx_tuple__1285);
  __pyx_codeobj__1286 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1285, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MININDEX, 6240, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1286)) __PYX_ERR(0, 6240, __pyx_L1_error)

  /* "talib/stream.pyx":6276
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINMAX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINMAX(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1287 = PyTuple_Pack(13, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outmin, __pyx_n_s_outmax); if (unlikely(!__pyx_tuple__1287)) __PYX_ERR(0, 6276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1287);
  __Pyx_GIVEREF(__pyx_tuple__1287);
  __pyx_codeobj__1288 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1287, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MINMAX, 6276, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1288)) __PYX_ERR(0, 6276, __pyx_L1_error)

  /* "talib/stream.pyx":6315
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINMAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINMAXINDEX(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1289 = PyTuple_Pack(13, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outminidx, __pyx_n_s_outmaxidx); if (unlikely(!__pyx_tuple__1289)) __PYX_ERR(0, 6315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1289);
  __Pyx_GIVEREF(__pyx_tuple__1289);
  __pyx_codeobj__1290 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1289, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MINMAXINDEX, 6315, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1290)) __PYX_ERR(0, 6315, __pyx_L1_error)

  /* "talib/stream.pyx":6354
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINUS_DI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINUS_DI(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_tuple__1291 = PyTuple_Pack(16, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1291)) __PYX_ERR(0, 6354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1291);
  __Pyx_GIVEREF(__pyx_tuple__1291);
  __pyx_codeobj__1292 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1291, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MINUS_DI, 6354, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1292)) __PYX_ERR(0, 6354, __pyx_L1_error)

  /* "talib/stream.pyx":6410
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINUS_DM(high, low[, timeperiod=?])
 * 
 */
  __pyx_tuple__1293 = PyTuple_Pack(14, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1293)) __PYX_ERR(0, 6410, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1293);
  __Pyx_GIVEREF(__pyx_tuple__1293);
  __pyx_codeobj__1294 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1293, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MINUS_DM, 6410, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1294)) __PYX_ERR(0, 6410, __pyx_L1_error)

  /* "talib/stream.pyx":6456
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MOM( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MOM(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1295 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1295)) __PYX_ERR(0, 6456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1295);
  __Pyx_GIVEREF(__pyx_tuple__1295);
  __pyx_codeobj__1296 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1295, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MOM, 6456, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1296)) __PYX_ERR(0, 6456, __pyx_L1_error)

  /* "talib/stream.pyx":6492
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MULT( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ MULT(real0, real1)
 * 
 */
  __pyx_tuple__1297 = PyTuple_Pack(13, __pyx_n_s_real0, __pyx_n_s_real1, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real0_data, __pyx_n_s_real1_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1297)) __PYX_ERR(0, 6492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1297);
  __Pyx_GIVEREF(__pyx_tuple__1297);
  __pyx_codeobj__1298 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1297, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MULT, 6492, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1298)) __PYX_ERR(0, 6492, __pyx_L1_error)

  /* "talib/stream.pyx":6537
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def NATR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ NATR(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_tuple__1299 = PyTuple_Pack(16, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1299)) __PYX_ERR(0, 6537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1299);
  __Pyx_GIVEREF(__pyx_tuple__1299);
  __pyx_codeobj__1300 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1299, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_NATR, 6537, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1300)) __PYX_ERR(0, 6537, __pyx_L1_error)

  /* "talib/stream.pyx":6593
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def OBV( np.ndarray real not None , np.ndarray volume not None ):             # <<<<<<<<<<<<<<
 *     """ OBV(real, volume)
 * 
 */
  __pyx_tuple__1301 = PyTuple_Pack(13, __pyx_n_s_real, __pyx_n_s_volume, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_volume_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1301)) __PYX_ERR(0, 6593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1301);
  __Pyx_GIVEREF(__pyx_tuple__1301);
  __pyx_codeobj__1302 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1301, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_OBV, 6593, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1302)) __PYX_ERR(0, 6593, __pyx_L1_error)

  /* "talib/stream.pyx":6638
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PLUS_DI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ PLUS_DI(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_tuple__1303 = PyTuple_Pack(16, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1303)) __PYX_ERR(0, 6638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1303);
  __Pyx_GIVEREF(__pyx_tuple__1303);
  __pyx_codeobj__1304 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1303, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_PLUS_DI, 6638, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1304)) __PYX_ERR(0, 6638, __pyx_L1_error)

  /* "talib/stream.pyx":6694
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PLUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ PLUS_DM(high, low[, timeperiod=?])
 * 
 */
  __pyx_tuple__1305 = PyTuple_Pack(14, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1305)) __PYX_ERR(0, 6694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1305);
  __Pyx_GIVEREF(__pyx_tuple__1305);
  __pyx_codeobj__1306 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1305, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_PLUS_DM, 6694, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1306)) __PYX_ERR(0, 6694, __pyx_L1_error)

  /* "talib/stream.pyx":6740
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PPO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ PPO(real[, fastperiod=?, slowperiod=?, matype=?])
 * 
 */
  __pyx_tuple__1307 = PyTuple_Pack(14, __pyx_n_s_real, __pyx_n_s_fastperiod, __pyx_n_s_slowperiod, __pyx_n_s_matype, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1307)) __PYX_ERR(0, 6740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1307);
  __Pyx_GIVEREF(__pyx_tuple__1307);
  __pyx_codeobj__1308 = (PyObject*)__Pyx_PyCode_New(4, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1307, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_PPO, 6740, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1308)) __PYX_ERR(0, 6740, __pyx_L1_error)

  /* "talib/stream.pyx":6778
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROC( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROC(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1309 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1309)) __PYX_ERR(0, 6778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1309);
  __Pyx_GIVEREF(__pyx_tuple__1309);
  __pyx_codeobj__1310 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1309, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ROC, 6778, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1310)) __PYX_ERR(0, 6778, __pyx_L1_error)

  /* "talib/stream.pyx":6814
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCP( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCP(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1311 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1311)) __PYX_ERR(0, 6814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1311);
  __Pyx_GIVEREF(__pyx_tuple__1311);
  __pyx_codeobj__1312 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1311, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ROCP, 6814, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1312)) __PYX_ERR(0, 6814, __pyx_L1_error)

  /* "talib/stream.pyx":6850
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCR( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCR(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1313 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1313)) __PYX_ERR(0, 6850, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1313);
  __Pyx_GIVEREF(__pyx_tuple__1313);
  __pyx_codeobj__1314 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1313, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ROCR, 6850, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1314)) __PYX_ERR(0, 6850, __pyx_L1_error)

  /* "talib/stream.pyx":6886
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCR100( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCR100(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1315 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1315)) __PYX_ERR(0, 6886, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1315);
  __Pyx_GIVEREF(__pyx_tuple__1315);
  __pyx_codeobj__1316 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1315, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ROCR100, 6886, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1316)) __PYX_ERR(0, 6886, __pyx_L1_error)

  /* "talib/stream.pyx":6922
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def RSI( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ RSI(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1317 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1317)) __PYX_ERR(0, 6922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1317);
  __Pyx_GIVEREF(__pyx_tuple__1317);
  __pyx_codeobj__1318 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1317, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_RSI, 6922, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1318)) __PYX_ERR(0, 6922, __pyx_L1_error)

  /* "talib/stream.pyx":6958
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SAR( np.ndarray high not None , np.ndarray low not None , double acceleration=0.02 , double maximum=0.2 ):             # <<<<<<<<<<<<<<
 *     """ SAR(high, low[, acceleration=?, maximum=?])
 * 
 */
  __pyx_tuple__1319 = PyTuple_Pack(15, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_acceleration, __pyx_n_s_maximum, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1319)) __PYX_ERR(0, 6958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1319);
  __Pyx_GIVEREF(__pyx_tuple__1319);
  __pyx_codeobj__1320 = (PyObject*)__Pyx_PyCode_New(4, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1319, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SAR, 6958, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1320)) __PYX_ERR(0, 6958, __pyx_L1_error)

  /* "talib/stream.pyx":7005
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SAREXT( np.ndarray high not None , np.ndarray low not None , double startvalue=-4e37 , double offsetonreverse=-4e37 , double accelerationinitlong=-4e37 , double accelerationlong=-4e37 , double accelerationmaxlong=-4e37 , double accelerationinitshort=-4e37 , double accelerationshort=-4e37 , double accelerationmaxshort=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ SAREXT(high, low[, startvalue=?, offsetonreverse=?, accelerationinitlong=?, accelerationlong=?, accelerationmaxlong=?, accelerationinitshort=?, accelerationshort=?, accelerationmaxshort=?])
 * 
 */
  __pyx_tuple__1321 = PyTuple_Pack(21, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_startvalue, __pyx_n_s_offsetonreverse, __pyx_n_s_accelerationinitlong, __pyx_n_s_accelerationlong, __pyx_n_s_accelerationmaxlong, __pyx_n_s_accelerationinitshort, __pyx_n_s_accelerationshort, __pyx_n_s_accelerationmaxshort, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1321)) __PYX_ERR(0, 7005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1321);
  __Pyx_GIVEREF(__pyx_tuple__1321);
  __pyx_codeobj__1322 = (PyObject*)__Pyx_PyCode_New(10, 0, 21, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1321, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SAREXT, 7005, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1322)) __PYX_ERR(0, 7005, __pyx_L1_error)

  /* "talib/stream.pyx":7058
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SIN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SIN(real)
 * 
 */
  __pyx_tuple__1323 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1323)) __PYX_ERR(0, 7058, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1323);
  __Pyx_GIVEREF(__pyx_tuple__1323);
  __pyx_codeobj__1324 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1323, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SIN, 7058, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1324)) __PYX_ERR(0, 7058, __pyx_L1_error)

  /* "talib/stream.pyx":7092
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SINH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SINH(real)
 * 
 */
  __pyx_tuple__1325 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1325)) __PYX_ERR(0, 7092, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1325);
  __Pyx_GIVEREF(__pyx_tuple__1325);
  __pyx_codeobj__1326 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1325, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SINH, 7092, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1326)) __PYX_ERR(0, 7092, __pyx_L1_error)

  /* "talib/stream.pyx":7126
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ SMA(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1327 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1327)) __PYX_ERR(0, 7126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1327);
  __Pyx_GIVEREF(__pyx_tuple__1327);
  __pyx_codeobj__1328 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1327, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SMA, 7126, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1328)) __PYX_ERR(0, 7126, __pyx_L1_error)

  /* "talib/stream.pyx":7162
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SQRT( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SQRT(real)
 * 
 */
  __pyx_tuple__1329 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1329)) __PYX_ERR(0, 7162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1329);
  __Pyx_GIVEREF(__pyx_tuple__1329);
  __pyx_codeobj__1330 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1329, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SQRT, 7162, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1330)) __PYX_ERR(0, 7162, __pyx_L1_error)

  /* "talib/stream.pyx":7196
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STDDEV( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ STDDEV(real[, timeperiod=?, nbdev=?])
 * 
 */
  __pyx_tuple__1331 = PyTuple_Pack(13, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_nbdev, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1331)) __PYX_ERR(0, 7196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1331);
  __Pyx_GIVEREF(__pyx_tuple__1331);
  __pyx_codeobj__1332 = (PyObject*)__Pyx_PyCode_New(3, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1331, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_STDDEV, 7196, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1332)) __PYX_ERR(0, 7196, __pyx_L1_error)

  /* "talib/stream.pyx":7233
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCH( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int fastk_period=-2**31 , int slowk_period=-2**31 , int slowk_matype=0 , int slowd_period=-2**31 , int slowd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCH(high, low, close[, fastk_period=?, slowk_period=?, slowk_matype=?, slowd_period=?, slowd_matype=?])
 * 
 */
  __pyx_tuple__1333 = PyTuple_Pack(21, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_fastk_period, __pyx_n_s_slowk_period, __pyx_n_s_slowk_matype, __pyx_n_s_slowd_period, __pyx_n_s_slowd_matype, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outslowk, __pyx_n_s_outslowd); if (unlikely(!__pyx_tuple__1333)) __PYX_ERR(0, 7233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1333);
  __Pyx_GIVEREF(__pyx_tuple__1333);
  __pyx_codeobj__1334 = (PyObject*)__Pyx_PyCode_New(8, 0, 21, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1333, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_STOCH, 7233, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1334)) __PYX_ERR(0, 7233, __pyx_L1_error)

  /* "talib/stream.pyx":7296
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCHF( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int fastk_period=-2**31 , int fastd_period=-2**31 , int fastd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCHF(high, low, close[, fastk_period=?, fastd_period=?, fastd_matype=?])
 * 
 */
  __pyx_tuple__1335 = PyTuple_Pack(19, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_fastk_period, __pyx_n_s_fastd_period, __pyx_n_s_fastd_matype, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outfastk, __pyx_n_s_outfastd); if (unlikely(!__pyx_tuple__1335)) __PYX_ERR(0, 7296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1335);
  __Pyx_GIVEREF(__pyx_tuple__1335);
  __pyx_codeobj__1336 = (PyObject*)__Pyx_PyCode_New(6, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1335, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_STOCHF, 7296, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1336)) __PYX_ERR(0, 7296, __pyx_L1_error)

  /* "talib/stream.pyx":7357
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCHRSI( np.ndarray real not None , int timeperiod=-2**31 , int fastk_period=-2**31 , int fastd_period=-2**31 , int fastd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCHRSI(real[, timeperiod=?, fastk_period=?, fastd_period=?, fastd_matype=?])
 * 
 */
  __pyx_tuple__1337 = PyTuple_Pack(16, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_fastk_period, __pyx_n_s_fastd_period, __pyx_n_s_fastd_matype, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outfastk, __pyx_n_s_outfastd); if (unlikely(!__pyx_tuple__1337)) __PYX_ERR(0, 7357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1337);
  __Pyx_GIVEREF(__pyx_tuple__1337);
  __pyx_codeobj__1338 = (PyObject*)__Pyx_PyCode_New(5, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1337, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_STOCHRSI, 7357, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1338)) __PYX_ERR(0, 7357, __pyx_L1_error)

  /* "talib/stream.pyx":7399
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SUB( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ SUB(real0, real1)
 * 
 */
  __pyx_tuple__1339 = PyTuple_Pack(13, __pyx_n_s_real0, __pyx_n_s_real1, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real0_data, __pyx_n_s_real1_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1339)) __PYX_ERR(0, 7399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1339);
  __Pyx_GIVEREF(__pyx_tuple__1339);
  __pyx_codeobj__1340 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1339, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SUB, 7399, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1340)) __PYX_ERR(0, 7399, __pyx_L1_error)

  /* "talib/stream.pyx":7444
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SUM( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ SUM(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1341 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1341)) __PYX_ERR(0, 7444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1341);
  __Pyx_GIVEREF(__pyx_tuple__1341);
  __pyx_codeobj__1342 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1341, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SUM, 7444, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1342)) __PYX_ERR(0, 7444, __pyx_L1_error)

  /* "talib/stream.pyx":7480
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def T3( np.ndarray real not None , int timeperiod=-2**31 , double vfactor=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ T3(real[, timeperiod=?, vfactor=?])
 * 
 */
  __pyx_tuple__1343 = PyTuple_Pack(13, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_vfactor, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1343)) __PYX_ERR(0, 7480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1343);
  __Pyx_GIVEREF(__pyx_tuple__1343);
  __pyx_codeobj__1344 = (PyObject*)__Pyx_PyCode_New(3, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1343, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_T3, 7480, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1344)) __PYX_ERR(0, 7480, __pyx_L1_error)

  /* "talib/stream.pyx":7517
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TAN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ TAN(real)
 * 
 */
  __pyx_tuple__1345 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1345)) __PYX_ERR(0, 7517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1345);
  __Pyx_GIVEREF(__pyx_tuple__1345);
  __pyx_codeobj__1346 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1345, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TAN, 7517, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1346)) __PYX_ERR(0, 7517, __pyx_L1_error)

  /* "talib/stream.pyx":7551
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TANH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ TANH(real)
 * 
 */
  __pyx_tuple__1347 = PyTuple_Pack(11, __pyx_n_s_real, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1347)) __PYX_ERR(0, 7551, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1347);
  __Pyx_GIVEREF(__pyx_tuple__1347);
  __pyx_codeobj__1348 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1347, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TANH, 7551, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1348)) __PYX_ERR(0, 7551, __pyx_L1_error)

  /* "talib/stream.pyx":7585
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TEMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TEMA(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1349 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1349)) __PYX_ERR(0, 7585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1349);
  __Pyx_GIVEREF(__pyx_tuple__1349);
  __pyx_codeobj__1350 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1349, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TEMA, 7585, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1350)) __PYX_ERR(0, 7585, __pyx_L1_error)

  /* "talib/stream.pyx":7621
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRANGE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ TRANGE(high, low, close)
 * 
 */
  __pyx_tuple__1351 = PyTuple_Pack(15, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1351)) __PYX_ERR(0, 7621, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1351);
  __Pyx_GIVEREF(__pyx_tuple__1351);
  __pyx_codeobj__1352 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1351, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TRANGE, 7621, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1352)) __PYX_ERR(0, 7621, __pyx_L1_error)

  /* "talib/stream.pyx":7675
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRIMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TRIMA(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1353 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1353)) __PYX_ERR(0, 7675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1353);
  __Pyx_GIVEREF(__pyx_tuple__1353);
  __pyx_codeobj__1354 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1353, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TRIMA, 7675, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1354)) __PYX_ERR(0, 7675, __pyx_L1_error)

  /* "talib/stream.pyx":7711
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRIX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TRIX(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1355 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1355)) __PYX_ERR(0, 7711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1355);
  __Pyx_GIVEREF(__pyx_tuple__1355);
  __pyx_codeobj__1356 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1355, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TRIX, 7711, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1356)) __PYX_ERR(0, 7711, __pyx_L1_error)

  /* "talib/stream.pyx":7747
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TSF( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TSF(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1357 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1357)) __PYX_ERR(0, 7747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1357);
  __Pyx_GIVEREF(__pyx_tuple__1357);
  __pyx_codeobj__1358 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1357, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TSF, 7747, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1358)) __PYX_ERR(0, 7747, __pyx_L1_error)

  /* "talib/stream.pyx":7783
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TYPPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ TYPPRICE(high, low, close)
 * 
 */
  __pyx_tuple__1359 = PyTuple_Pack(15, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1359)) __PYX_ERR(0, 7783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1359);
  __Pyx_GIVEREF(__pyx_tuple__1359);
  __pyx_codeobj__1360 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1359, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TYPPRICE, 7783, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1360)) __PYX_ERR(0, 7783, __pyx_L1_error)

  /* "talib/stream.pyx":7837
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ULTOSC( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod1=-2**31 , int timeperiod2=-2**31 , int timeperiod3=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ULTOSC(high, low, close[, timeperiod1=?, timeperiod2=?, timeperiod3=?])
 * 
 */
  __pyx_tuple__1361 = PyTuple_Pack(18, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_timeperiod1, __pyx_n_s_timeperiod2, __pyx_n_s_timeperiod3, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1361)) __PYX_ERR(0, 7837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1361);
  __Pyx_GIVEREF(__pyx_tuple__1361);
  __pyx_codeobj__1362 = (PyObject*)__Pyx_PyCode_New(6, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1361, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ULTOSC, 7837, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1362)) __PYX_ERR(0, 7837, __pyx_L1_error)

  /* "talib/stream.pyx":7895
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def VAR( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ VAR(real[, timeperiod=?, nbdev=?])
 * 
 */
  __pyx_tuple__1363 = PyTuple_Pack(13, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_nbdev, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1363)) __PYX_ERR(0, 7895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1363);
  __Pyx_GIVEREF(__pyx_tuple__1363);
  __pyx_codeobj__1364 = (PyObject*)__Pyx_PyCode_New(3, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1363, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_VAR, 7895, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1364)) __PYX_ERR(0, 7895, __pyx_L1_error)

  /* "talib/stream.pyx":7932
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WCLPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ WCLPRICE(high, low, close)
 * 
 */
  __pyx_tuple__1365 = PyTuple_Pack(15, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1365)) __PYX_ERR(0, 7932, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1365);
  __Pyx_GIVEREF(__pyx_tuple__1365);
  __pyx_codeobj__1366 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1365, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_WCLPRICE, 7932, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1366)) __PYX_ERR(0, 7932, __pyx_L1_error)

  /* "talib/stream.pyx":7986
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WILLR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ WILLR(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_tuple__1367 = PyTuple_Pack(16, __pyx_n_s_high, __pyx_n_s_low, __pyx_n_s_close, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_high_data, __pyx_n_s_low_data, __pyx_n_s_close_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1367)) __PYX_ERR(0, 7986, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1367);
  __Pyx_GIVEREF(__pyx_tuple__1367);
  __pyx_codeobj__1368 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1367, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_WILLR, 7986, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1368)) __PYX_ERR(0, 7986, __pyx_L1_error)

  /* "talib/stream.pyx":8042
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ WMA(real[, timeperiod=?])
 * 
 */
  __pyx_tuple__1369 = PyTuple_Pack(12, __pyx_n_s_real, __pyx_n_s_timeperiod, __pyx_n_s_length, __pyx_n_s_val, __pyx_n_s_begidx, __pyx_n_s_endidx, __pyx_n_s_lookback, __pyx_n_s_retCode, __pyx_n_s_real_data, __pyx_n_s_outbegidx, __pyx_n_s_outnbelement, __pyx_n_s_outreal); if (unlikely(!__pyx_tuple__1369)) __PYX_ERR(0, 8042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_tuple__1369);
  __Pyx_GIVEREF(__pyx_tuple__1369);
  __pyx_codeobj__1370 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1369, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_WMA, 8042, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1370)) __PYX_ERR(0, 8042, __pyx_L1_error)
  __Pyx_RefNannyFinishContext();
  return 0;
  __pyx_L1_error:;
  __Pyx_RefNannyFinishContext();
  return -1;
}

static int __Pyx_InitGlobals(void) {
  if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  return 0;
  __pyx_L1_error:;
  return -1;
}

#if PY_MAJOR_VERSION < 3
PyMODINIT_FUNC initstream(void); /*proto*/
PyMODINIT_FUNC initstream(void)
#else
PyMODINIT_FUNC PyInit_stream(void); /*proto*/
PyMODINIT_FUNC PyInit_stream(void)
#endif
{
  PyObject *__pyx_t_1 = NULL;
  PyObject *__pyx_t_2 = NULL;
  PyObject *__pyx_t_3 = NULL;
  double __pyx_t_4;
  __Pyx_RefNannyDeclarations
  #if CYTHON_REFNANNY
  __Pyx_RefNanny = __Pyx_RefNannyImportAPI("refnanny");
  if (!__Pyx_RefNanny) {
      PyErr_Clear();
      __Pyx_RefNanny = __Pyx_RefNannyImportAPI("Cython.Runtime.refnanny");
      if (!__Pyx_RefNanny)
          Py_FatalError("failed to import 'refnanny' module");
  }
  #endif
  __Pyx_RefNannySetupContext("PyMODINIT_FUNC PyInit_stream(void)", 0);
  if (__Pyx_check_binary_version() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(0, 1, __pyx_L1_error)
  #ifdef __Pyx_CyFunction_USED
  if (__pyx_CyFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_FusedFunction_USED
  if (__pyx_FusedFunction_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Coroutine_USED
  if (__pyx_Coroutine_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_Generator_USED
  if (__pyx_Generator_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  #ifdef __Pyx_StopAsyncIteration_USED
  if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  /*--- Library function declarations ---*/
  /*--- Threads initialization code ---*/
  #if defined(__PYX_FORCE_INIT_THREADS) && __PYX_FORCE_INIT_THREADS
  #ifdef WITH_THREAD /* Python build with threading support? */
  PyEval_InitThreads();
  #endif
  #endif
  /*--- Module creation code ---*/
  #if PY_MAJOR_VERSION < 3
  __pyx_m = Py_InitModule4("stream", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m);
  #else
  __pyx_m = PyModule_Create(&__pyx_moduledef);
  #endif
  if (unlikely(!__pyx_m)) __PYX_ERR(0, 1, __pyx_L1_error)
  __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_INCREF(__pyx_d);
  __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(0, 1, __pyx_L1_error)
  #if CYTHON_COMPILING_IN_PYPY
  Py_INCREF(__pyx_b);
  #endif
  if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) __PYX_ERR(0, 1, __pyx_L1_error);
  /*--- Initialize various global constants etc. ---*/
  if (__Pyx_InitGlobals() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #if PY_MAJOR_VERSION < 3 && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
  if (__Pyx_init_sys_getdefaultencoding_params() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif
  if (__pyx_module_is_main_talib__stream) {
    if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  }
  #if PY_MAJOR_VERSION >= 3
  {
    PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(0, 1, __pyx_L1_error)
    if (!PyDict_GetItemString(modules, "talib.stream")) {
      if (unlikely(PyDict_SetItemString(modules, "talib.stream", __pyx_m) < 0)) __PYX_ERR(0, 1, __pyx_L1_error)
    }
  }
  #endif
  /*--- Builtin init code ---*/
  if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Constants init code ---*/
  if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  /*--- Global init code ---*/
  /*--- Variable export code ---*/
  /*--- Function export code ---*/
  /*--- Type init code ---*/
  /*--- Type import code ---*/
  __pyx_ptype_7cpython_4type_type = __Pyx_ImportType(__Pyx_BUILTIN_MODULE_NAME, "type", 
  #if CYTHON_COMPILING_IN_PYPY
  sizeof(PyTypeObject),
  #else
  sizeof(PyHeapTypeObject),
  #endif
  0); if (unlikely(!__pyx_ptype_7cpython_4type_type)) __PYX_ERR(2, 9, __pyx_L1_error)
  __pyx_ptype_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr), 0); if (unlikely(!__pyx_ptype_5numpy_dtype)) __PYX_ERR(1, 155, __pyx_L1_error)
  __pyx_ptype_5numpy_flatiter = __Pyx_ImportType("numpy", "flatiter", sizeof(PyArrayIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_flatiter)) __PYX_ERR(1, 168, __pyx_L1_error)
  __pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) __PYX_ERR(1, 172, __pyx_L1_error)
  __pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) __PYX_ERR(1, 181, __pyx_L1_error)
  __pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) __PYX_ERR(1, 861, __pyx_L1_error)
  /*--- Variable import code ---*/
  /*--- Function import code ---*/
  __pyx_t_1 = __Pyx_ImportModule("talib.common"); if (!__pyx_t_1) __PYX_ERR(0, 1, __pyx_L1_error)
  if (__Pyx_ImportFunction(__pyx_t_1, "_ta_check_success", (void (**)(void))&__pyx_f_5talib_6common__ta_check_success, "PyObject *(PyObject *, TA_RetCode, int __pyx_skip_dispatch)") < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  Py_DECREF(__pyx_t_1); __pyx_t_1 = 0;
  /*--- Execution code ---*/
  #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED)
  if (__Pyx_patch_abc() < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  #endif

  /* "talib/stream.pyx":2
 * cimport numpy as np
 * from numpy import nan             # <<<<<<<<<<<<<<
 * from cython import boundscheck, wraparound
 * 
 */
  __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  __Pyx_INCREF(__pyx_n_s_nan);
  __Pyx_GIVEREF(__pyx_n_s_nan);
  PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_nan);
  __pyx_t_3 = __Pyx_Import(__pyx_n_s_numpy, __pyx_t_2, -1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_3, __pyx_n_s_nan); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_2);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_nan, __pyx_t_2) < 0) __PYX_ERR(0, 2, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0;
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7
 * from .common cimport _ta_check_success
 * 
 * cdef double NaN = nan             # <<<<<<<<<<<<<<
 * 
 * cdef extern from "numpy/arrayobject.h":
 */
  __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_nan); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __pyx_t_4 = __pyx_PyFloat_AsDouble(__pyx_t_3); if (unlikely((__pyx_t_4 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 7, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;
  __pyx_v_5talib_6stream_NaN = __pyx_t_4;

  /* "talib/stream.pyx":15
 *     object PyArray_GETCONTIGUOUS(np.ndarray)
 * 
 * np.import_array() # Initialize the NumPy C API             # <<<<<<<<<<<<<<
 * 
 * cimport libta_lib as lib
 */
  import_array();

  /* "talib/stream.pyx":20
 * from libta_lib cimport TA_RetCode
 * 
 * lib.TA_Initialize()             # <<<<<<<<<<<<<<
 * 
 * @wraparound(False)  # turn off relative indexing from end of lists
 */
  TA_Initialize();

  /* "talib/stream.pyx":24
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ACOS( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ACOS(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_1ACOS, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 24, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ACOS, __pyx_t_3) < 0) __PYX_ERR(0, 24, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":58
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AD( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None ):             # <<<<<<<<<<<<<<
 *     """ AD(high, low, close, volume)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_3AD, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_AD, __pyx_t_3) < 0) __PYX_ERR(0, 58, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":122
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADD( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ ADD(real0, real1)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_5ADD, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADD, __pyx_t_3) < 0) __PYX_ERR(0, 122, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":167
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADOSC( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None , int fastperiod=-2**31 , int slowperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADOSC(high, low, close, volume[, fastperiod=?, slowperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_7ADOSC, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADOSC, __pyx_t_3) < 0) __PYX_ERR(0, 167, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":234
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADX( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADX(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_9ADX, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 234, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADX, __pyx_t_3) < 0) __PYX_ERR(0, 234, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":290
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ADXR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ADXR(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_11ADXR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 290, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADXR, __pyx_t_3) < 0) __PYX_ERR(0, 290, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":346
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def APO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ APO(real[, fastperiod=?, slowperiod=?, matype=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_13APO, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 346, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_APO, __pyx_t_3) < 0) __PYX_ERR(0, 346, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":384
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AROON( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ AROON(high, low[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_15AROON, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 384, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_AROON, __pyx_t_3) < 0) __PYX_ERR(0, 384, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":433
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AROONOSC( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ AROONOSC(high, low[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_17AROONOSC, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 433, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_AROONOSC, __pyx_t_3) < 0) __PYX_ERR(0, 433, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":479
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ASIN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ASIN(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_19ASIN, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 479, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ASIN, __pyx_t_3) < 0) __PYX_ERR(0, 479, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":513
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ATAN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ ATAN(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_21ATAN, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 513, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ATAN, __pyx_t_3) < 0) __PYX_ERR(0, 513, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":547
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ATR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ATR(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_23ATR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 547, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ATR, __pyx_t_3) < 0) __PYX_ERR(0, 547, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":603
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def AVGPRICE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ AVGPRICE(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_25AVGPRICE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 603, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_AVGPRICE, __pyx_t_3) < 0) __PYX_ERR(0, 603, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":667
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BBANDS( np.ndarray real not None , int timeperiod=-2**31 , double nbdevup=-4e37 , double nbdevdn=-4e37 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ BBANDS(real[, timeperiod=?, nbdevup=?, nbdevdn=?, matype=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_27BBANDS, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 667, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_BBANDS, __pyx_t_3) < 0) __PYX_ERR(0, 667, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":712
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BETA( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ BETA(real0, real1[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_29BETA, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 712, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_BETA, __pyx_t_3) < 0) __PYX_ERR(0, 712, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":759
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def BOP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ BOP(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_31BOP, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_BOP, __pyx_t_3) < 0) __PYX_ERR(0, 759, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":823
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CCI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CCI(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_33CCI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 823, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CCI, __pyx_t_3) < 0) __PYX_ERR(0, 823, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":879
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL2CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL2CROWS(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_35CDL2CROWS, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 879, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL2CROWS, __pyx_t_3) < 0) __PYX_ERR(0, 879, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":943
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3BLACKCROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3BLACKCROWS(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_37CDL3BLACKCROWS, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 943, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3BLACKCROWS, __pyx_t_3) < 0) __PYX_ERR(0, 943, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1007
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3INSIDE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3INSIDE(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_39CDL3INSIDE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1007, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3INSIDE, __pyx_t_3) < 0) __PYX_ERR(0, 1007, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1071
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3LINESTRIKE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3LINESTRIKE(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_41CDL3LINESTRIKE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1071, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3LINESTRIKE, __pyx_t_3) < 0) __PYX_ERR(0, 1071, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1135
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3OUTSIDE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3OUTSIDE(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_43CDL3OUTSIDE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3OUTSIDE, __pyx_t_3) < 0) __PYX_ERR(0, 1135, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1199
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3STARSINSOUTH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3STARSINSOUTH(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_45CDL3STARSINSOUTH, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1199, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3STARSINSOUTH, __pyx_t_3) < 0) __PYX_ERR(0, 1199, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1263
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDL3WHITESOLDIERS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDL3WHITESOLDIERS(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_47CDL3WHITESOLDIERS, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1263, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3WHITESOLDIERS, __pyx_t_3) < 0) __PYX_ERR(0, 1263, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1327
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLABANDONEDBABY( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLABANDONEDBABY(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_49CDLABANDONEDBABY, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1327, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLABANDONEDBABY, __pyx_t_3) < 0) __PYX_ERR(0, 1327, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1393
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLADVANCEBLOCK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLADVANCEBLOCK(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_51CDLADVANCEBLOCK, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1393, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLADVANCEBLOCK, __pyx_t_3) < 0) __PYX_ERR(0, 1393, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1457
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLBELTHOLD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLBELTHOLD(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_53CDLBELTHOLD, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1457, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLBELTHOLD, __pyx_t_3) < 0) __PYX_ERR(0, 1457, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1521
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLBREAKAWAY( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLBREAKAWAY(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_55CDLBREAKAWAY, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1521, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLBREAKAWAY, __pyx_t_3) < 0) __PYX_ERR(0, 1521, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1585
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCLOSINGMARUBOZU( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCLOSINGMARUBOZU(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_57CDLCLOSINGMARUBOZU, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLCLOSINGMARUBOZU, __pyx_t_3) < 0) __PYX_ERR(0, 1585, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1649
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCONCEALBABYSWALL( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCONCEALBABYSWALL(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_59CDLCONCEALBABYSWALL, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1649, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLCONCEALBABYSWALL, __pyx_t_3) < 0) __PYX_ERR(0, 1649, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1713
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLCOUNTERATTACK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLCOUNTERATTACK(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_61CDLCOUNTERATTACK, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1713, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLCOUNTERATTACK, __pyx_t_3) < 0) __PYX_ERR(0, 1713, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1777
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDARKCLOUDCOVER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.5 ):             # <<<<<<<<<<<<<<
 *     """ CDLDARKCLOUDCOVER(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_63CDLDARKCLOUDCOVER, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1777, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDARKCLOUDCOVER, __pyx_t_3) < 0) __PYX_ERR(0, 1777, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1843
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDOJI(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_65CDLDOJI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1843, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDOJI, __pyx_t_3) < 0) __PYX_ERR(0, 1843, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1907
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDOJISTAR(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_67CDLDOJISTAR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1907, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDOJISTAR, __pyx_t_3) < 0) __PYX_ERR(0, 1907, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1971
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLDRAGONFLYDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLDRAGONFLYDOJI(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_69CDLDRAGONFLYDOJI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1971, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDRAGONFLYDOJI, __pyx_t_3) < 0) __PYX_ERR(0, 1971, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2035
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLENGULFING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLENGULFING(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_71CDLENGULFING, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2035, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLENGULFING, __pyx_t_3) < 0) __PYX_ERR(0, 2035, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2099
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLEVENINGDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLEVENINGDOJISTAR(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_73CDLEVENINGDOJISTAR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLEVENINGDOJISTAR, __pyx_t_3) < 0) __PYX_ERR(0, 2099, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2165
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLEVENINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLEVENINGSTAR(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_75CDLEVENINGSTAR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2165, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLEVENINGSTAR, __pyx_t_3) < 0) __PYX_ERR(0, 2165, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2231
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLGAPSIDESIDEWHITE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLGAPSIDESIDEWHITE(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_77CDLGAPSIDESIDEWHITE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2231, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLGAPSIDESIDEWHITE, __pyx_t_3) < 0) __PYX_ERR(0, 2231, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2295
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLGRAVESTONEDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLGRAVESTONEDOJI(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_79CDLGRAVESTONEDOJI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2295, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLGRAVESTONEDOJI, __pyx_t_3) < 0) __PYX_ERR(0, 2295, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2359
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHAMMER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHAMMER(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_81CDLHAMMER, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2359, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHAMMER, __pyx_t_3) < 0) __PYX_ERR(0, 2359, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2423
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHANGINGMAN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHANGINGMAN(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_83CDLHANGINGMAN, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2423, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHANGINGMAN, __pyx_t_3) < 0) __PYX_ERR(0, 2423, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2487
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHARAMI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHARAMI(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_85CDLHARAMI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2487, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHARAMI, __pyx_t_3) < 0) __PYX_ERR(0, 2487, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2551
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHARAMICROSS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHARAMICROSS(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_87CDLHARAMICROSS, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2551, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHARAMICROSS, __pyx_t_3) < 0) __PYX_ERR(0, 2551, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2615
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIGHWAVE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIGHWAVE(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_89CDLHIGHWAVE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2615, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHIGHWAVE, __pyx_t_3) < 0) __PYX_ERR(0, 2615, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2679
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIKKAKE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIKKAKE(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_91CDLHIKKAKE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2679, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHIKKAKE, __pyx_t_3) < 0) __PYX_ERR(0, 2679, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2743
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHIKKAKEMOD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHIKKAKEMOD(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_93CDLHIKKAKEMOD, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2743, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHIKKAKEMOD, __pyx_t_3) < 0) __PYX_ERR(0, 2743, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2807
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLHOMINGPIGEON( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLHOMINGPIGEON(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_95CDLHOMINGPIGEON, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2807, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHOMINGPIGEON, __pyx_t_3) < 0) __PYX_ERR(0, 2807, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2871
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLIDENTICAL3CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLIDENTICAL3CROWS(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_97CDLIDENTICAL3CROWS, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2871, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLIDENTICAL3CROWS, __pyx_t_3) < 0) __PYX_ERR(0, 2871, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2935
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLINNECK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLINNECK(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_99CDLINNECK, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2935, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLINNECK, __pyx_t_3) < 0) __PYX_ERR(0, 2935, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":2999
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLINVERTEDHAMMER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLINVERTEDHAMMER(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_101CDLINVERTEDHAMMER, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2999, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLINVERTEDHAMMER, __pyx_t_3) < 0) __PYX_ERR(0, 2999, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3063
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLKICKING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLKICKING(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_103CDLKICKING, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLKICKING, __pyx_t_3) < 0) __PYX_ERR(0, 3063, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3127
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLKICKINGBYLENGTH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLKICKINGBYLENGTH(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_105CDLKICKINGBYLENGTH, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3127, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLKICKINGBYLENGTH, __pyx_t_3) < 0) __PYX_ERR(0, 3127, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3191
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLADDERBOTTOM( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLADDERBOTTOM(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_107CDLLADDERBOTTOM, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3191, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLLADDERBOTTOM, __pyx_t_3) < 0) __PYX_ERR(0, 3191, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3255
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLONGLEGGEDDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLONGLEGGEDDOJI(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_109CDLLONGLEGGEDDOJI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3255, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLLONGLEGGEDDOJI, __pyx_t_3) < 0) __PYX_ERR(0, 3255, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3319
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLLONGLINE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLLONGLINE(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_111CDLLONGLINE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3319, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLLONGLINE, __pyx_t_3) < 0) __PYX_ERR(0, 3319, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3383
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMARUBOZU( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLMARUBOZU(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_113CDLMARUBOZU, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3383, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMARUBOZU, __pyx_t_3) < 0) __PYX_ERR(0, 3383, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3447
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMATCHINGLOW( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLMATCHINGLOW(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_115CDLMATCHINGLOW, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3447, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMATCHINGLOW, __pyx_t_3) < 0) __PYX_ERR(0, 3447, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3511
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMATHOLD( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.5 ):             # <<<<<<<<<<<<<<
 *     """ CDLMATHOLD(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_117CDLMATHOLD, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3511, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMATHOLD, __pyx_t_3) < 0) __PYX_ERR(0, 3511, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3577
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMORNINGDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLMORNINGDOJISTAR(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_119CDLMORNINGDOJISTAR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMORNINGDOJISTAR, __pyx_t_3) < 0) __PYX_ERR(0, 3577, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3643
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLMORNINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , double penetration=0.3 ):             # <<<<<<<<<<<<<<
 *     """ CDLMORNINGSTAR(open, high, low, close[, penetration=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_121CDLMORNINGSTAR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3643, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMORNINGSTAR, __pyx_t_3) < 0) __PYX_ERR(0, 3643, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3709
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLONNECK( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLONNECK(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_123CDLONNECK, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3709, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLONNECK, __pyx_t_3) < 0) __PYX_ERR(0, 3709, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3773
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLPIERCING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLPIERCING(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_125CDLPIERCING, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3773, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLPIERCING, __pyx_t_3) < 0) __PYX_ERR(0, 3773, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3837
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLRICKSHAWMAN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLRICKSHAWMAN(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_127CDLRICKSHAWMAN, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLRICKSHAWMAN, __pyx_t_3) < 0) __PYX_ERR(0, 3837, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3901
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLRISEFALL3METHODS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLRISEFALL3METHODS(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_129CDLRISEFALL3METHODS, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3901, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLRISEFALL3METHODS, __pyx_t_3) < 0) __PYX_ERR(0, 3901, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":3965
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSEPARATINGLINES( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSEPARATINGLINES(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_131CDLSEPARATINGLINES, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3965, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSEPARATINGLINES, __pyx_t_3) < 0) __PYX_ERR(0, 3965, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4029
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSHOOTINGSTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSHOOTINGSTAR(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_133CDLSHOOTINGSTAR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4029, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSHOOTINGSTAR, __pyx_t_3) < 0) __PYX_ERR(0, 4029, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4093
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSHORTLINE( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSHORTLINE(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_135CDLSHORTLINE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4093, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSHORTLINE, __pyx_t_3) < 0) __PYX_ERR(0, 4093, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4157
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSPINNINGTOP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSPINNINGTOP(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_137CDLSPINNINGTOP, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4157, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSPINNINGTOP, __pyx_t_3) < 0) __PYX_ERR(0, 4157, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4221
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSTALLEDPATTERN( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSTALLEDPATTERN(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_139CDLSTALLEDPATTERN, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4221, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSTALLEDPATTERN, __pyx_t_3) < 0) __PYX_ERR(0, 4221, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4285
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLSTICKSANDWICH( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLSTICKSANDWICH(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_141CDLSTICKSANDWICH, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4285, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSTICKSANDWICH, __pyx_t_3) < 0) __PYX_ERR(0, 4285, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4349
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTAKURI( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTAKURI(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_143CDLTAKURI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4349, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTAKURI, __pyx_t_3) < 0) __PYX_ERR(0, 4349, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4413
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTASUKIGAP( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTASUKIGAP(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_145CDLTASUKIGAP, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4413, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTASUKIGAP, __pyx_t_3) < 0) __PYX_ERR(0, 4413, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4477
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTHRUSTING( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTHRUSTING(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_147CDLTHRUSTING, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4477, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTHRUSTING, __pyx_t_3) < 0) __PYX_ERR(0, 4477, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4541
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLTRISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLTRISTAR(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_149CDLTRISTAR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTRISTAR, __pyx_t_3) < 0) __PYX_ERR(0, 4541, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4605
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLUNIQUE3RIVER( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLUNIQUE3RIVER(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_151CDLUNIQUE3RIVER, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4605, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLUNIQUE3RIVER, __pyx_t_3) < 0) __PYX_ERR(0, 4605, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4669
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLUPSIDEGAP2CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLUPSIDEGAP2CROWS(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_153CDLUPSIDEGAP2CROWS, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4669, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLUPSIDEGAP2CROWS, __pyx_t_3) < 0) __PYX_ERR(0, 4669, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4733
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CDLXSIDEGAP3METHODS( np.ndarray open not None , np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ CDLXSIDEGAP3METHODS(open, high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_155CDLXSIDEGAP3METHODS, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4733, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLXSIDEGAP3METHODS, __pyx_t_3) < 0) __PYX_ERR(0, 4733, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4797
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CEIL( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ CEIL(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_157CEIL, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4797, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CEIL, __pyx_t_3) < 0) __PYX_ERR(0, 4797, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4831
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CMO( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CMO(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_159CMO, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4831, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CMO, __pyx_t_3) < 0) __PYX_ERR(0, 4831, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4867
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def CORREL( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ CORREL(real0, real1[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_161CORREL, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4867, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_CORREL, __pyx_t_3) < 0) __PYX_ERR(0, 4867, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4914
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def COS( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ COS(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_163COS, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4914, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_COS, __pyx_t_3) < 0) __PYX_ERR(0, 4914, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4948
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def COSH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ COSH(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_165COSH, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4948, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_COSH, __pyx_t_3) < 0) __PYX_ERR(0, 4948, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":4982
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DEMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ DEMA(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_167DEMA, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4982, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_DEMA, __pyx_t_3) < 0) __PYX_ERR(0, 4982, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5018
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DIV( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ DIV(real0, real1)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_169DIV, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5018, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_DIV, __pyx_t_3) < 0) __PYX_ERR(0, 5018, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5063
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def DX( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ DX(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_171DX, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5063, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_DX, __pyx_t_3) < 0) __PYX_ERR(0, 5063, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5119
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def EMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ EMA(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_173EMA, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5119, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_EMA, __pyx_t_3) < 0) __PYX_ERR(0, 5119, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5155
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def EXP( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ EXP(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_175EXP, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5155, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_EXP, __pyx_t_3) < 0) __PYX_ERR(0, 5155, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5189
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def FLOOR( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ FLOOR(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_177FLOOR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5189, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_FLOOR, __pyx_t_3) < 0) __PYX_ERR(0, 5189, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5223
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_DCPERIOD( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_DCPERIOD(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_179HT_DCPERIOD, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5223, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_DCPERIOD, __pyx_t_3) < 0) __PYX_ERR(0, 5223, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5257
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_DCPHASE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_DCPHASE(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_181HT_DCPHASE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5257, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_DCPHASE, __pyx_t_3) < 0) __PYX_ERR(0, 5257, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5291
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_PHASOR( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_PHASOR(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_183HT_PHASOR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5291, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_PHASOR, __pyx_t_3) < 0) __PYX_ERR(0, 5291, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5328
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_SINE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_SINE(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_185HT_SINE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5328, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_SINE, __pyx_t_3) < 0) __PYX_ERR(0, 5328, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5365
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_TRENDLINE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_TRENDLINE(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_187HT_TRENDLINE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5365, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_TRENDLINE, __pyx_t_3) < 0) __PYX_ERR(0, 5365, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5399
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def HT_TRENDMODE( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ HT_TRENDMODE(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_189HT_TRENDMODE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_TRENDMODE, __pyx_t_3) < 0) __PYX_ERR(0, 5399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5433
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def KAMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ KAMA(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_191KAMA, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5433, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_KAMA, __pyx_t_3) < 0) __PYX_ERR(0, 5433, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5469
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_193LINEARREG, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5469, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LINEARREG, __pyx_t_3) < 0) __PYX_ERR(0, 5469, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5505
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_ANGLE( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_ANGLE(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_195LINEARREG_ANGLE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5505, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LINEARREG_ANGLE, __pyx_t_3) < 0) __PYX_ERR(0, 5505, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5541
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_INTERCEPT( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_INTERCEPT(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_197LINEARREG_INTERCEPT, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5541, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LINEARREG_INTERCEPT, __pyx_t_3) < 0) __PYX_ERR(0, 5541, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5577
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LINEARREG_SLOPE( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ LINEARREG_SLOPE(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_199LINEARREG_SLOPE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5577, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LINEARREG_SLOPE, __pyx_t_3) < 0) __PYX_ERR(0, 5577, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5613
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ LN(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_201LN, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5613, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LN, __pyx_t_3) < 0) __PYX_ERR(0, 5613, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5647
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def LOG10( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ LOG10(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_203LOG10, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5647, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_LOG10, __pyx_t_3) < 0) __PYX_ERR(0, 5647, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5681
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MA( np.ndarray real not None , int timeperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ MA(real[, timeperiod=?, matype=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_205MA, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5681, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MA, __pyx_t_3) < 0) __PYX_ERR(0, 5681, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5718
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACD( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int signalperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MACD(real[, fastperiod=?, slowperiod=?, signalperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_207MACD, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5718, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MACD, __pyx_t_3) < 0) __PYX_ERR(0, 5718, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5762
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACDEXT( np.ndarray real not None , int fastperiod=-2**31 , int fastmatype=0 , int slowperiod=-2**31 , int slowmatype=0 , int signalperiod=-2**31 , int signalmatype=0 ):             # <<<<<<<<<<<<<<
 *     """ MACDEXT(real[, fastperiod=?, fastmatype=?, slowperiod=?, slowmatype=?, signalperiod=?, signalmatype=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_209MACDEXT, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5762, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MACDEXT, __pyx_t_3) < 0) __PYX_ERR(0, 5762, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5809
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MACDFIX( np.ndarray real not None , int signalperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MACDFIX(real[, signalperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_211MACDFIX, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5809, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MACDFIX, __pyx_t_3) < 0) __PYX_ERR(0, 5809, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5851
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAMA( np.ndarray real not None , double fastlimit=-4e37 , double slowlimit=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ MAMA(real[, fastlimit=?, slowlimit=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_213MAMA, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5851, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAMA, __pyx_t_3) < 0) __PYX_ERR(0, 5851, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5891
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAVP( np.ndarray real not None , np.ndarray periods not None , int minperiod=-2**31 , int maxperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ MAVP(real, periods[, minperiod=?, maxperiod=?, matype=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_215MAVP, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5891, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAVP, __pyx_t_3) < 0) __PYX_ERR(0, 5891, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5940
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MAX(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_217MAX, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5940, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAX, __pyx_t_3) < 0) __PYX_ERR(0, 5940, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":5976
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MAXINDEX(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_219MAXINDEX, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5976, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAXINDEX, __pyx_t_3) < 0) __PYX_ERR(0, 5976, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6012
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MEDPRICE( np.ndarray high not None , np.ndarray low not None ):             # <<<<<<<<<<<<<<
 *     """ MEDPRICE(high, low)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_221MEDPRICE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6012, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MEDPRICE, __pyx_t_3) < 0) __PYX_ERR(0, 6012, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6056
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MFI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , np.ndarray volume not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MFI(high, low, close, volume[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_223MFI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6056, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MFI, __pyx_t_3) < 0) __PYX_ERR(0, 6056, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6122
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIDPOINT( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIDPOINT(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_225MIDPOINT, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6122, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MIDPOINT, __pyx_t_3) < 0) __PYX_ERR(0, 6122, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6158
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIDPRICE( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIDPRICE(high, low[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_227MIDPRICE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6158, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MIDPRICE, __pyx_t_3) < 0) __PYX_ERR(0, 6158, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6204
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MIN( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MIN(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_229MIN, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6204, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MIN, __pyx_t_3) < 0) __PYX_ERR(0, 6204, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6240
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MININDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MININDEX(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_231MININDEX, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6240, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MININDEX, __pyx_t_3) < 0) __PYX_ERR(0, 6240, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6276
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINMAX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINMAX(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_233MINMAX, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6276, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MINMAX, __pyx_t_3) < 0) __PYX_ERR(0, 6276, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6315
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINMAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINMAXINDEX(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_235MINMAXINDEX, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6315, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MINMAXINDEX, __pyx_t_3) < 0) __PYX_ERR(0, 6315, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6354
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINUS_DI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINUS_DI(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_237MINUS_DI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6354, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MINUS_DI, __pyx_t_3) < 0) __PYX_ERR(0, 6354, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6410
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MINUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MINUS_DM(high, low[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_239MINUS_DM, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6410, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MINUS_DM, __pyx_t_3) < 0) __PYX_ERR(0, 6410, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6456
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MOM( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ MOM(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_241MOM, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6456, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOM, __pyx_t_3) < 0) __PYX_ERR(0, 6456, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6492
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def MULT( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ MULT(real0, real1)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_243MULT, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6492, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_MULT, __pyx_t_3) < 0) __PYX_ERR(0, 6492, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6537
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def NATR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ NATR(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_245NATR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6537, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_NATR, __pyx_t_3) < 0) __PYX_ERR(0, 6537, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6593
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def OBV( np.ndarray real not None , np.ndarray volume not None ):             # <<<<<<<<<<<<<<
 *     """ OBV(real, volume)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_247OBV, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6593, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_OBV, __pyx_t_3) < 0) __PYX_ERR(0, 6593, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6638
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PLUS_DI( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ PLUS_DI(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_249PLUS_DI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6638, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PLUS_DI, __pyx_t_3) < 0) __PYX_ERR(0, 6638, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6694
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PLUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ PLUS_DM(high, low[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_251PLUS_DM, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6694, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PLUS_DM, __pyx_t_3) < 0) __PYX_ERR(0, 6694, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6740
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def PPO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ):             # <<<<<<<<<<<<<<
 *     """ PPO(real[, fastperiod=?, slowperiod=?, matype=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_253PPO, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6740, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_PPO, __pyx_t_3) < 0) __PYX_ERR(0, 6740, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6778
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROC( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROC(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_255ROC, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6778, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROC, __pyx_t_3) < 0) __PYX_ERR(0, 6778, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6814
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCP( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCP(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_257ROCP, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6814, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROCP, __pyx_t_3) < 0) __PYX_ERR(0, 6814, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6850
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCR( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCR(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_259ROCR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6850, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROCR, __pyx_t_3) < 0) __PYX_ERR(0, 6850, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6886
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ROCR100( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ROCR100(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_261ROCR100, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6886, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROCR100, __pyx_t_3) < 0) __PYX_ERR(0, 6886, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6922
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def RSI( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ RSI(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_263RSI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6922, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_RSI, __pyx_t_3) < 0) __PYX_ERR(0, 6922, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":6958
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SAR( np.ndarray high not None , np.ndarray low not None , double acceleration=0.02 , double maximum=0.2 ):             # <<<<<<<<<<<<<<
 *     """ SAR(high, low[, acceleration=?, maximum=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_265SAR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6958, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SAR, __pyx_t_3) < 0) __PYX_ERR(0, 6958, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7005
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SAREXT( np.ndarray high not None , np.ndarray low not None , double startvalue=-4e37 , double offsetonreverse=-4e37 , double accelerationinitlong=-4e37 , double accelerationlong=-4e37 , double accelerationmaxlong=-4e37 , double accelerationinitshort=-4e37 , double accelerationshort=-4e37 , double accelerationmaxshort=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ SAREXT(high, low[, startvalue=?, offsetonreverse=?, accelerationinitlong=?, accelerationlong=?, accelerationmaxlong=?, accelerationinitshort=?, accelerationshort=?, accelerationmaxshort=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_267SAREXT, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7005, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SAREXT, __pyx_t_3) < 0) __PYX_ERR(0, 7005, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7058
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SIN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SIN(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_269SIN, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7058, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SIN, __pyx_t_3) < 0) __PYX_ERR(0, 7058, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7092
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SINH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SINH(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_271SINH, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7092, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SINH, __pyx_t_3) < 0) __PYX_ERR(0, 7092, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7126
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ SMA(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_273SMA, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7126, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SMA, __pyx_t_3) < 0) __PYX_ERR(0, 7126, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7162
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SQRT( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ SQRT(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_275SQRT, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7162, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SQRT, __pyx_t_3) < 0) __PYX_ERR(0, 7162, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7196
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STDDEV( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ STDDEV(real[, timeperiod=?, nbdev=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_277STDDEV, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7196, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_STDDEV, __pyx_t_3) < 0) __PYX_ERR(0, 7196, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7233
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCH( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int fastk_period=-2**31 , int slowk_period=-2**31 , int slowk_matype=0 , int slowd_period=-2**31 , int slowd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCH(high, low, close[, fastk_period=?, slowk_period=?, slowk_matype=?, slowd_period=?, slowd_matype=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_279STOCH, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7233, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_STOCH, __pyx_t_3) < 0) __PYX_ERR(0, 7233, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7296
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCHF( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int fastk_period=-2**31 , int fastd_period=-2**31 , int fastd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCHF(high, low, close[, fastk_period=?, fastd_period=?, fastd_matype=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_281STOCHF, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7296, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_STOCHF, __pyx_t_3) < 0) __PYX_ERR(0, 7296, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7357
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def STOCHRSI( np.ndarray real not None , int timeperiod=-2**31 , int fastk_period=-2**31 , int fastd_period=-2**31 , int fastd_matype=0 ):             # <<<<<<<<<<<<<<
 *     """ STOCHRSI(real[, timeperiod=?, fastk_period=?, fastd_period=?, fastd_matype=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_283STOCHRSI, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7357, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_STOCHRSI, __pyx_t_3) < 0) __PYX_ERR(0, 7357, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7399
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SUB( np.ndarray real0 not None , np.ndarray real1 not None ):             # <<<<<<<<<<<<<<
 *     """ SUB(real0, real1)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_285SUB, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7399, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SUB, __pyx_t_3) < 0) __PYX_ERR(0, 7399, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7444
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def SUM( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ SUM(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_287SUM, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7444, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_SUM, __pyx_t_3) < 0) __PYX_ERR(0, 7444, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7480
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def T3( np.ndarray real not None , int timeperiod=-2**31 , double vfactor=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ T3(real[, timeperiod=?, vfactor=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_289T3, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7480, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_T3, __pyx_t_3) < 0) __PYX_ERR(0, 7480, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7517
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TAN( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ TAN(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_291TAN, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7517, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAN, __pyx_t_3) < 0) __PYX_ERR(0, 7517, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7551
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TANH( np.ndarray real not None ):             # <<<<<<<<<<<<<<
 *     """ TANH(real)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_293TANH, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7551, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TANH, __pyx_t_3) < 0) __PYX_ERR(0, 7551, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7585
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TEMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TEMA(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_295TEMA, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7585, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TEMA, __pyx_t_3) < 0) __PYX_ERR(0, 7585, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7621
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRANGE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ TRANGE(high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_297TRANGE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7621, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TRANGE, __pyx_t_3) < 0) __PYX_ERR(0, 7621, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7675
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRIMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TRIMA(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_299TRIMA, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7675, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TRIMA, __pyx_t_3) < 0) __PYX_ERR(0, 7675, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7711
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TRIX( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TRIX(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_301TRIX, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7711, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TRIX, __pyx_t_3) < 0) __PYX_ERR(0, 7711, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7747
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TSF( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ TSF(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_303TSF, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7747, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TSF, __pyx_t_3) < 0) __PYX_ERR(0, 7747, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7783
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def TYPPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ TYPPRICE(high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_305TYPPRICE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7783, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_TYPPRICE, __pyx_t_3) < 0) __PYX_ERR(0, 7783, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7837
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def ULTOSC( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod1=-2**31 , int timeperiod2=-2**31 , int timeperiod3=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ ULTOSC(high, low, close[, timeperiod1=?, timeperiod2=?, timeperiod3=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_307ULTOSC, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7837, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_ULTOSC, __pyx_t_3) < 0) __PYX_ERR(0, 7837, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7895
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def VAR( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ):             # <<<<<<<<<<<<<<
 *     """ VAR(real[, timeperiod=?, nbdev=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_309VAR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7895, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_VAR, __pyx_t_3) < 0) __PYX_ERR(0, 7895, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7932
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WCLPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ):             # <<<<<<<<<<<<<<
 *     """ WCLPRICE(high, low, close)
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_311WCLPRICE, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7932, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_WCLPRICE, __pyx_t_3) < 0) __PYX_ERR(0, 7932, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":7986
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WILLR( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ WILLR(high, low, close[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_313WILLR, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7986, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_WILLR, __pyx_t_3) < 0) __PYX_ERR(0, 7986, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":8042
 * @wraparound(False)  # turn off relative indexing from end of lists
 * @boundscheck(False) # turn off bounds-checking for entire function
 * def WMA( np.ndarray real not None , int timeperiod=-2**31 ):             # <<<<<<<<<<<<<<
 *     """ WMA(real[, timeperiod=?])
 * 
 */
  __pyx_t_3 = PyCFunction_NewEx(&__pyx_mdef_5talib_6stream_315WMA, NULL, __pyx_n_s_talib_stream); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8042, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_WMA, __pyx_t_3) < 0) __PYX_ERR(0, 8042, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":8076
 *     return outreal
 * 
 * __all__ = ["ACOS","AD","ADD","ADOSC","ADX","ADXR","APO","AROON","AROONOSC","ASIN","ATAN","ATR","AVGPRICE","BBANDS","BETA","BOP","CCI","CDL2CROWS","CDL3BLACKCROWS","CDL3INSIDE","CDL3LINESTRIKE","CDL3OUTSIDE","CDL3STARSINSOUTH","CDL3WHITESOLDIERS","CDLABANDONEDBABY","CDLADVANCEBLOCK","CDLBELTHOLD","CDLBREAKAWAY","CDLCLOSINGMARUBOZU","CDLCONCEALBABYSWALL","CDLCOUNTERATTACK","CDLDARKCLOUDCOVER","CDLDOJI","CDLDOJISTAR","CDLDRAGONFLYDOJI","CDLENGULFING","CDLEVENINGDOJISTAR","CDLEVENINGSTAR","CDLGAPSIDESIDEWHITE","CDLGRAVESTONEDOJI","CDLHAMMER","CDLHANGINGMAN","CDLHARAMI","CDLHARAMICROSS","CDLHIGHWAVE","CDLHIKKAKE","CDLHIKKAKEMOD","CDLHOMINGPIGEON","CDLIDENTICAL3CROWS","CDLINNECK","CDLINVERTEDHAMMER","CDLKICKING","CDLKICKINGBYLENGTH","CDLLADDERBOTTOM","CDLLONGLEGGEDDOJI","CDLLONGLINE","CDLMARUBOZU","CDLMATCHINGLOW","CDLMATHOLD","CDLMORNINGDOJISTAR","CDLMORNINGSTAR","CDLONNECK","CDLPIERCING","CDLRICKSHAWMAN","CDLRISEFALL3METHODS","CDLSEPARATINGLINES","CDLSHOOTINGSTAR","CDLSHORTLINE","CDLSPINNINGTOP","CDLSTALLEDPATTERN","CDLSTICKSANDWICH","CDLTAKURI","CDLTASUKIGAP","CDLTHRUSTING","CDLTRISTAR","CDLUNIQUE3RIVER","CDLUPSIDEGAP2CROWS","CDLXSIDEGAP3METHODS","CEIL","CMO","CORREL","COS","COSH","DEMA","DIV","DX","EMA","EXP","FLOOR","HT_DCPERIOD","HT_DCPHASE","HT_PHASOR","HT_SINE","HT_TRENDLINE","HT_TRENDMODE","KAMA","LINEARREG","LINEARREG_ANGLE","LINEARREG_INTERCEPT","LINEARREG_SLOPE","LN","LOG10","MA","MACD","MACDEXT","MACDFIX","MAMA","MAVP","MAX","MAXINDEX","MEDPRICE","MFI","MIDPOINT","MIDPRICE","MIN","MININDEX","MINMAX","MINMAXINDEX","MINUS_DI","MINUS_DM","MOM","MULT","NATR","OBV","PLUS_DI","PLUS_DM","PPO","ROC","ROCP","ROCR","ROCR100","RSI","SAR","SAREXT","SIN","SINH","SMA","SQRT","STDDEV","STOCH","STOCHF","STOCHRSI","SUB","SUM","T3","TAN","TANH","TEMA","TRANGE","TRIMA","TRIX","TSF","TYPPRICE","ULTOSC","VAR","WCLPRICE","WILLR","WMA"]             # <<<<<<<<<<<<<<
 */
  __pyx_t_3 = PyList_New(158); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8076, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  __Pyx_INCREF(__pyx_n_s_ACOS);
  __Pyx_GIVEREF(__pyx_n_s_ACOS);
  PyList_SET_ITEM(__pyx_t_3, 0, __pyx_n_s_ACOS);
  __Pyx_INCREF(__pyx_n_s_AD);
  __Pyx_GIVEREF(__pyx_n_s_AD);
  PyList_SET_ITEM(__pyx_t_3, 1, __pyx_n_s_AD);
  __Pyx_INCREF(__pyx_n_s_ADD);
  __Pyx_GIVEREF(__pyx_n_s_ADD);
  PyList_SET_ITEM(__pyx_t_3, 2, __pyx_n_s_ADD);
  __Pyx_INCREF(__pyx_n_s_ADOSC);
  __Pyx_GIVEREF(__pyx_n_s_ADOSC);
  PyList_SET_ITEM(__pyx_t_3, 3, __pyx_n_s_ADOSC);
  __Pyx_INCREF(__pyx_n_s_ADX);
  __Pyx_GIVEREF(__pyx_n_s_ADX);
  PyList_SET_ITEM(__pyx_t_3, 4, __pyx_n_s_ADX);
  __Pyx_INCREF(__pyx_n_s_ADXR);
  __Pyx_GIVEREF(__pyx_n_s_ADXR);
  PyList_SET_ITEM(__pyx_t_3, 5, __pyx_n_s_ADXR);
  __Pyx_INCREF(__pyx_n_s_APO);
  __Pyx_GIVEREF(__pyx_n_s_APO);
  PyList_SET_ITEM(__pyx_t_3, 6, __pyx_n_s_APO);
  __Pyx_INCREF(__pyx_n_s_AROON);
  __Pyx_GIVEREF(__pyx_n_s_AROON);
  PyList_SET_ITEM(__pyx_t_3, 7, __pyx_n_s_AROON);
  __Pyx_INCREF(__pyx_n_s_AROONOSC);
  __Pyx_GIVEREF(__pyx_n_s_AROONOSC);
  PyList_SET_ITEM(__pyx_t_3, 8, __pyx_n_s_AROONOSC);
  __Pyx_INCREF(__pyx_n_s_ASIN);
  __Pyx_GIVEREF(__pyx_n_s_ASIN);
  PyList_SET_ITEM(__pyx_t_3, 9, __pyx_n_s_ASIN);
  __Pyx_INCREF(__pyx_n_s_ATAN);
  __Pyx_GIVEREF(__pyx_n_s_ATAN);
  PyList_SET_ITEM(__pyx_t_3, 10, __pyx_n_s_ATAN);
  __Pyx_INCREF(__pyx_n_s_ATR);
  __Pyx_GIVEREF(__pyx_n_s_ATR);
  PyList_SET_ITEM(__pyx_t_3, 11, __pyx_n_s_ATR);
  __Pyx_INCREF(__pyx_n_s_AVGPRICE);
  __Pyx_GIVEREF(__pyx_n_s_AVGPRICE);
  PyList_SET_ITEM(__pyx_t_3, 12, __pyx_n_s_AVGPRICE);
  __Pyx_INCREF(__pyx_n_s_BBANDS);
  __Pyx_GIVEREF(__pyx_n_s_BBANDS);
  PyList_SET_ITEM(__pyx_t_3, 13, __pyx_n_s_BBANDS);
  __Pyx_INCREF(__pyx_n_s_BETA);
  __Pyx_GIVEREF(__pyx_n_s_BETA);
  PyList_SET_ITEM(__pyx_t_3, 14, __pyx_n_s_BETA);
  __Pyx_INCREF(__pyx_n_s_BOP);
  __Pyx_GIVEREF(__pyx_n_s_BOP);
  PyList_SET_ITEM(__pyx_t_3, 15, __pyx_n_s_BOP);
  __Pyx_INCREF(__pyx_n_s_CCI);
  __Pyx_GIVEREF(__pyx_n_s_CCI);
  PyList_SET_ITEM(__pyx_t_3, 16, __pyx_n_s_CCI);
  __Pyx_INCREF(__pyx_n_s_CDL2CROWS);
  __Pyx_GIVEREF(__pyx_n_s_CDL2CROWS);
  PyList_SET_ITEM(__pyx_t_3, 17, __pyx_n_s_CDL2CROWS);
  __Pyx_INCREF(__pyx_n_s_CDL3BLACKCROWS);
  __Pyx_GIVEREF(__pyx_n_s_CDL3BLACKCROWS);
  PyList_SET_ITEM(__pyx_t_3, 18, __pyx_n_s_CDL3BLACKCROWS);
  __Pyx_INCREF(__pyx_n_s_CDL3INSIDE);
  __Pyx_GIVEREF(__pyx_n_s_CDL3INSIDE);
  PyList_SET_ITEM(__pyx_t_3, 19, __pyx_n_s_CDL3INSIDE);
  __Pyx_INCREF(__pyx_n_s_CDL3LINESTRIKE);
  __Pyx_GIVEREF(__pyx_n_s_CDL3LINESTRIKE);
  PyList_SET_ITEM(__pyx_t_3, 20, __pyx_n_s_CDL3LINESTRIKE);
  __Pyx_INCREF(__pyx_n_s_CDL3OUTSIDE);
  __Pyx_GIVEREF(__pyx_n_s_CDL3OUTSIDE);
  PyList_SET_ITEM(__pyx_t_3, 21, __pyx_n_s_CDL3OUTSIDE);
  __Pyx_INCREF(__pyx_n_s_CDL3STARSINSOUTH);
  __Pyx_GIVEREF(__pyx_n_s_CDL3STARSINSOUTH);
  PyList_SET_ITEM(__pyx_t_3, 22, __pyx_n_s_CDL3STARSINSOUTH);
  __Pyx_INCREF(__pyx_n_s_CDL3WHITESOLDIERS);
  __Pyx_GIVEREF(__pyx_n_s_CDL3WHITESOLDIERS);
  PyList_SET_ITEM(__pyx_t_3, 23, __pyx_n_s_CDL3WHITESOLDIERS);
  __Pyx_INCREF(__pyx_n_s_CDLABANDONEDBABY);
  __Pyx_GIVEREF(__pyx_n_s_CDLABANDONEDBABY);
  PyList_SET_ITEM(__pyx_t_3, 24, __pyx_n_s_CDLABANDONEDBABY);
  __Pyx_INCREF(__pyx_n_s_CDLADVANCEBLOCK);
  __Pyx_GIVEREF(__pyx_n_s_CDLADVANCEBLOCK);
  PyList_SET_ITEM(__pyx_t_3, 25, __pyx_n_s_CDLADVANCEBLOCK);
  __Pyx_INCREF(__pyx_n_s_CDLBELTHOLD);
  __Pyx_GIVEREF(__pyx_n_s_CDLBELTHOLD);
  PyList_SET_ITEM(__pyx_t_3, 26, __pyx_n_s_CDLBELTHOLD);
  __Pyx_INCREF(__pyx_n_s_CDLBREAKAWAY);
  __Pyx_GIVEREF(__pyx_n_s_CDLBREAKAWAY);
  PyList_SET_ITEM(__pyx_t_3, 27, __pyx_n_s_CDLBREAKAWAY);
  __Pyx_INCREF(__pyx_n_s_CDLCLOSINGMARUBOZU);
  __Pyx_GIVEREF(__pyx_n_s_CDLCLOSINGMARUBOZU);
  PyList_SET_ITEM(__pyx_t_3, 28, __pyx_n_s_CDLCLOSINGMARUBOZU);
  __Pyx_INCREF(__pyx_n_s_CDLCONCEALBABYSWALL);
  __Pyx_GIVEREF(__pyx_n_s_CDLCONCEALBABYSWALL);
  PyList_SET_ITEM(__pyx_t_3, 29, __pyx_n_s_CDLCONCEALBABYSWALL);
  __Pyx_INCREF(__pyx_n_s_CDLCOUNTERATTACK);
  __Pyx_GIVEREF(__pyx_n_s_CDLCOUNTERATTACK);
  PyList_SET_ITEM(__pyx_t_3, 30, __pyx_n_s_CDLCOUNTERATTACK);
  __Pyx_INCREF(__pyx_n_s_CDLDARKCLOUDCOVER);
  __Pyx_GIVEREF(__pyx_n_s_CDLDARKCLOUDCOVER);
  PyList_SET_ITEM(__pyx_t_3, 31, __pyx_n_s_CDLDARKCLOUDCOVER);
  __Pyx_INCREF(__pyx_n_s_CDLDOJI);
  __Pyx_GIVEREF(__pyx_n_s_CDLDOJI);
  PyList_SET_ITEM(__pyx_t_3, 32, __pyx_n_s_CDLDOJI);
  __Pyx_INCREF(__pyx_n_s_CDLDOJISTAR);
  __Pyx_GIVEREF(__pyx_n_s_CDLDOJISTAR);
  PyList_SET_ITEM(__pyx_t_3, 33, __pyx_n_s_CDLDOJISTAR);
  __Pyx_INCREF(__pyx_n_s_CDLDRAGONFLYDOJI);
  __Pyx_GIVEREF(__pyx_n_s_CDLDRAGONFLYDOJI);
  PyList_SET_ITEM(__pyx_t_3, 34, __pyx_n_s_CDLDRAGONFLYDOJI);
  __Pyx_INCREF(__pyx_n_s_CDLENGULFING);
  __Pyx_GIVEREF(__pyx_n_s_CDLENGULFING);
  PyList_SET_ITEM(__pyx_t_3, 35, __pyx_n_s_CDLENGULFING);
  __Pyx_INCREF(__pyx_n_s_CDLEVENINGDOJISTAR);
  __Pyx_GIVEREF(__pyx_n_s_CDLEVENINGDOJISTAR);
  PyList_SET_ITEM(__pyx_t_3, 36, __pyx_n_s_CDLEVENINGDOJISTAR);
  __Pyx_INCREF(__pyx_n_s_CDLEVENINGSTAR);
  __Pyx_GIVEREF(__pyx_n_s_CDLEVENINGSTAR);
  PyList_SET_ITEM(__pyx_t_3, 37, __pyx_n_s_CDLEVENINGSTAR);
  __Pyx_INCREF(__pyx_n_s_CDLGAPSIDESIDEWHITE);
  __Pyx_GIVEREF(__pyx_n_s_CDLGAPSIDESIDEWHITE);
  PyList_SET_ITEM(__pyx_t_3, 38, __pyx_n_s_CDLGAPSIDESIDEWHITE);
  __Pyx_INCREF(__pyx_n_s_CDLGRAVESTONEDOJI);
  __Pyx_GIVEREF(__pyx_n_s_CDLGRAVESTONEDOJI);
  PyList_SET_ITEM(__pyx_t_3, 39, __pyx_n_s_CDLGRAVESTONEDOJI);
  __Pyx_INCREF(__pyx_n_s_CDLHAMMER);
  __Pyx_GIVEREF(__pyx_n_s_CDLHAMMER);
  PyList_SET_ITEM(__pyx_t_3, 40, __pyx_n_s_CDLHAMMER);
  __Pyx_INCREF(__pyx_n_s_CDLHANGINGMAN);
  __Pyx_GIVEREF(__pyx_n_s_CDLHANGINGMAN);
  PyList_SET_ITEM(__pyx_t_3, 41, __pyx_n_s_CDLHANGINGMAN);
  __Pyx_INCREF(__pyx_n_s_CDLHARAMI);
  __Pyx_GIVEREF(__pyx_n_s_CDLHARAMI);
  PyList_SET_ITEM(__pyx_t_3, 42, __pyx_n_s_CDLHARAMI);
  __Pyx_INCREF(__pyx_n_s_CDLHARAMICROSS);
  __Pyx_GIVEREF(__pyx_n_s_CDLHARAMICROSS);
  PyList_SET_ITEM(__pyx_t_3, 43, __pyx_n_s_CDLHARAMICROSS);
  __Pyx_INCREF(__pyx_n_s_CDLHIGHWAVE);
  __Pyx_GIVEREF(__pyx_n_s_CDLHIGHWAVE);
  PyList_SET_ITEM(__pyx_t_3, 44, __pyx_n_s_CDLHIGHWAVE);
  __Pyx_INCREF(__pyx_n_s_CDLHIKKAKE);
  __Pyx_GIVEREF(__pyx_n_s_CDLHIKKAKE);
  PyList_SET_ITEM(__pyx_t_3, 45, __pyx_n_s_CDLHIKKAKE);
  __Pyx_INCREF(__pyx_n_s_CDLHIKKAKEMOD);
  __Pyx_GIVEREF(__pyx_n_s_CDLHIKKAKEMOD);
  PyList_SET_ITEM(__pyx_t_3, 46, __pyx_n_s_CDLHIKKAKEMOD);
  __Pyx_INCREF(__pyx_n_s_CDLHOMINGPIGEON);
  __Pyx_GIVEREF(__pyx_n_s_CDLHOMINGPIGEON);
  PyList_SET_ITEM(__pyx_t_3, 47, __pyx_n_s_CDLHOMINGPIGEON);
  __Pyx_INCREF(__pyx_n_s_CDLIDENTICAL3CROWS);
  __Pyx_GIVEREF(__pyx_n_s_CDLIDENTICAL3CROWS);
  PyList_SET_ITEM(__pyx_t_3, 48, __pyx_n_s_CDLIDENTICAL3CROWS);
  __Pyx_INCREF(__pyx_n_s_CDLINNECK);
  __Pyx_GIVEREF(__pyx_n_s_CDLINNECK);
  PyList_SET_ITEM(__pyx_t_3, 49, __pyx_n_s_CDLINNECK);
  __Pyx_INCREF(__pyx_n_s_CDLINVERTEDHAMMER);
  __Pyx_GIVEREF(__pyx_n_s_CDLINVERTEDHAMMER);
  PyList_SET_ITEM(__pyx_t_3, 50, __pyx_n_s_CDLINVERTEDHAMMER);
  __Pyx_INCREF(__pyx_n_s_CDLKICKING);
  __Pyx_GIVEREF(__pyx_n_s_CDLKICKING);
  PyList_SET_ITEM(__pyx_t_3, 51, __pyx_n_s_CDLKICKING);
  __Pyx_INCREF(__pyx_n_s_CDLKICKINGBYLENGTH);
  __Pyx_GIVEREF(__pyx_n_s_CDLKICKINGBYLENGTH);
  PyList_SET_ITEM(__pyx_t_3, 52, __pyx_n_s_CDLKICKINGBYLENGTH);
  __Pyx_INCREF(__pyx_n_s_CDLLADDERBOTTOM);
  __Pyx_GIVEREF(__pyx_n_s_CDLLADDERBOTTOM);
  PyList_SET_ITEM(__pyx_t_3, 53, __pyx_n_s_CDLLADDERBOTTOM);
  __Pyx_INCREF(__pyx_n_s_CDLLONGLEGGEDDOJI);
  __Pyx_GIVEREF(__pyx_n_s_CDLLONGLEGGEDDOJI);
  PyList_SET_ITEM(__pyx_t_3, 54, __pyx_n_s_CDLLONGLEGGEDDOJI);
  __Pyx_INCREF(__pyx_n_s_CDLLONGLINE);
  __Pyx_GIVEREF(__pyx_n_s_CDLLONGLINE);
  PyList_SET_ITEM(__pyx_t_3, 55, __pyx_n_s_CDLLONGLINE);
  __Pyx_INCREF(__pyx_n_s_CDLMARUBOZU);
  __Pyx_GIVEREF(__pyx_n_s_CDLMARUBOZU);
  PyList_SET_ITEM(__pyx_t_3, 56, __pyx_n_s_CDLMARUBOZU);
  __Pyx_INCREF(__pyx_n_s_CDLMATCHINGLOW);
  __Pyx_GIVEREF(__pyx_n_s_CDLMATCHINGLOW);
  PyList_SET_ITEM(__pyx_t_3, 57, __pyx_n_s_CDLMATCHINGLOW);
  __Pyx_INCREF(__pyx_n_s_CDLMATHOLD);
  __Pyx_GIVEREF(__pyx_n_s_CDLMATHOLD);
  PyList_SET_ITEM(__pyx_t_3, 58, __pyx_n_s_CDLMATHOLD);
  __Pyx_INCREF(__pyx_n_s_CDLMORNINGDOJISTAR);
  __Pyx_GIVEREF(__pyx_n_s_CDLMORNINGDOJISTAR);
  PyList_SET_ITEM(__pyx_t_3, 59, __pyx_n_s_CDLMORNINGDOJISTAR);
  __Pyx_INCREF(__pyx_n_s_CDLMORNINGSTAR);
  __Pyx_GIVEREF(__pyx_n_s_CDLMORNINGSTAR);
  PyList_SET_ITEM(__pyx_t_3, 60, __pyx_n_s_CDLMORNINGSTAR);
  __Pyx_INCREF(__pyx_n_s_CDLONNECK);
  __Pyx_GIVEREF(__pyx_n_s_CDLONNECK);
  PyList_SET_ITEM(__pyx_t_3, 61, __pyx_n_s_CDLONNECK);
  __Pyx_INCREF(__pyx_n_s_CDLPIERCING);
  __Pyx_GIVEREF(__pyx_n_s_CDLPIERCING);
  PyList_SET_ITEM(__pyx_t_3, 62, __pyx_n_s_CDLPIERCING);
  __Pyx_INCREF(__pyx_n_s_CDLRICKSHAWMAN);
  __Pyx_GIVEREF(__pyx_n_s_CDLRICKSHAWMAN);
  PyList_SET_ITEM(__pyx_t_3, 63, __pyx_n_s_CDLRICKSHAWMAN);
  __Pyx_INCREF(__pyx_n_s_CDLRISEFALL3METHODS);
  __Pyx_GIVEREF(__pyx_n_s_CDLRISEFALL3METHODS);
  PyList_SET_ITEM(__pyx_t_3, 64, __pyx_n_s_CDLRISEFALL3METHODS);
  __Pyx_INCREF(__pyx_n_s_CDLSEPARATINGLINES);
  __Pyx_GIVEREF(__pyx_n_s_CDLSEPARATINGLINES);
  PyList_SET_ITEM(__pyx_t_3, 65, __pyx_n_s_CDLSEPARATINGLINES);
  __Pyx_INCREF(__pyx_n_s_CDLSHOOTINGSTAR);
  __Pyx_GIVEREF(__pyx_n_s_CDLSHOOTINGSTAR);
  PyList_SET_ITEM(__pyx_t_3, 66, __pyx_n_s_CDLSHOOTINGSTAR);
  __Pyx_INCREF(__pyx_n_s_CDLSHORTLINE);
  __Pyx_GIVEREF(__pyx_n_s_CDLSHORTLINE);
  PyList_SET_ITEM(__pyx_t_3, 67, __pyx_n_s_CDLSHORTLINE);
  __Pyx_INCREF(__pyx_n_s_CDLSPINNINGTOP);
  __Pyx_GIVEREF(__pyx_n_s_CDLSPINNINGTOP);
  PyList_SET_ITEM(__pyx_t_3, 68, __pyx_n_s_CDLSPINNINGTOP);
  __Pyx_INCREF(__pyx_n_s_CDLSTALLEDPATTERN);
  __Pyx_GIVEREF(__pyx_n_s_CDLSTALLEDPATTERN);
  PyList_SET_ITEM(__pyx_t_3, 69, __pyx_n_s_CDLSTALLEDPATTERN);
  __Pyx_INCREF(__pyx_n_s_CDLSTICKSANDWICH);
  __Pyx_GIVEREF(__pyx_n_s_CDLSTICKSANDWICH);
  PyList_SET_ITEM(__pyx_t_3, 70, __pyx_n_s_CDLSTICKSANDWICH);
  __Pyx_INCREF(__pyx_n_s_CDLTAKURI);
  __Pyx_GIVEREF(__pyx_n_s_CDLTAKURI);
  PyList_SET_ITEM(__pyx_t_3, 71, __pyx_n_s_CDLTAKURI);
  __Pyx_INCREF(__pyx_n_s_CDLTASUKIGAP);
  __Pyx_GIVEREF(__pyx_n_s_CDLTASUKIGAP);
  PyList_SET_ITEM(__pyx_t_3, 72, __pyx_n_s_CDLTASUKIGAP);
  __Pyx_INCREF(__pyx_n_s_CDLTHRUSTING);
  __Pyx_GIVEREF(__pyx_n_s_CDLTHRUSTING);
  PyList_SET_ITEM(__pyx_t_3, 73, __pyx_n_s_CDLTHRUSTING);
  __Pyx_INCREF(__pyx_n_s_CDLTRISTAR);
  __Pyx_GIVEREF(__pyx_n_s_CDLTRISTAR);
  PyList_SET_ITEM(__pyx_t_3, 74, __pyx_n_s_CDLTRISTAR);
  __Pyx_INCREF(__pyx_n_s_CDLUNIQUE3RIVER);
  __Pyx_GIVEREF(__pyx_n_s_CDLUNIQUE3RIVER);
  PyList_SET_ITEM(__pyx_t_3, 75, __pyx_n_s_CDLUNIQUE3RIVER);
  __Pyx_INCREF(__pyx_n_s_CDLUPSIDEGAP2CROWS);
  __Pyx_GIVEREF(__pyx_n_s_CDLUPSIDEGAP2CROWS);
  PyList_SET_ITEM(__pyx_t_3, 76, __pyx_n_s_CDLUPSIDEGAP2CROWS);
  __Pyx_INCREF(__pyx_n_s_CDLXSIDEGAP3METHODS);
  __Pyx_GIVEREF(__pyx_n_s_CDLXSIDEGAP3METHODS);
  PyList_SET_ITEM(__pyx_t_3, 77, __pyx_n_s_CDLXSIDEGAP3METHODS);
  __Pyx_INCREF(__pyx_n_s_CEIL);
  __Pyx_GIVEREF(__pyx_n_s_CEIL);
  PyList_SET_ITEM(__pyx_t_3, 78, __pyx_n_s_CEIL);
  __Pyx_INCREF(__pyx_n_s_CMO);
  __Pyx_GIVEREF(__pyx_n_s_CMO);
  PyList_SET_ITEM(__pyx_t_3, 79, __pyx_n_s_CMO);
  __Pyx_INCREF(__pyx_n_s_CORREL);
  __Pyx_GIVEREF(__pyx_n_s_CORREL);
  PyList_SET_ITEM(__pyx_t_3, 80, __pyx_n_s_CORREL);
  __Pyx_INCREF(__pyx_n_s_COS);
  __Pyx_GIVEREF(__pyx_n_s_COS);
  PyList_SET_ITEM(__pyx_t_3, 81, __pyx_n_s_COS);
  __Pyx_INCREF(__pyx_n_s_COSH);
  __Pyx_GIVEREF(__pyx_n_s_COSH);
  PyList_SET_ITEM(__pyx_t_3, 82, __pyx_n_s_COSH);
  __Pyx_INCREF(__pyx_n_s_DEMA);
  __Pyx_GIVEREF(__pyx_n_s_DEMA);
  PyList_SET_ITEM(__pyx_t_3, 83, __pyx_n_s_DEMA);
  __Pyx_INCREF(__pyx_n_s_DIV);
  __Pyx_GIVEREF(__pyx_n_s_DIV);
  PyList_SET_ITEM(__pyx_t_3, 84, __pyx_n_s_DIV);
  __Pyx_INCREF(__pyx_n_s_DX);
  __Pyx_GIVEREF(__pyx_n_s_DX);
  PyList_SET_ITEM(__pyx_t_3, 85, __pyx_n_s_DX);
  __Pyx_INCREF(__pyx_n_s_EMA);
  __Pyx_GIVEREF(__pyx_n_s_EMA);
  PyList_SET_ITEM(__pyx_t_3, 86, __pyx_n_s_EMA);
  __Pyx_INCREF(__pyx_n_s_EXP);
  __Pyx_GIVEREF(__pyx_n_s_EXP);
  PyList_SET_ITEM(__pyx_t_3, 87, __pyx_n_s_EXP);
  __Pyx_INCREF(__pyx_n_s_FLOOR);
  __Pyx_GIVEREF(__pyx_n_s_FLOOR);
  PyList_SET_ITEM(__pyx_t_3, 88, __pyx_n_s_FLOOR);
  __Pyx_INCREF(__pyx_n_s_HT_DCPERIOD);
  __Pyx_GIVEREF(__pyx_n_s_HT_DCPERIOD);
  PyList_SET_ITEM(__pyx_t_3, 89, __pyx_n_s_HT_DCPERIOD);
  __Pyx_INCREF(__pyx_n_s_HT_DCPHASE);
  __Pyx_GIVEREF(__pyx_n_s_HT_DCPHASE);
  PyList_SET_ITEM(__pyx_t_3, 90, __pyx_n_s_HT_DCPHASE);
  __Pyx_INCREF(__pyx_n_s_HT_PHASOR);
  __Pyx_GIVEREF(__pyx_n_s_HT_PHASOR);
  PyList_SET_ITEM(__pyx_t_3, 91, __pyx_n_s_HT_PHASOR);
  __Pyx_INCREF(__pyx_n_s_HT_SINE);
  __Pyx_GIVEREF(__pyx_n_s_HT_SINE);
  PyList_SET_ITEM(__pyx_t_3, 92, __pyx_n_s_HT_SINE);
  __Pyx_INCREF(__pyx_n_s_HT_TRENDLINE);
  __Pyx_GIVEREF(__pyx_n_s_HT_TRENDLINE);
  PyList_SET_ITEM(__pyx_t_3, 93, __pyx_n_s_HT_TRENDLINE);
  __Pyx_INCREF(__pyx_n_s_HT_TRENDMODE);
  __Pyx_GIVEREF(__pyx_n_s_HT_TRENDMODE);
  PyList_SET_ITEM(__pyx_t_3, 94, __pyx_n_s_HT_TRENDMODE);
  __Pyx_INCREF(__pyx_n_s_KAMA);
  __Pyx_GIVEREF(__pyx_n_s_KAMA);
  PyList_SET_ITEM(__pyx_t_3, 95, __pyx_n_s_KAMA);
  __Pyx_INCREF(__pyx_n_s_LINEARREG);
  __Pyx_GIVEREF(__pyx_n_s_LINEARREG);
  PyList_SET_ITEM(__pyx_t_3, 96, __pyx_n_s_LINEARREG);
  __Pyx_INCREF(__pyx_n_s_LINEARREG_ANGLE);
  __Pyx_GIVEREF(__pyx_n_s_LINEARREG_ANGLE);
  PyList_SET_ITEM(__pyx_t_3, 97, __pyx_n_s_LINEARREG_ANGLE);
  __Pyx_INCREF(__pyx_n_s_LINEARREG_INTERCEPT);
  __Pyx_GIVEREF(__pyx_n_s_LINEARREG_INTERCEPT);
  PyList_SET_ITEM(__pyx_t_3, 98, __pyx_n_s_LINEARREG_INTERCEPT);
  __Pyx_INCREF(__pyx_n_s_LINEARREG_SLOPE);
  __Pyx_GIVEREF(__pyx_n_s_LINEARREG_SLOPE);
  PyList_SET_ITEM(__pyx_t_3, 99, __pyx_n_s_LINEARREG_SLOPE);
  __Pyx_INCREF(__pyx_n_s_LN);
  __Pyx_GIVEREF(__pyx_n_s_LN);
  PyList_SET_ITEM(__pyx_t_3, 100, __pyx_n_s_LN);
  __Pyx_INCREF(__pyx_n_s_LOG10);
  __Pyx_GIVEREF(__pyx_n_s_LOG10);
  PyList_SET_ITEM(__pyx_t_3, 101, __pyx_n_s_LOG10);
  __Pyx_INCREF(__pyx_n_s_MA);
  __Pyx_GIVEREF(__pyx_n_s_MA);
  PyList_SET_ITEM(__pyx_t_3, 102, __pyx_n_s_MA);
  __Pyx_INCREF(__pyx_n_s_MACD);
  __Pyx_GIVEREF(__pyx_n_s_MACD);
  PyList_SET_ITEM(__pyx_t_3, 103, __pyx_n_s_MACD);
  __Pyx_INCREF(__pyx_n_s_MACDEXT);
  __Pyx_GIVEREF(__pyx_n_s_MACDEXT);
  PyList_SET_ITEM(__pyx_t_3, 104, __pyx_n_s_MACDEXT);
  __Pyx_INCREF(__pyx_n_s_MACDFIX);
  __Pyx_GIVEREF(__pyx_n_s_MACDFIX);
  PyList_SET_ITEM(__pyx_t_3, 105, __pyx_n_s_MACDFIX);
  __Pyx_INCREF(__pyx_n_s_MAMA);
  __Pyx_GIVEREF(__pyx_n_s_MAMA);
  PyList_SET_ITEM(__pyx_t_3, 106, __pyx_n_s_MAMA);
  __Pyx_INCREF(__pyx_n_s_MAVP);
  __Pyx_GIVEREF(__pyx_n_s_MAVP);
  PyList_SET_ITEM(__pyx_t_3, 107, __pyx_n_s_MAVP);
  __Pyx_INCREF(__pyx_n_s_MAX);
  __Pyx_GIVEREF(__pyx_n_s_MAX);
  PyList_SET_ITEM(__pyx_t_3, 108, __pyx_n_s_MAX);
  __Pyx_INCREF(__pyx_n_s_MAXINDEX);
  __Pyx_GIVEREF(__pyx_n_s_MAXINDEX);
  PyList_SET_ITEM(__pyx_t_3, 109, __pyx_n_s_MAXINDEX);
  __Pyx_INCREF(__pyx_n_s_MEDPRICE);
  __Pyx_GIVEREF(__pyx_n_s_MEDPRICE);
  PyList_SET_ITEM(__pyx_t_3, 110, __pyx_n_s_MEDPRICE);
  __Pyx_INCREF(__pyx_n_s_MFI);
  __Pyx_GIVEREF(__pyx_n_s_MFI);
  PyList_SET_ITEM(__pyx_t_3, 111, __pyx_n_s_MFI);
  __Pyx_INCREF(__pyx_n_s_MIDPOINT);
  __Pyx_GIVEREF(__pyx_n_s_MIDPOINT);
  PyList_SET_ITEM(__pyx_t_3, 112, __pyx_n_s_MIDPOINT);
  __Pyx_INCREF(__pyx_n_s_MIDPRICE);
  __Pyx_GIVEREF(__pyx_n_s_MIDPRICE);
  PyList_SET_ITEM(__pyx_t_3, 113, __pyx_n_s_MIDPRICE);
  __Pyx_INCREF(__pyx_n_s_MIN);
  __Pyx_GIVEREF(__pyx_n_s_MIN);
  PyList_SET_ITEM(__pyx_t_3, 114, __pyx_n_s_MIN);
  __Pyx_INCREF(__pyx_n_s_MININDEX);
  __Pyx_GIVEREF(__pyx_n_s_MININDEX);
  PyList_SET_ITEM(__pyx_t_3, 115, __pyx_n_s_MININDEX);
  __Pyx_INCREF(__pyx_n_s_MINMAX);
  __Pyx_GIVEREF(__pyx_n_s_MINMAX);
  PyList_SET_ITEM(__pyx_t_3, 116, __pyx_n_s_MINMAX);
  __Pyx_INCREF(__pyx_n_s_MINMAXINDEX);
  __Pyx_GIVEREF(__pyx_n_s_MINMAXINDEX);
  PyList_SET_ITEM(__pyx_t_3, 117, __pyx_n_s_MINMAXINDEX);
  __Pyx_INCREF(__pyx_n_s_MINUS_DI);
  __Pyx_GIVEREF(__pyx_n_s_MINUS_DI);
  PyList_SET_ITEM(__pyx_t_3, 118, __pyx_n_s_MINUS_DI);
  __Pyx_INCREF(__pyx_n_s_MINUS_DM);
  __Pyx_GIVEREF(__pyx_n_s_MINUS_DM);
  PyList_SET_ITEM(__pyx_t_3, 119, __pyx_n_s_MINUS_DM);
  __Pyx_INCREF(__pyx_n_s_MOM);
  __Pyx_GIVEREF(__pyx_n_s_MOM);
  PyList_SET_ITEM(__pyx_t_3, 120, __pyx_n_s_MOM);
  __Pyx_INCREF(__pyx_n_s_MULT);
  __Pyx_GIVEREF(__pyx_n_s_MULT);
  PyList_SET_ITEM(__pyx_t_3, 121, __pyx_n_s_MULT);
  __Pyx_INCREF(__pyx_n_s_NATR);
  __Pyx_GIVEREF(__pyx_n_s_NATR);
  PyList_SET_ITEM(__pyx_t_3, 122, __pyx_n_s_NATR);
  __Pyx_INCREF(__pyx_n_s_OBV);
  __Pyx_GIVEREF(__pyx_n_s_OBV);
  PyList_SET_ITEM(__pyx_t_3, 123, __pyx_n_s_OBV);
  __Pyx_INCREF(__pyx_n_s_PLUS_DI);
  __Pyx_GIVEREF(__pyx_n_s_PLUS_DI);
  PyList_SET_ITEM(__pyx_t_3, 124, __pyx_n_s_PLUS_DI);
  __Pyx_INCREF(__pyx_n_s_PLUS_DM);
  __Pyx_GIVEREF(__pyx_n_s_PLUS_DM);
  PyList_SET_ITEM(__pyx_t_3, 125, __pyx_n_s_PLUS_DM);
  __Pyx_INCREF(__pyx_n_s_PPO);
  __Pyx_GIVEREF(__pyx_n_s_PPO);
  PyList_SET_ITEM(__pyx_t_3, 126, __pyx_n_s_PPO);
  __Pyx_INCREF(__pyx_n_s_ROC);
  __Pyx_GIVEREF(__pyx_n_s_ROC);
  PyList_SET_ITEM(__pyx_t_3, 127, __pyx_n_s_ROC);
  __Pyx_INCREF(__pyx_n_s_ROCP);
  __Pyx_GIVEREF(__pyx_n_s_ROCP);
  PyList_SET_ITEM(__pyx_t_3, 128, __pyx_n_s_ROCP);
  __Pyx_INCREF(__pyx_n_s_ROCR);
  __Pyx_GIVEREF(__pyx_n_s_ROCR);
  PyList_SET_ITEM(__pyx_t_3, 129, __pyx_n_s_ROCR);
  __Pyx_INCREF(__pyx_n_s_ROCR100);
  __Pyx_GIVEREF(__pyx_n_s_ROCR100);
  PyList_SET_ITEM(__pyx_t_3, 130, __pyx_n_s_ROCR100);
  __Pyx_INCREF(__pyx_n_s_RSI);
  __Pyx_GIVEREF(__pyx_n_s_RSI);
  PyList_SET_ITEM(__pyx_t_3, 131, __pyx_n_s_RSI);
  __Pyx_INCREF(__pyx_n_s_SAR);
  __Pyx_GIVEREF(__pyx_n_s_SAR);
  PyList_SET_ITEM(__pyx_t_3, 132, __pyx_n_s_SAR);
  __Pyx_INCREF(__pyx_n_s_SAREXT);
  __Pyx_GIVEREF(__pyx_n_s_SAREXT);
  PyList_SET_ITEM(__pyx_t_3, 133, __pyx_n_s_SAREXT);
  __Pyx_INCREF(__pyx_n_s_SIN);
  __Pyx_GIVEREF(__pyx_n_s_SIN);
  PyList_SET_ITEM(__pyx_t_3, 134, __pyx_n_s_SIN);
  __Pyx_INCREF(__pyx_n_s_SINH);
  __Pyx_GIVEREF(__pyx_n_s_SINH);
  PyList_SET_ITEM(__pyx_t_3, 135, __pyx_n_s_SINH);
  __Pyx_INCREF(__pyx_n_s_SMA);
  __Pyx_GIVEREF(__pyx_n_s_SMA);
  PyList_SET_ITEM(__pyx_t_3, 136, __pyx_n_s_SMA);
  __Pyx_INCREF(__pyx_n_s_SQRT);
  __Pyx_GIVEREF(__pyx_n_s_SQRT);
  PyList_SET_ITEM(__pyx_t_3, 137, __pyx_n_s_SQRT);
  __Pyx_INCREF(__pyx_n_s_STDDEV);
  __Pyx_GIVEREF(__pyx_n_s_STDDEV);
  PyList_SET_ITEM(__pyx_t_3, 138, __pyx_n_s_STDDEV);
  __Pyx_INCREF(__pyx_n_s_STOCH);
  __Pyx_GIVEREF(__pyx_n_s_STOCH);
  PyList_SET_ITEM(__pyx_t_3, 139, __pyx_n_s_STOCH);
  __Pyx_INCREF(__pyx_n_s_STOCHF);
  __Pyx_GIVEREF(__pyx_n_s_STOCHF);
  PyList_SET_ITEM(__pyx_t_3, 140, __pyx_n_s_STOCHF);
  __Pyx_INCREF(__pyx_n_s_STOCHRSI);
  __Pyx_GIVEREF(__pyx_n_s_STOCHRSI);
  PyList_SET_ITEM(__pyx_t_3, 141, __pyx_n_s_STOCHRSI);
  __Pyx_INCREF(__pyx_n_s_SUB);
  __Pyx_GIVEREF(__pyx_n_s_SUB);
  PyList_SET_ITEM(__pyx_t_3, 142, __pyx_n_s_SUB);
  __Pyx_INCREF(__pyx_n_s_SUM);
  __Pyx_GIVEREF(__pyx_n_s_SUM);
  PyList_SET_ITEM(__pyx_t_3, 143, __pyx_n_s_SUM);
  __Pyx_INCREF(__pyx_n_s_T3);
  __Pyx_GIVEREF(__pyx_n_s_T3);
  PyList_SET_ITEM(__pyx_t_3, 144, __pyx_n_s_T3);
  __Pyx_INCREF(__pyx_n_s_TAN);
  __Pyx_GIVEREF(__pyx_n_s_TAN);
  PyList_SET_ITEM(__pyx_t_3, 145, __pyx_n_s_TAN);
  __Pyx_INCREF(__pyx_n_s_TANH);
  __Pyx_GIVEREF(__pyx_n_s_TANH);
  PyList_SET_ITEM(__pyx_t_3, 146, __pyx_n_s_TANH);
  __Pyx_INCREF(__pyx_n_s_TEMA);
  __Pyx_GIVEREF(__pyx_n_s_TEMA);
  PyList_SET_ITEM(__pyx_t_3, 147, __pyx_n_s_TEMA);
  __Pyx_INCREF(__pyx_n_s_TRANGE);
  __Pyx_GIVEREF(__pyx_n_s_TRANGE);
  PyList_SET_ITEM(__pyx_t_3, 148, __pyx_n_s_TRANGE);
  __Pyx_INCREF(__pyx_n_s_TRIMA);
  __Pyx_GIVEREF(__pyx_n_s_TRIMA);
  PyList_SET_ITEM(__pyx_t_3, 149, __pyx_n_s_TRIMA);
  __Pyx_INCREF(__pyx_n_s_TRIX);
  __Pyx_GIVEREF(__pyx_n_s_TRIX);
  PyList_SET_ITEM(__pyx_t_3, 150, __pyx_n_s_TRIX);
  __Pyx_INCREF(__pyx_n_s_TSF);
  __Pyx_GIVEREF(__pyx_n_s_TSF);
  PyList_SET_ITEM(__pyx_t_3, 151, __pyx_n_s_TSF);
  __Pyx_INCREF(__pyx_n_s_TYPPRICE);
  __Pyx_GIVEREF(__pyx_n_s_TYPPRICE);
  PyList_SET_ITEM(__pyx_t_3, 152, __pyx_n_s_TYPPRICE);
  __Pyx_INCREF(__pyx_n_s_ULTOSC);
  __Pyx_GIVEREF(__pyx_n_s_ULTOSC);
  PyList_SET_ITEM(__pyx_t_3, 153, __pyx_n_s_ULTOSC);
  __Pyx_INCREF(__pyx_n_s_VAR);
  __Pyx_GIVEREF(__pyx_n_s_VAR);
  PyList_SET_ITEM(__pyx_t_3, 154, __pyx_n_s_VAR);
  __Pyx_INCREF(__pyx_n_s_WCLPRICE);
  __Pyx_GIVEREF(__pyx_n_s_WCLPRICE);
  PyList_SET_ITEM(__pyx_t_3, 155, __pyx_n_s_WCLPRICE);
  __Pyx_INCREF(__pyx_n_s_WILLR);
  __Pyx_GIVEREF(__pyx_n_s_WILLR);
  PyList_SET_ITEM(__pyx_t_3, 156, __pyx_n_s_WILLR);
  __Pyx_INCREF(__pyx_n_s_WMA);
  __Pyx_GIVEREF(__pyx_n_s_WMA);
  PyList_SET_ITEM(__pyx_t_3, 157, __pyx_n_s_WMA);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_all, __pyx_t_3) < 0) __PYX_ERR(0, 8076, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "talib/stream.pyx":1
 * cimport numpy as np             # <<<<<<<<<<<<<<
 * from numpy import nan
 * from cython import boundscheck, wraparound
 */
  __pyx_t_3 = PyDict_New(); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_GOTREF(__pyx_t_3);
  if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_3) < 0) __PYX_ERR(0, 1, __pyx_L1_error)
  __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0;

  /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":976
 *      arr.base = baseptr
 * 
 * cdef inline object get_array_base(ndarray arr):             # <<<<<<<<<<<<<<
 *     if arr.base is NULL:
 *         return None
 */

  /*--- Wrapped vars code ---*/

  goto __pyx_L0;
  __pyx_L1_error:;
  __Pyx_XDECREF(__pyx_t_1);
  __Pyx_XDECREF(__pyx_t_2);
  __Pyx_XDECREF(__pyx_t_3);
  if (__pyx_m) {
    if (__pyx_d) {
      __Pyx_AddTraceback("init talib.stream", __pyx_clineno, __pyx_lineno, __pyx_filename);
    }
    Py_DECREF(__pyx_m); __pyx_m = 0;
  } else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_ImportError, "init talib.stream");
  }
  __pyx_L0:;
  __Pyx_RefNannyFinishContext();
  #if PY_MAJOR_VERSION < 3
  return;
  #else
  return __pyx_m;
  #endif
}

/* --- Runtime support code --- */
/* Refnanny */
#if CYTHON_REFNANNY
static __Pyx_RefNannyAPIStruct *__Pyx_RefNannyImportAPI(const char *modname) {
    PyObject *m = NULL, *p = NULL;
    void *r = NULL;
    m = PyImport_ImportModule((char *)modname);
    if (!m) goto end;
    p = PyObject_GetAttrString(m, (char *)"RefNannyAPI");
    if (!p) goto end;
    r = PyLong_AsVoidPtr(p);
end:
    Py_XDECREF(p);
    Py_XDECREF(m);
    return (__Pyx_RefNannyAPIStruct *)r;
}
#endif

/* GetBuiltinName */
static PyObject *__Pyx_GetBuiltinName(PyObject *name) {
    PyObject* result = __Pyx_PyObject_GetAttrStr(__pyx_b, name);
    if (unlikely(!result)) {
        PyErr_Format(PyExc_NameError,
#if PY_MAJOR_VERSION >= 3
            "name '%U' is not defined", name);
#else
            "name '%.200s' is not defined", PyString_AS_STRING(name));
#endif
    }
    return result;
}

/* ArgTypeTest */
static void __Pyx_RaiseArgumentTypeInvalid(const char* name, PyObject *obj, PyTypeObject *type) {
    PyErr_Format(PyExc_TypeError,
        "Argument '%.200s' has incorrect type (expected %.200s, got %.200s)",
        name, type->tp_name, Py_TYPE(obj)->tp_name);
}
static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed,
    const char *name, int exact)
{
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (none_allowed && obj == Py_None) return 1;
    else if (exact) {
        if (likely(Py_TYPE(obj) == type)) return 1;
        #if PY_MAJOR_VERSION == 2
        else if ((type == &PyBaseString_Type) && likely(__Pyx_PyBaseString_CheckExact(obj))) return 1;
        #endif
    }
    else {
        if (likely(PyObject_TypeCheck(obj, type))) return 1;
    }
    __Pyx_RaiseArgumentTypeInvalid(name, obj, type);
    return 0;
}

/* PyObjectCall */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE PyObject* __Pyx_PyObject_Call(PyObject *func, PyObject *arg, PyObject *kw) {
    PyObject *result;
    ternaryfunc call = func->ob_type->tp_call;
    if (unlikely(!call))
        return PyObject_Call(func, arg, kw);
    if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object")))
        return NULL;
    result = (*call)(func, arg, kw);
    Py_LeaveRecursiveCall();
    if (unlikely(!result) && unlikely(!PyErr_Occurred())) {
        PyErr_SetString(
            PyExc_SystemError,
            "NULL result without error in PyObject_Call");
    }
    return result;
}
#endif

/* PyErrFetchRestore */
#if CYTHON_COMPILING_IN_CPYTHON
static CYTHON_INLINE void __Pyx_ErrRestoreInState(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) {
    PyObject *tmp_type, *tmp_value, *tmp_tb;
    tmp_type = tstate->curexc_type;
    tmp_value = tstate->curexc_value;
    tmp_tb = tstate->curexc_traceback;
    tstate->curexc_type = type;
    tstate->curexc_value = value;
    tstate->curexc_traceback = tb;
    Py_XDECREF(tmp_type);
    Py_XDECREF(tmp_value);
    Py_XDECREF(tmp_tb);
}
static CYTHON_INLINE void __Pyx_ErrFetchInState(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) {
    *type = tstate->curexc_type;
    *value = tstate->curexc_value;
    *tb = tstate->curexc_traceback;
    tstate->curexc_type = 0;
    tstate->curexc_value = 0;
    tstate->curexc_traceback = 0;
}
#endif

/* RaiseException */
#if PY_MAJOR_VERSION < 3
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb,
                        CYTHON_UNUSED PyObject *cause) {
    __Pyx_PyThreadState_declare
    Py_XINCREF(type);
    if (!value || value == Py_None)
        value = NULL;
    else
        Py_INCREF(value);
    if (!tb || tb == Py_None)
        tb = NULL;
    else {
        Py_INCREF(tb);
        if (!PyTraceBack_Check(tb)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: arg 3 must be a traceback or None");
            goto raise_error;
        }
    }
    if (PyType_Check(type)) {
#if CYTHON_COMPILING_IN_PYPY
        if (!value) {
            Py_INCREF(Py_None);
            value = Py_None;
        }
#endif
        PyErr_NormalizeException(&type, &value, &tb);
    } else {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto raise_error;
        }
        value = type;
        type = (PyObject*) Py_TYPE(type);
        Py_INCREF(type);
        if (!PyType_IsSubtype((PyTypeObject *)type, (PyTypeObject *)PyExc_BaseException)) {
            PyErr_SetString(PyExc_TypeError,
                "raise: exception class must be a subclass of BaseException");
            goto raise_error;
        }
    }
    __Pyx_PyThreadState_assign
    __Pyx_ErrRestore(type, value, tb);
    return;
raise_error:
    Py_XDECREF(value);
    Py_XDECREF(type);
    Py_XDECREF(tb);
    return;
}
#else
static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause) {
    PyObject* owned_instance = NULL;
    if (tb == Py_None) {
        tb = 0;
    } else if (tb && !PyTraceBack_Check(tb)) {
        PyErr_SetString(PyExc_TypeError,
            "raise: arg 3 must be a traceback or None");
        goto bad;
    }
    if (value == Py_None)
        value = 0;
    if (PyExceptionInstance_Check(type)) {
        if (value) {
            PyErr_SetString(PyExc_TypeError,
                "instance exception may not have a separate value");
            goto bad;
        }
        value = type;
        type = (PyObject*) Py_TYPE(value);
    } else if (PyExceptionClass_Check(type)) {
        PyObject *instance_class = NULL;
        if (value && PyExceptionInstance_Check(value)) {
            instance_class = (PyObject*) Py_TYPE(value);
            if (instance_class != type) {
                int is_subclass = PyObject_IsSubclass(instance_class, type);
                if (!is_subclass) {
                    instance_class = NULL;
                } else if (unlikely(is_subclass == -1)) {
                    goto bad;
                } else {
                    type = instance_class;
                }
            }
        }
        if (!instance_class) {
            PyObject *args;
            if (!value)
                args = PyTuple_New(0);
            else if (PyTuple_Check(value)) {
                Py_INCREF(value);
                args = value;
            } else
                args = PyTuple_Pack(1, value);
            if (!args)
                goto bad;
            owned_instance = PyObject_Call(type, args, NULL);
            Py_DECREF(args);
            if (!owned_instance)
                goto bad;
            value = owned_instance;
            if (!PyExceptionInstance_Check(value)) {
                PyErr_Format(PyExc_TypeError,
                             "calling %R should have returned an instance of "
                             "BaseException, not %R",
                             type, Py_TYPE(value));
                goto bad;
            }
        }
    } else {
        PyErr_SetString(PyExc_TypeError,
            "raise: exception class must be a subclass of BaseException");
        goto bad;
    }
#if PY_VERSION_HEX >= 0x03030000
    if (cause) {
#else
    if (cause && cause != Py_None) {
#endif
        PyObject *fixed_cause;
        if (cause == Py_None) {
            fixed_cause = NULL;
        } else if (PyExceptionClass_Check(cause)) {
            fixed_cause = PyObject_CallObject(cause, NULL);
            if (fixed_cause == NULL)
                goto bad;
        } else if (PyExceptionInstance_Check(cause)) {
            fixed_cause = cause;
            Py_INCREF(fixed_cause);
        } else {
            PyErr_SetString(PyExc_TypeError,
                            "exception causes must derive from "
                            "BaseException");
            goto bad;
        }
        PyException_SetCause(value, fixed_cause);
    }
    PyErr_SetObject(type, value);
    if (tb) {
#if CYTHON_COMPILING_IN_PYPY
        PyObject *tmp_type, *tmp_value, *tmp_tb;
        PyErr_Fetch(&tmp_type, &tmp_value, &tmp_tb);
        Py_INCREF(tb);
        PyErr_Restore(tmp_type, tmp_value, tb);
        Py_XDECREF(tmp_tb);
#else
        PyThreadState *tstate = PyThreadState_GET();
        PyObject* tmp_tb = tstate->curexc_traceback;
        if (tb != tmp_tb) {
            Py_INCREF(tb);
            tstate->curexc_traceback = tb;
            Py_XDECREF(tmp_tb);
        }
#endif
    }
bad:
    Py_XDECREF(owned_instance);
    return;
}
#endif

/* ExtTypeTest */
  static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type) {
    if (unlikely(!type)) {
        PyErr_SetString(PyExc_SystemError, "Missing type object");
        return 0;
    }
    if (likely(PyObject_TypeCheck(obj, type)))
        return 1;
    PyErr_Format(PyExc_TypeError, "Cannot convert %.200s to %.200s",
                 Py_TYPE(obj)->tp_name, type->tp_name);
    return 0;
}

/* RaiseArgTupleInvalid */
  static void __Pyx_RaiseArgtupleInvalid(
    const char* func_name,
    int exact,
    Py_ssize_t num_min,
    Py_ssize_t num_max,
    Py_ssize_t num_found)
{
    Py_ssize_t num_expected;
    const char *more_or_less;
    if (num_found < num_min) {
        num_expected = num_min;
        more_or_less = "at least";
    } else {
        num_expected = num_max;
        more_or_less = "at most";
    }
    if (exact) {
        more_or_less = "exactly";
    }
    PyErr_Format(PyExc_TypeError,
                 "%.200s() takes %.8s %" CYTHON_FORMAT_SSIZE_T "d positional argument%.1s (%" CYTHON_FORMAT_SSIZE_T "d given)",
                 func_name, more_or_less, num_expected,
                 (num_expected == 1) ? "" : "s", num_found);
}

/* RaiseDoubleKeywords */
  static void __Pyx_RaiseDoubleKeywordsError(
    const char* func_name,
    PyObject* kw_name)
{
    PyErr_Format(PyExc_TypeError,
        #if PY_MAJOR_VERSION >= 3
        "%s() got multiple values for keyword argument '%U'", func_name, kw_name);
        #else
        "%s() got multiple values for keyword argument '%s'", func_name,
        PyString_AsString(kw_name));
        #endif
}

/* ParseKeywords */
  static int __Pyx_ParseOptionalKeywords(
    PyObject *kwds,
    PyObject **argnames[],
    PyObject *kwds2,
    PyObject *values[],
    Py_ssize_t num_pos_args,
    const char* function_name)
{
    PyObject *key = 0, *value = 0;
    Py_ssize_t pos = 0;
    PyObject*** name;
    PyObject*** first_kw_arg = argnames + num_pos_args;
    while (PyDict_Next(kwds, &pos, &key, &value)) {
        name = first_kw_arg;
        while (*name && (**name != key)) name++;
        if (*name) {
            values[name-argnames] = value;
            continue;
        }
        name = first_kw_arg;
        #if PY_MAJOR_VERSION < 3
        if (likely(PyString_CheckExact(key)) || likely(PyString_Check(key))) {
            while (*name) {
                if ((CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**name) == PyString_GET_SIZE(key))
                        && _PyString_Eq(**name, key)) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    if ((**argname == key) || (
                            (CYTHON_COMPILING_IN_PYPY || PyString_GET_SIZE(**argname) == PyString_GET_SIZE(key))
                             && _PyString_Eq(**argname, key))) {
                        goto arg_passed_twice;
                    }
                    argname++;
                }
            }
        } else
        #endif
        if (likely(PyUnicode_Check(key))) {
            while (*name) {
                int cmp = (**name == key) ? 0 :
                #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                    (PyUnicode_GET_SIZE(**name) != PyUnicode_GET_SIZE(key)) ? 1 :
                #endif
                    PyUnicode_Compare(**name, key);
                if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                if (cmp == 0) {
                    values[name-argnames] = value;
                    break;
                }
                name++;
            }
            if (*name) continue;
            else {
                PyObject*** argname = argnames;
                while (argname != first_kw_arg) {
                    int cmp = (**argname == key) ? 0 :
                    #if !CYTHON_COMPILING_IN_PYPY && PY_MAJOR_VERSION >= 3
                        (PyUnicode_GET_SIZE(**argname) != PyUnicode_GET_SIZE(key)) ? 1 :
                    #endif
                        PyUnicode_Compare(**argname, key);
                    if (cmp < 0 && unlikely(PyErr_Occurred())) goto bad;
                    if (cmp == 0) goto arg_passed_twice;
                    argname++;
                }
            }
        } else
            goto invalid_keyword_type;
        if (kwds2) {
            if (unlikely(PyDict_SetItem(kwds2, key, value))) goto bad;
        } else {
            goto invalid_keyword;
        }
    }
    return 0;
arg_passed_twice:
    __Pyx_RaiseDoubleKeywordsError(function_name, key);
    goto bad;
invalid_keyword_type:
    PyErr_Format(PyExc_TypeError,
        "%.200s() keywords must be strings", function_name);
    goto bad;
invalid_keyword:
    PyErr_Format(PyExc_TypeError,
    #if PY_MAJOR_VERSION < 3
        "%.200s() got an unexpected keyword argument '%.200s'",
        function_name, PyString_AsString(key));
    #else
        "%s() got an unexpected keyword argument '%U'",
        function_name, key);
    #endif
bad:
    return -1;
}

/* RaiseTooManyValuesToUnpack */
  static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected) {
    PyErr_Format(PyExc_ValueError,
                 "too many values to unpack (expected %" CYTHON_FORMAT_SSIZE_T "d)", expected);
}

/* RaiseNeedMoreValuesToUnpack */
  static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index) {
    PyErr_Format(PyExc_ValueError,
                 "need more than %" CYTHON_FORMAT_SSIZE_T "d value%.1s to unpack",
                 index, (index == 1) ? "" : "s");
}

/* RaiseNoneIterError */
  static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) {
    PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable");
}

/* Import */
  static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level) {
    PyObject *empty_list = 0;
    PyObject *module = 0;
    PyObject *global_dict = 0;
    PyObject *empty_dict = 0;
    PyObject *list;
    #if PY_VERSION_HEX < 0x03030000
    PyObject *py_import;
    py_import = __Pyx_PyObject_GetAttrStr(__pyx_b, __pyx_n_s_import);
    if (!py_import)
        goto bad;
    #endif
    if (from_list)
        list = from_list;
    else {
        empty_list = PyList_New(0);
        if (!empty_list)
            goto bad;
        list = empty_list;
    }
    global_dict = PyModule_GetDict(__pyx_m);
    if (!global_dict)
        goto bad;
    empty_dict = PyDict_New();
    if (!empty_dict)
        goto bad;
    {
        #if PY_MAJOR_VERSION >= 3
        if (level == -1) {
            if (strchr(__Pyx_MODULE_NAME, '.')) {
                #if PY_VERSION_HEX < 0x03030000
                PyObject *py_level = PyInt_FromLong(1);
                if (!py_level)
                    goto bad;
                module = PyObject_CallFunctionObjArgs(py_import,
                    name, global_dict, empty_dict, list, py_level, NULL);
                Py_DECREF(py_level);
                #else
                module = PyImport_ImportModuleLevelObject(
                    name, global_dict, empty_dict, list, 1);
                #endif
                if (!module) {
                    if (!PyErr_ExceptionMatches(PyExc_ImportError))
                        goto bad;
                    PyErr_Clear();
                }
            }
            level = 0;
        }
        #endif
        if (!module) {
            #if PY_VERSION_HEX < 0x03030000
            PyObject *py_level = PyInt_FromLong(level);
            if (!py_level)
                goto bad;
            module = PyObject_CallFunctionObjArgs(py_import,
                name, global_dict, empty_dict, list, py_level, NULL);
            Py_DECREF(py_level);
            #else
            module = PyImport_ImportModuleLevelObject(
                name, global_dict, empty_dict, list, level);
            #endif
        }
    }
bad:
    #if PY_VERSION_HEX < 0x03030000
    Py_XDECREF(py_import);
    #endif
    Py_XDECREF(empty_list);
    Py_XDECREF(empty_dict);
    return module;
}

/* ImportFrom */
  static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name) {
    PyObject* value = __Pyx_PyObject_GetAttrStr(module, name);
    if (unlikely(!value) && PyErr_ExceptionMatches(PyExc_AttributeError)) {
        PyErr_Format(PyExc_ImportError,
        #if PY_MAJOR_VERSION < 3
            "cannot import name %.230s", PyString_AS_STRING(name));
        #else
            "cannot import name %S", name);
        #endif
    }
    return value;
}

/* GetModuleGlobalName */
  static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name) {
    PyObject *result;
#if CYTHON_COMPILING_IN_CPYTHON
    result = PyDict_GetItem(__pyx_d, name);
    if (likely(result)) {
        Py_INCREF(result);
    } else {
#else
    result = PyObject_GetItem(__pyx_d, name);
    if (!result) {
        PyErr_Clear();
#endif
        result = __Pyx_GetBuiltinName(name);
    }
    return result;
}

/* CodeObjectCache */
    static int __pyx_bisect_code_objects(__Pyx_CodeObjectCacheEntry* entries, int count, int code_line) {
    int start = 0, mid = 0, end = count - 1;
    if (end >= 0 && code_line > entries[end].code_line) {
        return count;
    }
    while (start < end) {
        mid = start + (end - start) / 2;
        if (code_line < entries[mid].code_line) {
            end = mid;
        } else if (code_line > entries[mid].code_line) {
             start = mid + 1;
        } else {
            return mid;
        }
    }
    if (code_line <= entries[mid].code_line) {
        return mid;
    } else {
        return mid + 1;
    }
}
static PyCodeObject *__pyx_find_code_object(int code_line) {
    PyCodeObject* code_object;
    int pos;
    if (unlikely(!code_line) || unlikely(!__pyx_code_cache.entries)) {
        return NULL;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if (unlikely(pos >= __pyx_code_cache.count) || unlikely(__pyx_code_cache.entries[pos].code_line != code_line)) {
        return NULL;
    }
    code_object = __pyx_code_cache.entries[pos].code_object;
    Py_INCREF(code_object);
    return code_object;
}
static void __pyx_insert_code_object(int code_line, PyCodeObject* code_object) {
    int pos, i;
    __Pyx_CodeObjectCacheEntry* entries = __pyx_code_cache.entries;
    if (unlikely(!code_line)) {
        return;
    }
    if (unlikely(!entries)) {
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Malloc(64*sizeof(__Pyx_CodeObjectCacheEntry));
        if (likely(entries)) {
            __pyx_code_cache.entries = entries;
            __pyx_code_cache.max_count = 64;
            __pyx_code_cache.count = 1;
            entries[0].code_line = code_line;
            entries[0].code_object = code_object;
            Py_INCREF(code_object);
        }
        return;
    }
    pos = __pyx_bisect_code_objects(__pyx_code_cache.entries, __pyx_code_cache.count, code_line);
    if ((pos < __pyx_code_cache.count) && unlikely(__pyx_code_cache.entries[pos].code_line == code_line)) {
        PyCodeObject* tmp = entries[pos].code_object;
        entries[pos].code_object = code_object;
        Py_DECREF(tmp);
        return;
    }
    if (__pyx_code_cache.count == __pyx_code_cache.max_count) {
        int new_max = __pyx_code_cache.max_count + 64;
        entries = (__Pyx_CodeObjectCacheEntry*)PyMem_Realloc(
            __pyx_code_cache.entries, (size_t)new_max*sizeof(__Pyx_CodeObjectCacheEntry));
        if (unlikely(!entries)) {
            return;
        }
        __pyx_code_cache.entries = entries;
        __pyx_code_cache.max_count = new_max;
    }
    for (i=__pyx_code_cache.count; i>pos; i--) {
        entries[i] = entries[i-1];
    }
    entries[pos].code_line = code_line;
    entries[pos].code_object = code_object;
    __pyx_code_cache.count++;
    Py_INCREF(code_object);
}

/* AddTraceback */
    #include "compile.h"
#include "frameobject.h"
#include "traceback.h"
static PyCodeObject* __Pyx_CreateCodeObjectForTraceback(
            const char *funcname, int c_line,
            int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyObject *py_srcfile = 0;
    PyObject *py_funcname = 0;
    #if PY_MAJOR_VERSION < 3
    py_srcfile = PyString_FromString(filename);
    #else
    py_srcfile = PyUnicode_FromString(filename);
    #endif
    if (!py_srcfile) goto bad;
    if (c_line) {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #else
        py_funcname = PyUnicode_FromFormat( "%s (%s:%d)", funcname, __pyx_cfilenm, c_line);
        #endif
    }
    else {
        #if PY_MAJOR_VERSION < 3
        py_funcname = PyString_FromString(funcname);
        #else
        py_funcname = PyUnicode_FromString(funcname);
        #endif
    }
    if (!py_funcname) goto bad;
    py_code = __Pyx_PyCode_New(
        0,
        0,
        0,
        0,
        0,
        __pyx_empty_bytes, /*PyObject *code,*/
        __pyx_empty_tuple, /*PyObject *consts,*/
        __pyx_empty_tuple, /*PyObject *names,*/
        __pyx_empty_tuple, /*PyObject *varnames,*/
        __pyx_empty_tuple, /*PyObject *freevars,*/
        __pyx_empty_tuple, /*PyObject *cellvars,*/
        py_srcfile,   /*PyObject *filename,*/
        py_funcname,  /*PyObject *name,*/
        py_line,
        __pyx_empty_bytes  /*PyObject *lnotab*/
    );
    Py_DECREF(py_srcfile);
    Py_DECREF(py_funcname);
    return py_code;
bad:
    Py_XDECREF(py_srcfile);
    Py_XDECREF(py_funcname);
    return NULL;
}
static void __Pyx_AddTraceback(const char *funcname, int c_line,
                               int py_line, const char *filename) {
    PyCodeObject *py_code = 0;
    PyFrameObject *py_frame = 0;
    py_code = __pyx_find_code_object(c_line ? c_line : py_line);
    if (!py_code) {
        py_code = __Pyx_CreateCodeObjectForTraceback(
            funcname, c_line, py_line, filename);
        if (!py_code) goto bad;
        __pyx_insert_code_object(c_line ? c_line : py_line, py_code);
    }
    py_frame = PyFrame_New(
        PyThreadState_GET(), /*PyThreadState *tstate,*/
        py_code,             /*PyCodeObject *code,*/
        __pyx_d,      /*PyObject *globals,*/
        0                    /*PyObject *locals*/
    );
    if (!py_frame) goto bad;
    py_frame->f_lineno = py_line;
    PyTraceBack_Here(py_frame);
bad:
    Py_XDECREF(py_code);
    Py_XDECREF(py_frame);
}

/* CIntFromPyVerify */
    #define __PYX_VERIFY_RETURN_INT(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 0)
#define __PYX_VERIFY_RETURN_INT_EXC(target_type, func_type, func_value)\
    __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, 1)
#define __PYX__VERIFY_RETURN_INT(target_type, func_type, func_value, exc)\
    {\
        func_type value = func_value;\
        if (sizeof(target_type) < sizeof(func_type)) {\
            if (unlikely(value != (func_type) (target_type) value)) {\
                func_type zero = 0;\
                if (exc && unlikely(value == (func_type)-1 && PyErr_Occurred()))\
                    return (target_type) -1;\
                if (is_unsigned && unlikely(value < zero))\
                    goto raise_neg_overflow;\
                else\
                    goto raise_overflow;\
            }\
        }\
        return (target_type) value;\
    }

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value) {
    const int neg_one = (int) -1, const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(int) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(int) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(int),
                                     little, !is_unsigned);
    }
}

/* None */
    #if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      return ::std::complex< float >(x, y);
    }
  #else
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      return x + y*(__pyx_t_float_complex)_Complex_I;
    }
  #endif
#else
    static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float x, float y) {
      __pyx_t_float_complex z;
      z.real = x;
      z.imag = y;
      return z;
    }
#endif

/* None */
    #if CYTHON_CCOMPLEX
#else
    static CYTHON_INLINE int __Pyx_c_eqf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
       return (a.real == b.real) && (a.imag == b.imag);
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_sumf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real + b.real;
        z.imag = a.imag + b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_difff(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real - b.real;
        z.imag = a.imag - b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_prodf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        z.real = a.real * b.real - a.imag * b.imag;
        z.imag = a.real * b.imag + a.imag * b.real;
        return z;
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_quotf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
        __pyx_t_float_complex z;
        float denom = b.real * b.real + b.imag * b.imag;
        z.real = (a.real * b.real + a.imag * b.imag) / denom;
        z.imag = (a.imag * b.real - a.real * b.imag) / denom;
        return z;
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_negf(__pyx_t_float_complex a) {
        __pyx_t_float_complex z;
        z.real = -a.real;
        z.imag = -a.imag;
        return z;
    }
    static CYTHON_INLINE int __Pyx_c_is_zerof(__pyx_t_float_complex a) {
       return (a.real == 0) && (a.imag == 0);
    }
    static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_conjf(__pyx_t_float_complex a) {
        __pyx_t_float_complex z;
        z.real =  a.real;
        z.imag = -a.imag;
        return z;
    }
    #if 1
        static CYTHON_INLINE float __Pyx_c_absf(__pyx_t_float_complex z) {
          #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
            return sqrtf(z.real*z.real + z.imag*z.imag);
          #else
            return hypotf(z.real, z.imag);
          #endif
        }
        static CYTHON_INLINE __pyx_t_float_complex __Pyx_c_powf(__pyx_t_float_complex a, __pyx_t_float_complex b) {
            __pyx_t_float_complex z;
            float r, lnr, theta, z_r, z_theta;
            if (b.imag == 0 && b.real == (int)b.real) {
                if (b.real < 0) {
                    float denom = a.real * a.real + a.imag * a.imag;
                    a.real = a.real / denom;
                    a.imag = -a.imag / denom;
                    b.real = -b.real;
                }
                switch ((int)b.real) {
                    case 0:
                        z.real = 1;
                        z.imag = 0;
                        return z;
                    case 1:
                        return a;
                    case 2:
                        z = __Pyx_c_prodf(a, a);
                        return __Pyx_c_prodf(a, a);
                    case 3:
                        z = __Pyx_c_prodf(a, a);
                        return __Pyx_c_prodf(z, a);
                    case 4:
                        z = __Pyx_c_prodf(a, a);
                        return __Pyx_c_prodf(z, z);
                }
            }
            if (a.imag == 0) {
                if (a.real == 0) {
                    return a;
                }
                r = a.real;
                theta = 0;
            } else {
                r = __Pyx_c_absf(a);
                theta = atan2f(a.imag, a.real);
            }
            lnr = logf(r);
            z_r = expf(lnr * b.real - theta * b.imag);
            z_theta = theta * b.real + lnr * b.imag;
            z.real = z_r * cosf(z_theta);
            z.imag = z_r * sinf(z_theta);
            return z;
        }
    #endif
#endif

/* None */
    #if CYTHON_CCOMPLEX
  #ifdef __cplusplus
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      return ::std::complex< double >(x, y);
    }
  #else
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      return x + y*(__pyx_t_double_complex)_Complex_I;
    }
  #endif
#else
    static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double x, double y) {
      __pyx_t_double_complex z;
      z.real = x;
      z.imag = y;
      return z;
    }
#endif

/* None */
    #if CYTHON_CCOMPLEX
#else
    static CYTHON_INLINE int __Pyx_c_eq(__pyx_t_double_complex a, __pyx_t_double_complex b) {
       return (a.real == b.real) && (a.imag == b.imag);
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_sum(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real + b.real;
        z.imag = a.imag + b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_diff(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real - b.real;
        z.imag = a.imag - b.imag;
        return z;
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_prod(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        z.real = a.real * b.real - a.imag * b.imag;
        z.imag = a.real * b.imag + a.imag * b.real;
        return z;
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_quot(__pyx_t_double_complex a, __pyx_t_double_complex b) {
        __pyx_t_double_complex z;
        double denom = b.real * b.real + b.imag * b.imag;
        z.real = (a.real * b.real + a.imag * b.imag) / denom;
        z.imag = (a.imag * b.real - a.real * b.imag) / denom;
        return z;
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_neg(__pyx_t_double_complex a) {
        __pyx_t_double_complex z;
        z.real = -a.real;
        z.imag = -a.imag;
        return z;
    }
    static CYTHON_INLINE int __Pyx_c_is_zero(__pyx_t_double_complex a) {
       return (a.real == 0) && (a.imag == 0);
    }
    static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_conj(__pyx_t_double_complex a) {
        __pyx_t_double_complex z;
        z.real =  a.real;
        z.imag = -a.imag;
        return z;
    }
    #if 1
        static CYTHON_INLINE double __Pyx_c_abs(__pyx_t_double_complex z) {
          #if !defined(HAVE_HYPOT) || defined(_MSC_VER)
            return sqrt(z.real*z.real + z.imag*z.imag);
          #else
            return hypot(z.real, z.imag);
          #endif
        }
        static CYTHON_INLINE __pyx_t_double_complex __Pyx_c_pow(__pyx_t_double_complex a, __pyx_t_double_complex b) {
            __pyx_t_double_complex z;
            double r, lnr, theta, z_r, z_theta;
            if (b.imag == 0 && b.real == (int)b.real) {
                if (b.real < 0) {
                    double denom = a.real * a.real + a.imag * a.imag;
                    a.real = a.real / denom;
                    a.imag = -a.imag / denom;
                    b.real = -b.real;
                }
                switch ((int)b.real) {
                    case 0:
                        z.real = 1;
                        z.imag = 0;
                        return z;
                    case 1:
                        return a;
                    case 2:
                        z = __Pyx_c_prod(a, a);
                        return __Pyx_c_prod(a, a);
                    case 3:
                        z = __Pyx_c_prod(a, a);
                        return __Pyx_c_prod(z, a);
                    case 4:
                        z = __Pyx_c_prod(a, a);
                        return __Pyx_c_prod(z, z);
                }
            }
            if (a.imag == 0) {
                if (a.real == 0) {
                    return a;
                }
                r = a.real;
                theta = 0;
            } else {
                r = __Pyx_c_abs(a);
                theta = atan2(a.imag, a.real);
            }
            lnr = log(r);
            z_r = exp(lnr * b.real - theta * b.imag);
            z_theta = theta * b.real + lnr * b.imag;
            z.real = z_r * cos(z_theta);
            z.imag = z_r * sin(z_theta);
            return z;
        }
    #endif
#endif

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value) {
    const enum NPY_TYPES neg_one = (enum NPY_TYPES) -1, const_zero = (enum NPY_TYPES) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(enum NPY_TYPES) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(enum NPY_TYPES) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(enum NPY_TYPES) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(enum NPY_TYPES) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(enum NPY_TYPES) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(enum NPY_TYPES),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
    static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *x) {
    const int neg_one = (int) -1, const_zero = (int) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(int) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(int, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (int) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case  1: __PYX_VERIFY_RETURN_INT(int, digit, digits[0])
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 2 * PyLong_SHIFT) {
                            return (int) (((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 3 * PyLong_SHIFT) {
                            return (int) (((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) >= 4 * PyLong_SHIFT) {
                            return (int) (((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (int) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(int) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned long, PyLong_AsUnsignedLong(x))
            } else if (sizeof(int) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (int) 0;
                case -1: __PYX_VERIFY_RETURN_INT(int, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(int,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(int) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(int) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                            return (int) ((((((int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(int) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(int) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                            return (int) ((((((((int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(int) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) (((int)-1)*(((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(int) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(int, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(int) - 1 > 4 * PyLong_SHIFT) {
                            return (int) ((((((((((int)digits[3]) << PyLong_SHIFT) | (int)digits[2]) << PyLong_SHIFT) | (int)digits[1]) << PyLong_SHIFT) | (int)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(int) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, long, PyLong_AsLong(x))
            } else if (sizeof(int) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(int, PY_LONG_LONG, PyLong_AsLongLong(x))
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            int val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (int) -1;
        }
    } else {
        int val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (int) -1;
        val = __Pyx_PyInt_As_int(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to int");
    return (int) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to int");
    return (int) -1;
}

/* CIntToPy */
    static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value) {
    const long neg_one = (long) -1, const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
    if (is_unsigned) {
        if (sizeof(long) < sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(unsigned long)) {
            return PyLong_FromUnsignedLong((unsigned long) value);
        } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
            return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value);
        }
    } else {
        if (sizeof(long) <= sizeof(long)) {
            return PyInt_FromLong((long) value);
        } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
            return PyLong_FromLongLong((PY_LONG_LONG) value);
        }
    }
    {
        int one = 1; int little = (int)*(unsigned char *)&one;
        unsigned char *bytes = (unsigned char *)&value;
        return _PyLong_FromByteArray(bytes, sizeof(long),
                                     little, !is_unsigned);
    }
}

/* CIntFromPy */
    static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *x) {
    const long neg_one = (long) -1, const_zero = (long) 0;
    const int is_unsigned = neg_one > const_zero;
#if PY_MAJOR_VERSION < 3
    if (likely(PyInt_Check(x))) {
        if (sizeof(long) < sizeof(long)) {
            __PYX_VERIFY_RETURN_INT(long, long, PyInt_AS_LONG(x))
        } else {
            long val = PyInt_AS_LONG(x);
            if (is_unsigned && unlikely(val < 0)) {
                goto raise_neg_overflow;
            }
            return (long) val;
        }
    } else
#endif
    if (likely(PyLong_Check(x))) {
        if (is_unsigned) {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case  1: __PYX_VERIFY_RETURN_INT(long, digit, digits[0])
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 2 * PyLong_SHIFT) {
                            return (long) (((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 3 * PyLong_SHIFT) {
                            return (long) (((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) >= 4 * PyLong_SHIFT) {
                            return (long) (((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0]));
                        }
                    }
                    break;
            }
#endif
#if CYTHON_COMPILING_IN_CPYTHON
            if (unlikely(Py_SIZE(x) < 0)) {
                goto raise_neg_overflow;
            }
#else
            {
                int result = PyObject_RichCompareBool(x, Py_False, Py_LT);
                if (unlikely(result < 0))
                    return (long) -1;
                if (unlikely(result == 1))
                    goto raise_neg_overflow;
            }
#endif
            if (sizeof(long) <= sizeof(unsigned long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned long, PyLong_AsUnsignedLong(x))
            } else if (sizeof(long) <= sizeof(unsigned PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, unsigned PY_LONG_LONG, PyLong_AsUnsignedLongLong(x))
            }
        } else {
#if CYTHON_USE_PYLONG_INTERNALS
            const digit* digits = ((PyLongObject*)x)->ob_digit;
            switch (Py_SIZE(x)) {
                case  0: return (long) 0;
                case -1: __PYX_VERIFY_RETURN_INT(long, sdigit, (sdigit) (-(sdigit)digits[0]))
                case  1: __PYX_VERIFY_RETURN_INT(long,  digit, +digits[0])
                case -2:
                    if (8 * sizeof(long) - 1 > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 2:
                    if (8 * sizeof(long) > 1 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                            return (long) ((((((long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -3:
                    if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 3:
                    if (8 * sizeof(long) > 2 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                            return (long) ((((((((long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case -4:
                    if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, long, -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) (((long)-1)*(((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
                case 4:
                    if (8 * sizeof(long) > 3 * PyLong_SHIFT) {
                        if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) {
                            __PYX_VERIFY_RETURN_INT(long, unsigned long, (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])))
                        } else if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) {
                            return (long) ((((((((((long)digits[3]) << PyLong_SHIFT) | (long)digits[2]) << PyLong_SHIFT) | (long)digits[1]) << PyLong_SHIFT) | (long)digits[0])));
                        }
                    }
                    break;
            }
#endif
            if (sizeof(long) <= sizeof(long)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, long, PyLong_AsLong(x))
            } else if (sizeof(long) <= sizeof(PY_LONG_LONG)) {
                __PYX_VERIFY_RETURN_INT_EXC(long, PY_LONG_LONG, PyLong_AsLongLong(x))
            }
        }
        {
#if CYTHON_COMPILING_IN_PYPY && !defined(_PyLong_AsByteArray)
            PyErr_SetString(PyExc_RuntimeError,
                            "_PyLong_AsByteArray() not available in PyPy, cannot convert large numbers");
#else
            long val;
            PyObject *v = __Pyx_PyNumber_IntOrLong(x);
 #if PY_MAJOR_VERSION < 3
            if (likely(v) && !PyLong_Check(v)) {
                PyObject *tmp = v;
                v = PyNumber_Long(tmp);
                Py_DECREF(tmp);
            }
 #endif
            if (likely(v)) {
                int one = 1; int is_little = (int)*(unsigned char *)&one;
                unsigned char *bytes = (unsigned char *)&val;
                int ret = _PyLong_AsByteArray((PyLongObject *)v,
                                              bytes, sizeof(val),
                                              is_little, !is_unsigned);
                Py_DECREF(v);
                if (likely(!ret))
                    return val;
            }
#endif
            return (long) -1;
        }
    } else {
        long val;
        PyObject *tmp = __Pyx_PyNumber_IntOrLong(x);
        if (!tmp) return (long) -1;
        val = __Pyx_PyInt_As_long(tmp);
        Py_DECREF(tmp);
        return val;
    }
raise_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "value too large to convert to long");
    return (long) -1;
raise_neg_overflow:
    PyErr_SetString(PyExc_OverflowError,
        "can't convert negative value to long");
    return (long) -1;
}

/* CheckBinaryVersion */
    static int __Pyx_check_binary_version(void) {
    char ctversion[4], rtversion[4];
    PyOS_snprintf(ctversion, 4, "%d.%d", PY_MAJOR_VERSION, PY_MINOR_VERSION);
    PyOS_snprintf(rtversion, 4, "%s", Py_GetVersion());
    if (ctversion[0] != rtversion[0] || ctversion[2] != rtversion[2]) {
        char message[200];
        PyOS_snprintf(message, sizeof(message),
                      "compiletime version %s of module '%.100s' "
                      "does not match runtime version %s",
                      ctversion, __Pyx_MODULE_NAME, rtversion);
        return PyErr_WarnEx(NULL, message, 1);
    }
    return 0;
}

/* ModuleImport */
    #ifndef __PYX_HAVE_RT_ImportModule
#define __PYX_HAVE_RT_ImportModule
static PyObject *__Pyx_ImportModule(const char *name) {
    PyObject *py_name = 0;
    PyObject *py_module = 0;
    py_name = __Pyx_PyIdentifier_FromString(name);
    if (!py_name)
        goto bad;
    py_module = PyImport_Import(py_name);
    Py_DECREF(py_name);
    return py_module;
bad:
    Py_XDECREF(py_name);
    return 0;
}
#endif

/* TypeImport */
    #ifndef __PYX_HAVE_RT_ImportType
#define __PYX_HAVE_RT_ImportType
static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name,
    size_t size, int strict)
{
    PyObject *py_module = 0;
    PyObject *result = 0;
    PyObject *py_name = 0;
    char warning[200];
    Py_ssize_t basicsize;
#ifdef Py_LIMITED_API
    PyObject *py_basicsize;
#endif
    py_module = __Pyx_ImportModule(module_name);
    if (!py_module)
        goto bad;
    py_name = __Pyx_PyIdentifier_FromString(class_name);
    if (!py_name)
        goto bad;
    result = PyObject_GetAttr(py_module, py_name);
    Py_DECREF(py_name);
    py_name = 0;
    Py_DECREF(py_module);
    py_module = 0;
    if (!result)
        goto bad;
    if (!PyType_Check(result)) {
        PyErr_Format(PyExc_TypeError,
            "%.200s.%.200s is not a type object",
            module_name, class_name);
        goto bad;
    }
#ifndef Py_LIMITED_API
    basicsize = ((PyTypeObject *)result)->tp_basicsize;
#else
    py_basicsize = PyObject_GetAttrString(result, "__basicsize__");
    if (!py_basicsize)
        goto bad;
    basicsize = PyLong_AsSsize_t(py_basicsize);
    Py_DECREF(py_basicsize);
    py_basicsize = 0;
    if (basicsize == (Py_ssize_t)-1 && PyErr_Occurred())
        goto bad;
#endif
    if (!strict && (size_t)basicsize > size) {
        PyOS_snprintf(warning, sizeof(warning),
            "%s.%s size changed, may indicate binary incompatibility. Expected %zd, got %zd",
            module_name, class_name, basicsize, size);
        if (PyErr_WarnEx(NULL, warning, 0) < 0) goto bad;
    }
    else if ((size_t)basicsize != size) {
        PyErr_Format(PyExc_ValueError,
            "%.200s.%.200s has the wrong size, try recompiling. Expected %zd, got %zd",
            module_name, class_name, basicsize, size);
        goto bad;
    }
    return (PyTypeObject *)result;
bad:
    Py_XDECREF(py_module);
    Py_XDECREF(result);
    return NULL;
}
#endif

/* FunctionImport */
    #ifndef __PYX_HAVE_RT_ImportFunction
#define __PYX_HAVE_RT_ImportFunction
static int __Pyx_ImportFunction(PyObject *module, const char *funcname, void (**f)(void), const char *sig) {
    PyObject *d = 0;
    PyObject *cobj = 0;
    union {
        void (*fp)(void);
        void *p;
    } tmp;
    d = PyObject_GetAttrString(module, (char *)"__pyx_capi__");
    if (!d)
        goto bad;
    cobj = PyDict_GetItemString(d, funcname);
    if (!cobj) {
        PyErr_Format(PyExc_ImportError,
            "%.200s does not export expected C function %.200s",
                PyModule_GetName(module), funcname);
        goto bad;
    }
#if PY_VERSION_HEX >= 0x02070000
    if (!PyCapsule_IsValid(cobj, sig)) {
        PyErr_Format(PyExc_TypeError,
            "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             PyModule_GetName(module), funcname, sig, PyCapsule_GetName(cobj));
        goto bad;
    }
    tmp.p = PyCapsule_GetPointer(cobj, sig);
#else
    {const char *desc, *s1, *s2;
    desc = (const char *)PyCObject_GetDesc(cobj);
    if (!desc)
        goto bad;
    s1 = desc; s2 = sig;
    while (*s1 != '\0' && *s1 == *s2) { s1++; s2++; }
    if (*s1 != *s2) {
        PyErr_Format(PyExc_TypeError,
            "C function %.200s.%.200s has wrong signature (expected %.500s, got %.500s)",
             PyModule_GetName(module), funcname, sig, desc);
        goto bad;
    }
    tmp.p = PyCObject_AsVoidPtr(cobj);}
#endif
    *f = tmp.fp;
    if (!(*f))
        goto bad;
    Py_DECREF(d);
    return 0;
bad:
    Py_XDECREF(d);
    return -1;
}
#endif

/* InitStrings */
    static int __Pyx_InitStrings(__Pyx_StringTabEntry *t) {
    while (t->p) {
        #if PY_MAJOR_VERSION < 3
        if (t->is_unicode) {
            *t->p = PyUnicode_DecodeUTF8(t->s, t->n - 1, NULL);
        } else if (t->intern) {
            *t->p = PyString_InternFromString(t->s);
        } else {
            *t->p = PyString_FromStringAndSize(t->s, t->n - 1);
        }
        #else
        if (t->is_unicode | t->is_str) {
            if (t->intern) {
                *t->p = PyUnicode_InternFromString(t->s);
            } else if (t->encoding) {
                *t->p = PyUnicode_Decode(t->s, t->n - 1, t->encoding, NULL);
            } else {
                *t->p = PyUnicode_FromStringAndSize(t->s, t->n - 1);
            }
        } else {
            *t->p = PyBytes_FromStringAndSize(t->s, t->n - 1);
        }
        #endif
        if (!*t->p)
            return -1;
        ++t;
    }
    return 0;
}

static CYTHON_INLINE PyObject* __Pyx_PyUnicode_FromString(const char* c_str) {
    return __Pyx_PyUnicode_FromStringAndSize(c_str, (Py_ssize_t)strlen(c_str));
}
static CYTHON_INLINE char* __Pyx_PyObject_AsString(PyObject* o) {
    Py_ssize_t ignore;
    return __Pyx_PyObject_AsStringAndSize(o, &ignore);
}
static CYTHON_INLINE char* __Pyx_PyObject_AsStringAndSize(PyObject* o, Py_ssize_t *length) {
#if CYTHON_COMPILING_IN_CPYTHON && (__PYX_DEFAULT_STRING_ENCODING_IS_ASCII || __PYX_DEFAULT_STRING_ENCODING_IS_DEFAULT)
    if (
#if PY_MAJOR_VERSION < 3 && __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
            __Pyx_sys_getdefaultencoding_not_ascii &&
#endif
            PyUnicode_Check(o)) {
#if PY_VERSION_HEX < 0x03030000
        char* defenc_c;
        PyObject* defenc = _PyUnicode_AsDefaultEncodedString(o, NULL);
        if (!defenc) return NULL;
        defenc_c = PyBytes_AS_STRING(defenc);
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        {
            char* end = defenc_c + PyBytes_GET_SIZE(defenc);
            char* c;
            for (c = defenc_c; c < end; c++) {
                if ((unsigned char) (*c) >= 128) {
                    PyUnicode_AsASCIIString(o);
                    return NULL;
                }
            }
        }
#endif
        *length = PyBytes_GET_SIZE(defenc);
        return defenc_c;
#else
        if (__Pyx_PyUnicode_READY(o) == -1) return NULL;
#if __PYX_DEFAULT_STRING_ENCODING_IS_ASCII
        if (PyUnicode_IS_ASCII(o)) {
            *length = PyUnicode_GET_LENGTH(o);
            return PyUnicode_AsUTF8(o);
        } else {
            PyUnicode_AsASCIIString(o);
            return NULL;
        }
#else
        return PyUnicode_AsUTF8AndSize(o, length);
#endif
#endif
    } else
#endif
#if (!CYTHON_COMPILING_IN_PYPY) || (defined(PyByteArray_AS_STRING) && defined(PyByteArray_GET_SIZE))
    if (PyByteArray_Check(o)) {
        *length = PyByteArray_GET_SIZE(o);
        return PyByteArray_AS_STRING(o);
    } else
#endif
    {
        char* result;
        int r = PyBytes_AsStringAndSize(o, &result, length);
        if (unlikely(r < 0)) {
            return NULL;
        } else {
            return result;
        }
    }
}
static CYTHON_INLINE int __Pyx_PyObject_IsTrue(PyObject* x) {
   int is_true = x == Py_True;
   if (is_true | (x == Py_False) | (x == Py_None)) return is_true;
   else return PyObject_IsTrue(x);
}
static CYTHON_INLINE PyObject* __Pyx_PyNumber_IntOrLong(PyObject* x) {
  PyNumberMethods *m;
  const char *name = NULL;
  PyObject *res = NULL;
#if PY_MAJOR_VERSION < 3
  if (PyInt_Check(x) || PyLong_Check(x))
#else
  if (PyLong_Check(x))
#endif
    return __Pyx_NewRef(x);
  m = Py_TYPE(x)->tp_as_number;
#if PY_MAJOR_VERSION < 3
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Int(x);
  }
  else if (m && m->nb_long) {
    name = "long";
    res = PyNumber_Long(x);
  }
#else
  if (m && m->nb_int) {
    name = "int";
    res = PyNumber_Long(x);
  }
#endif
  if (res) {
#if PY_MAJOR_VERSION < 3
    if (!PyInt_Check(res) && !PyLong_Check(res)) {
#else
    if (!PyLong_Check(res)) {
#endif
      PyErr_Format(PyExc_TypeError,
                   "__%.4s__ returned non-%.4s (type %.200s)",
                   name, name, Py_TYPE(res)->tp_name);
      Py_DECREF(res);
      return NULL;
    }
  }
  else if (!PyErr_Occurred()) {
    PyErr_SetString(PyExc_TypeError,
                    "an integer is required");
  }
  return res;
}
static CYTHON_INLINE Py_ssize_t __Pyx_PyIndex_AsSsize_t(PyObject* b) {
  Py_ssize_t ival;
  PyObject *x;
#if PY_MAJOR_VERSION < 3
  if (likely(PyInt_CheckExact(b))) {
    if (sizeof(Py_ssize_t) >= sizeof(long))
        return PyInt_AS_LONG(b);
    else
        return PyInt_AsSsize_t(x);
  }
#endif
  if (likely(PyLong_CheckExact(b))) {
    #if CYTHON_USE_PYLONG_INTERNALS
    const digit* digits = ((PyLongObject*)b)->ob_digit;
    const Py_ssize_t size = Py_SIZE(b);
    if (likely(__Pyx_sst_abs(size) <= 1)) {
        ival = likely(size) ? digits[0] : 0;
        if (size == -1) ival = -ival;
        return ival;
    } else {
      switch (size) {
         case 2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -2:
           if (8 * sizeof(Py_ssize_t) > 2 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -3:
           if (8 * sizeof(Py_ssize_t) > 3 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case 4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return (Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
         case -4:
           if (8 * sizeof(Py_ssize_t) > 4 * PyLong_SHIFT) {
             return -(Py_ssize_t) (((((((((size_t)digits[3]) << PyLong_SHIFT) | (size_t)digits[2]) << PyLong_SHIFT) | (size_t)digits[1]) << PyLong_SHIFT) | (size_t)digits[0]));
           }
           break;
      }
    }
    #endif
    return PyLong_AsSsize_t(b);
  }
  x = PyNumber_Index(b);
  if (!x) return -1;
  ival = PyInt_AsSsize_t(x);
  Py_DECREF(x);
  return ival;
}
static CYTHON_INLINE PyObject * __Pyx_PyInt_FromSize_t(size_t ival) {
    return PyInt_FromSize_t(ival);
}


#endif /* Py_PYTHON_H */
